Issues_and_Projects
Issues and Projects
Track work with issues and organize with projects.
π Issues
Create Issue
gh issue create --title "Bug: Login fails" --body "Description here"
Creates new issue.
Create Issue Interactively
gh issue create
Interactive issue creation.
Create with Labels
gh issue create --title "Add feature" --label "enhancement,priority:high"
Creates with labels.
Create with Assignee
gh issue create --title "Fix bug" --assignee "@me"
Creates and assigns to yourself.
π View Issues
List Open Issues
gh issue list
Shows open issues.
List All Issues
gh issue list --state all
Shows all issues including closed.
List Assigned to You
gh issue list --assignee "@me"
Your assigned issues.
List by Label
gh issue list --label bug
Filter by label.
View Specific Issue
gh issue view 123
Shows issue #123 details.
View in Browser
gh issue view 123 --web
Opens issue in browser.
βοΈ Edit Issues
Close Issue
gh issue close 123
Closes issue #123.
Reopen Issue
gh issue reopen 123
Reopens closed issue.
Add Comment
gh issue comment 123 --body "Working on this"
Adds comment to issue.
Add Labels
gh issue edit 123 --add-label "bug"
Adds label to issue.
Assign Issue
gh issue edit 123 --add-assignee username
Assigns someone to issue.
Set Milestone
gh issue edit 123 --milestone "v1.0"
Adds issue to milestone.
π Projects
List Projects
gh project list
Shows your projects.
View Project
gh project view 1
Shows project details.
Create Project
gh project create --title "Sprint 1" --owner @me
Creates new project.
Add Issue to Project
gh project item-add 1 --owner @me --url <issue-url>
Adds issue to project.
π Issue Templates
Create .github/ISSUE_TEMPLATE/bug_report.md:
---
name: Bug Report
about: Report a bug
labels: bug
---
## Description
A clear description of the bug.
## Steps to Reproduce
1. Go to...
2. Click...
3. See error
## Expected Behavior
What should happen.
## Screenshots
If applicable.
π‘ Tips
Link PRs to Issues
Use "Fixes #123" in PR to auto-close issue.
Issue Forms
Use YAML for structured issue forms.
π Related
#github #issues #projects #tracking