Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushidianapps authored Apr 12, 2024
1 parent 1380267 commit 956f761
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ jobs:

- name: Check PR Description
run: |
description=${{ github.event.pull_request.body }}
jira_regex="https?://[a-zA-Z0-9-.]+\.atlassian\.net/browse/[A-Z]+-\d+" # Regular expression for JIRA ticket link
if [[ -z "${{ github.event.pull_request.body }}" ]]; then
echo "❌ Pull Request description is missing. Please provide a description of your changes."
exit 1
elif [[ ! ${{ github.event.pull_request.body }} =~ $jira_regex ]]; then
elif [[ ! ${{ github.event.pull_request.body }} =~ =~ ^https://thousandgreens.atlassian.net/browse/TG- ]]; then
echo "❌ Pull Request description must contain a link to the JIRA ticket (e.g., https://yourcompany.atlassian.net/browse/JIRA-123)"
exit 1
fi

0 comments on commit 956f761

Please sign in to comment.