Skip to content

Commit

Permalink
ci(pr-title): replace clowdhaus/actions with `amannn/action-semanti…
Browse files Browse the repository at this point in the history
…c-pull-request`
  • Loading branch information
bent10 committed May 16, 2024
1 parent db18532 commit 0988da1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 0988da1

Please sign in to comment.