From 6f5a9bcf63dfdcf0b70b346f58ec0074ce48e91e Mon Sep 17 00:00:00 2001 From: Tal Borenstein Date: Tue, 21 Feb 2023 08:49:23 +0200 Subject: [PATCH] feat(workflow): lint-pr ensures your PR title matches the Conventional Commits spec --- .github/workflows/lint-pr.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/lint-pr.yml diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml new file mode 100644 index 000000000..b8b7ddcbd --- /dev/null +++ b/.github/workflows/lint-pr.yml @@ -0,0 +1,18 @@ +name: "Lint PR" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - name: semantic-pull-request + uses: amannn/action-semantic-pull-request@v5.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}