From 3061187b516acbf88f79aa23ba356c3b3bf47ce4 Mon Sep 17 00:00:00 2001 From: adityamehra Date: Mon, 8 Jun 2026 12:47:26 -0700 Subject: [PATCH] ci: add PR title validation workflow Enforces Conventional Commits format on all PR titles using amannn/action-semantic-pull-request. Action is pinned to its commit SHA instead of a mutable version tag. Co-authored-by: Cursor --- .github/workflows/validate-pr-title.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/validate-pr-title.yaml diff --git a/.github/workflows/validate-pr-title.yaml b/.github/workflows/validate-pr-title.yaml new file mode 100644 index 0000000..cbc676a --- /dev/null +++ b/.github/workflows/validate-pr-title.yaml @@ -0,0 +1,20 @@ +name: Validate PR Title + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}