From 45e0e3c45731322a10eb82f1c2b46390f3f7834b Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 25 May 2022 21:49:09 -0500 Subject: [PATCH] ci: Add semantic PR check GHA workflow (#1868) * As https://github.com/zeke/semantic-pull-requests is no longer maintained and is down, use the suggested alternative of https://github.com/amannn/action-semantic-pull-request to check that PR titles follow the Conventional Commits spec. --- .github/workflows/semantic-pr-check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/semantic-pr-check.yml diff --git a/.github/workflows/semantic-pr-check.yml b/.github/workflows/semantic-pr-check.yml new file mode 100644 index 0000000000..10db1c873e --- /dev/null +++ b/.github/workflows/semantic-pr-check.yml @@ -0,0 +1,24 @@ +name: Semantic Pull Request + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +concurrency: + group: semantic-pr-${{ github.ref }} + cancel-in-progress: true + +jobs: + main: + + name: Validate PR title + runs-on: ubuntu-latest + + steps: + - name: Check PR title matches Conventional Commits spec + uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}