Skip to content

Commit

Permalink
Update pr-checker.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
smog-root authored Oct 20, 2024
1 parent 8809ace commit de5940f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ if not pr_description:

# Check if the PR description contains 'Fixes #<issue-number>'
if not re.search(r'Fixes #[0-9]+', pr_description):
print('The PR description should include Fixes #<issue-number>.')
print('The PR description should include Fixes , Close, Closes, Closed , Fix , Fixed , Resolve , Resolves #<issue-number>.')
sys.exit(1)

# Check if the PR title starts with FIX, FEAT, or DOC
if not re.match(r'^(Fixes|Close|Closes|Closed|Fix|Fixed|Resolve|Resolves
Resolved)', pr_title):
print('The PR title should start with Fixes, Closes, or FIX.')
print('The PR title should start with Fixes , Close, Closes, Closed , Fix , Fixed , Resolve , Resolves')
sys.exit(1)

print('PR description and title are valid.')
Expand Down

0 comments on commit de5940f

Please sign in to comment.