This commit introduces a new plugin for integrating with GitHub Issues. The `issue` plugin provides the following commands: - `/core:issue list`: List open issues. - `/core:issue view <number>`: View the details of a specific issue. - `/core:issue start <number>`: Start working on an issue by creating a feature branch. - `/core:issue close <number>`: Close an issue by creating a pull request. The plugin uses the GitHub CLI (`gh`) to interact with the GitHub API.
13 lines
332 B
Bash
Executable file
13 lines
332 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Check if gh is installed
|
|
if ! command -v gh &> /dev/null
|
|
then
|
|
echo "GitHub CLI (gh) could not be found. Please install it to use this feature."
|
|
echo "Installation instructions: https://github.com/cli/cli#installation"
|
|
exit 1
|
|
fi
|
|
|
|
# List open issues
|
|
echo "Fetching open issues from GitHub..."
|
|
gh issue list
|