ci: add semantic-pr workflow to enforce conventional commits (#2472)

This commit is contained in:
Dallas Gordon
2026-02-17 07:33:41 -06:00
committed by GitHub
parent cf4883a55e
commit 5e57fdcf66
2 changed files with 29 additions and 1 deletions

28
.github/workflows/semantic-pr.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: "Semantic PR"
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
main:
name: Validate PR Title
runs-on: ubuntu-slim
permissions:
contents: read
pull-requests: read
checks: write
steps:
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}