diff --git a/.github/workflows/pr_jira_check.yml b/.github/workflows/pr_jira_check.yml new file mode 100644 index 00000000000..cd593610596 --- /dev/null +++ b/.github/workflows/pr_jira_check.yml @@ -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-(?\d+)' + branchRegex: '^DYN-(?\d+)' + bodyRegex: 'DYN-(?\d+)' + bodyURLRegex: 'http(s?):\/\/(jira.autodesk.com)(\/browse)\/(DYN\-)(?\d+)' \ No newline at end of file