✨ A GitHub (gh
) CLI extension to create GitHub pull requests based on Jira issues. The pull request will then be added to the Jira task as a web link.
Field mapping:
- Jira issue summary -> Pull request title
- Jira issue description -> Pull request body
- Jira issue subtasks -> Pull request body tasks
-
Install the
gh
CLI - see the installation -
Install this extension:
gh extension install ldaneliukas/gh-jira-pr
-
Login to GitHub
gh auth login
-
Create Jira Token
Create a pull request from the supplied Jira ticket
USAGE:
gh jira-pr <issue> [flags]
ARGUMENTS:
issue <string> Jira Issue
FLAGS:
--ref <string> Use the current repository HEAD ref as the Jira issue
--jira-url (env JIRA_URL) <string> Jira server URL
--jira-user (env JIRA_USER) <string> Jira username
--jira-token (env JIRA_TOKEN) <string> Jira auth token
INHERITED FLAGS
--help Show help for command
EXAMPLES:
$ gh jira-pr IT-1234
$ gh jira-pr IT-1234 --jira-url https://company.atlassian.net
$ gh jira-pr --ref