wesdoyle / jira-actions-test

JIRA actions test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jira-actions-test

Summary

This repository contains two example GitHub actions for Jira automation. Either of these should be modified to meet specific requirements.

A. Comment on Jira Issue on commit

  • add-comment-to-issue.yml
  • On push, find an associated Jira issue from the commits and post a comment to that issue.
  • Comments take the form "<user> pushed to <branch> in <repository>"

B. Move issue to Done state when commit message ends with substring CLOSE ISSUE

  • transition-issue.yml
  • On push, find an associated Jira issue from the commits
  • If the commit substring ends with CLOSE ISSUE, move the Jira issue into Done state

Setup

The following key-value pairs need to be added to GitHub Secrets for the repositories where the GitHub Actions are to be run:

Marketplace Actions Used

The following three GitHub Marketplace Actions are utilized for this automation:

Needed Improvements

  • Only attempt to run Comment on Issue if a corresponding Jira issue is found

About

JIRA actions test