Skip to content

GitHub Action for checking that PR title has a JIRA ID

License

Notifications You must be signed in to change notification settings

polytech-com/jira-check-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jira-check-action

Simple GitHub Action for checking that the pull request title has a JIRA issue prefixed.

The prefixed JIRA issue on the pull request title must be created with capitalized letters and without any prefixed spaces (e.g. "JIRA-123 My Awesome Title") for uniformity. The check is a bit pendantic so it can be used for e.g. automated GitHub release notes with JIRA links. Please see the test.bats file for valid and invalid cases. The tests requires bats-core to be installed.

Usage

Below is an example GitHub Action file showing the usage.

name: ci

on:
  pull_request:
    branches:
      - main

jobs:
  check-jira-issue:
    runs-on: ubuntu-latest
    steps:
      - name: Check JIRA Issue
        uses: polytech-com/jira-check-action@v2

About

GitHub Action for checking that PR title has a JIRA ID

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages