[JN-1440] Workaround fix for DSM not returning tracking number for returnOnly kits #4391
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Require ticket | |
on: | |
pull_request: | |
types: [opened, edited, synchronize] | |
jobs: | |
require_ticket: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for ticket in PR title | |
id: validate | |
uses: actions/github-script@v3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const title = context.payload.pull_request.title; | |
const regex = /JN|DDO-\d+/; | |
if (!regex.test(title)) { | |
core.setFailed("PR title must contain a Jira ticket"); | |
} |