mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
allowing the following variations: - `test: ...` - `test(api): ...` - `chore: ...` - `chore(deps): ...` Signed-off-by: Brady Pratt <bpratt@redhat.com>
21 lines
599 B
YAML
21 lines
599 B
YAML
name: Pull Request Lint
|
|
|
|
on:
|
|
pull_request:
|
|
types: ['opened', 'edited', 'reopened', 'synchronize']
|
|
|
|
jobs:
|
|
conventional-commit:
|
|
runs-on: ubuntu-latest
|
|
name: conventional commit check
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: check conventional commit
|
|
id: check-for-cc
|
|
uses: agenthunt/conventional-commit-checker-action@v2.0.0
|
|
with:
|
|
pr-title-regex: '^(?:\[[^\]]+\] )?(?:[a-z]+(?:\([^)]+\))?: .+ \(PROJQUAY-[0-9]+\)|(?:chore|test)(?:\([^)]+\))?: .+|build\(deps(?:-dev)?\): .+)$'
|
|
pr-body-regex: '(.*)?'
|