diff --git a/.github/pr-title-checker-config.json b/.github/pr-title-checker-config.json index 07089e99314..de31f80d51b 100644 --- a/.github/pr-title-checker-config.json +++ b/.github/pr-title-checker-config.json @@ -4,7 +4,10 @@ "color": "B60205" }, "CHECKS": { - "regexp": "^(?:(?:\\[(NEW|BREAK|IMPROVE|FIX)\\](\\[(ENTERPRISE|APPS)\\])?|(?:Regression|Chore|Revert|i18n):)|(?:Bump)) .+$|^Release [0-9]+\\.[0-9]+\\.[0-9]+$|^Merge master into develop", - "ignoreLabels" : ["[ignore-title]"] + "regexp": "(feat|fix|ci|chore|docs|test|refactor|i18n|regression|revert)(\\([^\\)]+\\))?\\!?: .{1,}$|(?:Bump .+)$|^Release [0-9]+\\.[0-9]+\\.[0-9]+$|^Merge master into develop", + "ignoreLabels": ["[ignore-title]"] + }, + "MESSAGES": { + "failure": "Invalid PR title. Please use one of the following formats: 'feat: add new feature', 'fix: fix a bug', 'ci: update CI configuration', 'chore: update dependencies', 'docs: update documentation', 'test: add tests', 'refactor: refactor code', 'i18n: update translations', 'regression: fix a regression'.\nFor more info please check [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)." } } diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml index 3b0cc7ba6a4..356ac10c975 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/pr-title-checker.yml @@ -1,12 +1,17 @@ name: 'PR Title Checker' on: pull_request_target: - types: [opened, edited] + types: + - opened + - edited + - synchronize + - labeled + - unlabeled jobs: check: runs-on: ubuntu-latest steps: - - uses: thehanimo/pr-title-checker@v1.3.6 + - uses: thehanimo/pr-title-checker@v1.3.7 with: GITHUB_TOKEN: ${{ secrets.RC_TITLE_CHECKER }}