From 60f38a4bb10e59b35708b2d54d4baf91f2468578 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Wed, 27 Nov 2024 09:25:57 -0800 Subject: [PATCH] ci(github-actions): add commit linting --- .github/workflows/commit-lint.yml | 15 +++++++++++++++ 1 file changed, 15 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..3828bf3 --- /dev/null +++ b/.github/workflows/commit-lint.yml @@ -0,0 +1,15 @@ +name: Lint commits +on: + pull_request: +permissions: + contents: read + pull-requests: read +jobs: + commitlint: + name: Validate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: wagoid/commitlint-github-action@v5 + with: + helpURL: "${{ github.server_url }}/${{ github.repository }}/blob/main/CONTRIBUTING.md"