Extension for GitHub CLI that generates pull requests from issues copying several attributes and linking them.
- GitHub CLI configured in your system. (version
2.0.0
or higher) - Bash (Supports Windows, Mac and Linux)
You can install this extension just running this command from your terminal:
gh extension install ismaelgonval/gh-pr-from-issue
After installing this extension in the GitHub CLI client, you can get create a PR from an issue:
gh pr-from-issue [ISSUE_NUMBER]
This will open a new pull request from the current branch in draft mode with the same title and labels.
It also adds a Closes #[ISSUE_NUMBER]
directive in the description, this links
the PR with the issue and closes it when merged.