mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-04-15 00:57:55 +00:00
34 lines
805 B
YAML
34 lines
805 B
YAML
name: 'Tools: Conventional Commit'
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
- 'v3'
|
|
- 'v4.*'
|
|
- 'v5.*'
|
|
types:
|
|
- 'opened'
|
|
- 'edited'
|
|
- 'synchronize'
|
|
paths:
|
|
- '.github/workflows/conventional-commit.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
conventional-commit-check:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
steps:
|
|
- name: Check PR title format
|
|
uses: agenthunt/conventional-commit-checker-action@9e552d650d0e205553ec7792d447929fc78e012b # v2.0.0
|
|
with:
|
|
pr-title-regex: '^(feat|fix|docs|style|refactor|perf|test|chore|build|ci|revert)(\([^)]+\))?!?: .+'
|