Interact with GitHub issues - create, list, and view issues.
Interact with GitHub issues - create, list, and view issues.
This command helps you work with GitHub issues using the gh CLI.
Use AskUserQuestion to ask what the user wants to do:
Question:
Use AskUserQuestion to get the issue title:
Question:
Title guidelines:
If the user provides a long title, help them shorten it and move the details to the body.
Use AskUserQuestion to gather the issue body content:
Question 1 - Issue type context:
Question 2 - Description:
The user will select "Other" here to provide their full description.
Description guidelines:
Question 3 - For bugs, ask about reproduction: If issue type is "Bug", use AskUserQuestion:
Question 4 - Expected vs actual behavior (for bugs): If issue type is "Bug", use AskUserQuestion:
Use AskUserQuestion to select labels:
Construct the issue body based on the type:
For Bug reports:
## Description
[User's description]
## Steps to Reproduce
[User's reproduction steps or "Not easily reproducible"]
## Expected Behavior
[What should happen]
## Actual Behavior
[What actually happens]
For Feature requests/Enhancements:
## Description
[User's description]
## Use Case
[Why this would be useful]
For Tasks/Other:
## Description
[User's description]
Run the gh command to create the issue:
gh issue create --title "[title]" --body "[constructed body]" --label "[labels]"
Report the issue URL back to the user.
Use AskUserQuestion to determine filtering:
If "With specific label" selected, use AskUserQuestion:
Run the appropriate gh command:
gh issue listgh issue list --assignee @megh issue list --author @megh issue list --label "[label]"Display the results in a clean format.
Use AskUserQuestion:
Run: gh issue view [number]
Display the issue details including title, body, labels, assignees, and comments.
If gh command fails:
gh auth statusgh auth logingh issue create --title "Title" --body "$(cat <<'EOF'
Body content here
EOF
)"