Skip to content

Commit

Permalink
Merge pull request #6 from enterprise-contract/EC-185
Browse files Browse the repository at this point in the history
ADD support for all GitHub PR keywords
  • Loading branch information
robnester-rh authored Oct 10, 2023
2 parents 2ee13c7 + a17d3b7 commit b034e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit-msg/check-commit-message
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
# The regex pattern
# The (?i) is for case-insensitive matching
# The \s* at the end is for optional trailing whitespace
pattern='^(?i)(ref|refs|reference|references|res|resolve|resolves)\s*:\s*((#|gh-)\d+|[A-Za-z]+-\d+)\s*$'
pattern='^(?i)(ref|refs|reference|references|res|resolve|resolves|resolved|close|closes|closed|fix|fixes|fixed)\s*:\s*((#|gh-)\d+|[A-Za-z]+-\d+)\s*$'

# Scan the entire file for lines matching the pattern
if grep -Pq "$pattern" "$input_file"; then
Expand Down

0 comments on commit b034e50

Please sign in to comment.