From eeb38ac700048b9e760e02ca17d8963d2828944c Mon Sep 17 00:00:00 2001 From: kevaundray Date: Mon, 21 Aug 2023 18:54:02 +0100 Subject: [PATCH] chore: Enforce PR titles follow conventional commit specification (#1706) PRs are no longer valid if users do not put `type(scope): mesasge`. Most PRs are already of this form. --- .github/workflows/pull-request.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000000..5ceafd8ee23 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,29 @@ +name: Pull Request + +on: + pull_request: + types: + - opened + - reopened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + conventional-title: + name: Validate PR title is Conventional Commit + runs-on: ubuntu-latest + steps: + - name: Check title + if: github.event_name == 'pull_request' + uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + fix + feat + chore + refactor