- Navigate to your repository in terminal.
- Ensure git and GitHub CLI (gh) are installed on your system.
gh issue create
This outputs the issue URL (https://github.com/owner/repo/issues/6) that contains the ISSUE_NUMBER (here 6).
Or to list all issues and find an existing issue number :
gh issue list
gh issue develop ISSUE_NUMBER
Use tab autocompletion to find the branch name :
git checkout ISSUE_NUMBER<TAB><TAB>
git add .
git commit -m "DESCRIPTION"
git push
(๐ Repeat as needed)
gh pr create
The PR is automatically linked to the issue of the development branch.
gh pr merge
Select : Rebase and merge. (Optional : ๐พ Keep the branch if you want to)
The merge will automatically close the issue automatically after submit.
git checkout main
git pull
๐ And that's it! You've completed the full GitHub workflow without leaving your terminal! ๐
Now, go install NixOS and be a great developer ๐
super gist champion