From 10ad5ebc6f93b1fcd3abc6fd1bc13a3213bad9e3 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Mon, 9 Feb 2026 16:00:29 -0500 Subject: [PATCH] Add lint-pr-title workflow for semantic PR title validation Uses the SDK bot app token with amannn/action-semantic-pull-request to enforce conventional commit format on PR titles, which is required for release-please to work correctly. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/lint-pr-title.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/lint-pr-title.yml diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml new file mode 100644 index 0000000..688746d --- /dev/null +++ b/.github/workflows/lint-pr-title.yml @@ -0,0 +1,24 @@ +name: Lint PR Title + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.SDK_BOT_APP_ID }} + private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }} + + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}