Note: This is currently a brain dump.
The project I am working in is a git repository and exists in my Github account.
I have installed gh (github cli tool).
I have an idea for a feature
Open terminal and run gh issue create
Follow the prompts to enter the issue title and optional description and any metadata. Hit submit.
Checkout a feature branch with
git checkout -b feature/my-feature-idea
At least one commit needs to be added before a draft PR can be created.
Push the branch with git push
.
Run gh issue list
and make note of the id for the
correct issue.
Create a new PR with gh pr create --draft
Follow the prompts to enter the PR title and a
description that contains “closes #ID_OF_ISSUE”.
So if my issue was the fifth one for this repo, I’d add “closes
#5”.
Submit the draft PR.
Continue working on the issue until ready for review.
TBC