Skip to content

A GitHub (gh) CLI extension to create pull requests from Jira issues

Notifications You must be signed in to change notification settings

ldaneliukas/gh-jira-pr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A GitHub (gh) CLI extension to create pull requests from Jira issues

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages