From 36324e33dd71343ba61448ff213d33317a850048 Mon Sep 17 00:00:00 2001 From: Nicholas Ciechanowski Date: Wed, 1 Oct 2025 21:53:47 +1000 Subject: [PATCH] ci: add pr title validation --- .github/workflows/lint-pr-title.yml | 19 +++++++++++++++++++ .github/workflows/release-please.yml | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) 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..46612fa --- /dev/null +++ b/.github/workflows/lint-pr-title.yml @@ -0,0 +1,19 @@ +name: 🧹 Lint PR Title + +on: + pull_request_target: + types: + - opened + - edited + - reopened + +jobs: + main: + name: 🧹 Validate PR title + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ccb562d..fb86ebf 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,3 +1,5 @@ +name: release-please + on: push: branches: [main, master] @@ -6,8 +8,6 @@ permissions: contents: write pull-requests: write -name: release-please - jobs: release-please: runs-on: ubuntu-latest