File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ jobs:
1010 check_linear_in_pr_body :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Check for "linear" in the pull request body
13+ - name : Check for linked issue in pull request body
1414 run : |
1515 pr_body=$(curl -s \
1616 -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
1717 https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.number }} | jq -r .body)
1818
1919 echo "Pull Request Body: $pr_body"
2020
21- if echo "$pr_body" | grep -iq "linear "; then
22- echo "'linear' found in the pull request body."
21+ if echo "$pr_body" | grep -iE "CNCT|DASH "; then
22+ echo "Linked issue found in the pull request body."
2323 else
24- echo "'linear' not found in the pull request body."
24+ echo "No linked issue found in the pull request body."
2525 exit 1
2626 fi
You can’t perform that action at this time.
0 commit comments