Skip to content

Commit

Permalink
chore: add naming convention check for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Aug 11, 2024
1 parent 7667bcb commit f6b453a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/convention.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PR Naming Convention Check

on:
pull_request:
types: [opened, edited]

jobs:
check-name:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, '🙋 Bounty claim')
steps:
- name: Check PR Title
id: check_title
run: |
PR_TITLE="${{ github.event.pull_request.title }}"
if [[ ! "$PR_TITLE" =~ ^\[ISSUE_[0-9]+\]\ .+ ]]; then
echo "PR title does not follow the naming convention [ISSUE_NUMBER] <description>"
exit 1
fi

0 comments on commit f6b453a

Please sign in to comment.