Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.26 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.26 KB

gh-jira-pr

✨ 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

Setup

  1. Install the gh CLI - see the installation

  2. Install this extension:

    gh extension install ldaneliukas/gh-jira-pr
  3. Login to GitHub gh auth login

  4. Create Jira Token

Usage

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