Skip to content

Commit

Permalink
fix: remove unnecessary # suffix check form PR title regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Aug 7, 2024
1 parent c6348e5 commit f93131d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
steps:
- name: Lint PR Title
run: |
REGEX="^(fix|feat|refactor|revert|test|perf|style|chore|docs): [a-z][^.]{0,60}( \\(\\#\\d+\\))?$"
if echo "${PR_TITLE}" | grep -Eq "${REGEX}"; then
REGEX="^(fix|feat|refactor|revert|test|perf|style|chore|docs): [a-z][^.\n]{0,60}$"
if [[ "${PR_TITLE}" =~ ${REGEX} ]]; then
echo -e "PR title is valid: ${PR_TITLE}"
else
echo -e "Invalid PR title: ${PR_TITLE}"
Expand Down

0 comments on commit f93131d

Please sign in to comment.