From e70219956afbcdc081dcfe691544ab5fa053905a Mon Sep 17 00:00:00 2001 From: bent10 Date: Fri, 17 May 2024 08:15:40 +0700 Subject: [PATCH] ci(pr-title): replace `clowdhaus/actions` with `amannn/action-semantic-pull-request` --- .github/workflows/pr-title.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 75cfbb4..debe6ec 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -18,8 +18,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Check PR Title - uses: clowdhaus/actions/pr-title@v0.5.0 + uses: amannn/action-semantic-pull-request@v5 with: - on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org) format. e.g.\n\n```\nchore(plugin-name): add pr title workflow\n```" - title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w|,|\-|\|]+\))?(!)?\:\s.*$' - github-token: ${{ secrets.GH_TOKEN }} + subjectPattern: ^(?![A-Z]).+$ + subjectPatternError: | + The subject "{subject}" found in the pull request title "{title}" + didn't match the configured pattern. Please ensure that the subject + doesn't start with an uppercase character. + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}