| 1 |
name: Pull Request Title Format |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
branches: |
| 6 |
- '*' |
| 7 |
types: |
| 8 |
- opened |
| 9 |
- reopened |
| 10 |
- edited |
| 11 |
- synchronize |
| 12 |
|
| 13 |
jobs: |
| 14 |
prTitle: |
| 15 |
name: Check |
| 16 |
runs-on: ubuntu-latest |
| 17 |
steps: |
| 18 |
- name: Check PR Title |
| 19 |
uses: clowdhaus/actions/[email protected] |
| 20 |
with: |
| 21 |
on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org/en/v1.0.0-beta.4/) format. e.g.\n\n```\nchore(plugin-name): add pr title workflow\n```" |
| 22 |
title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(([*]|[\w|,|\-|\|]+)\))?(!)?\:\s.*' |
| 23 |
github-token: ${{ secrets.GITHUB_TOKEN }} |