Skip to content

Creates a release in GH and Jira, then updates Fixed Version for any tickets that are found in commit notes

Notifications You must be signed in to change notification settings

pelotoncycle/release-to-jira

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

release-to-jira

A GitHub action to automatically create releases on JIRA.

Creates a release on Jira from Github. Uses its auto-generated description in GH release notes to find related JIRA issues and updates their "Fix versions" field on the JIRA server. If a release matching the tag (plus optional prefix) doesn't exist on JIRA, it will be automatically created.

This flow assumes auto-generated release notes will include JIRA issue keys. This can be achieved by including JIRA issue key in PR titles.

Inputs

Input Description Example
jira_server JIRA server URL. https://company.atlassian.net
jira_project JIRA project key. PRJ
jira_user JIRA user with project admin permission. [email protected]
jira_token JIRA token. Managed here. abcdef12345678
jira_release_prefix Optional string to add to the beginning of the github ref (tag) when naming the release in Jira Convert '0.1.0' into 'Foo 0.1.0'

Usage

Run when a new tag is created:

on:
  push:
    tags:        
      - '*'
jobs:
  jira-release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: Medsien/release-to-jira@main
        with:
          jira_server: 'https://company.atlassian.net'
          jira_project: 'PRJ'
          jira_user: '[email protected]'
          jira_token: '${{ secrets.JIRA_TOKEN }}'
          jira_release_prefix: 'Foo '

About

Creates a release in GH and Jira, then updates Fixed Version for any tickets that are found in commit notes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%