From f24d805263a309e6a8f96f2a78639b93c46709e8 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Mon, 12 Jun 2023 18:08:42 +0100 Subject: [PATCH] refactor(ci): Add PR title validation (https://github.com/AztecProtocol/barretenberg/pull/521) Enforcing release-please PR naming scheme --- .../.github/workflows/pull-request.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 barretenberg/.github/workflows/pull-request.yml diff --git a/barretenberg/.github/workflows/pull-request.yml b/barretenberg/.github/workflows/pull-request.yml new file mode 100644 index 00000000000..5ceafd8ee23 --- /dev/null +++ b/barretenberg/.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