Skip to content

Commit 953b9c4

Browse files
committed
chore: check for team abbreviations in PR
1 parent 0426d75 commit 953b9c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/linear.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)