From 3c7655aca160df8c8fe9e5a9ce5c106b3e71dd57 Mon Sep 17 00:00:00 2001 From: Michael Finson Date: Tue, 4 Aug 2026 13:58:38 +0300 Subject: [PATCH] chore: validate pull request titles --- .github/workflows/pr-title.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr-title.yml diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000..2392b31 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,21 @@ +name: PR Title + +on: + pull_request_target: + types: [opened, edited, synchronize, reopened] + +permissions: + contents: read + pull-requests: read + +jobs: + validate-title: + if: ${{ github.event.pull_request.user.type == 'User' }} + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + requireScope: false