Skip to content

Commit

Permalink
I'm adding the GitHub Action to check if the Jira ticket number is mi…
Browse files Browse the repository at this point in the history
…ssing in the title or the description. It updates the title with the ticket number and adds a comment with the link redirecting to the Jira ticket.
  • Loading branch information
Alexis Erazo committed May 3, 2024
1 parent 50627dd commit 44f72f5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr_jira_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PR checker and updater for Jira missing stuff

on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
title:
name: Missing Jira ticket check
runs-on: ubuntu-latest

steps:

- name: Check for ticket
uses: neofinancial/ticket-check-action@v1

with:
token: ${{ secrets.GITHUB_TOKEN }}
ticketLink: 'https://jira.autodesk.com/browse/DYN-%ticketNumber%'
ticketPrefix: 'DYN-'
titleRegex: '^DYN-(?<ticketNumber>\d+)'
branchRegex: '^DYN-(?<ticketNumber>\d+)'
bodyRegex: 'DYN-(?<ticketNumber>\d+)'
bodyURLRegex: 'http(s?):\/\/(jira.autodesk.com)(\/browse)\/(DYN\-)(?<ticketNumber>\d+)'

0 comments on commit 44f72f5

Please sign in to comment.