From d56111af78133b05d0454818b5e894801d50b92a Mon Sep 17 00:00:00 2001 From: Conicaw Date: Wed, 5 Jul 2023 18:02:59 -0500 Subject: [PATCH] ci(commit-lint): add commit-lint Add commit-lint --- .github/workflows/commit-lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/commit-lint.yml diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml new file mode 100644 index 0000000..9303622 --- /dev/null +++ b/.github/workflows/commit-lint.yml @@ -0,0 +1,21 @@ +name: commit-lint + +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + commit-lint: + runs-on: ubuntu-latest + timeout-minutes: 2 + + steps: + - name: Commit lint + # Dependabot sometimes makes some really long commit messages and I can't stop it + continue-on-error: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') || github.actor == 'dependabot[bot]' }} + uses: ahmadnassri/action-conventional-commit-lint@v2.1.9 + with: + token: ${{ github.token }}