diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml index 8ea12220..635a5bb4 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/pr-title-checker.yml @@ -25,7 +25,7 @@ jobs: # @warning Keep in sync with apps/documentation/src/routes/documentation/contributing/pull-requests.mdx run: | VALID_COMMIT_TYPES="chore|ci|docs|feat|fix|refactor|test" - REGEX="^${VALID_COMMIT_TYPES})(\(.*\))?!?: .*" + REGEX="^(${VALID_COMMIT_TYPES})(\(.*\))?!?: .*" if ! [[ $PR_TITLE =~ $REGEX ]]; then echo "::error title=Type::The title has an incorrect type. Valid types are ${VALID_COMMIT_TYPES}"