Skip to content

Stop using Mergeable; Replace with own native check #3

Stop using Mergeable; Replace with own native check

Stop using Mergeable; Replace with own native check #3

Workflow file for this run

name: Must include JIRA ticket
on: pull_request
jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Validate PR Description
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
run: |
DESCRIPTION=$(jq -r .pull_request.body "$GITHUB_EVENT_PATH")
echo "Pull Request Description: $DESCRIPTION"
if ! echo "$DESCRIPTION" | perl -ne 'exit 1 if /((?<!([A-Z]{1,10})-?)[A-Z]+\d?-\d+)/'
then
echo "Must include JIRA ticket"
exit 1
fi