From aeb0dd3602334e86dbb48a5ec57c997527e9e5c3 Mon Sep 17 00:00:00 2001 From: Marcin Jasion Date: Thu, 3 Aug 2023 10:50:22 +0200 Subject: [PATCH 1/2] feat(githubaction): Add commitlint workflow I found it in [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3/blob/main/.github/workflows/commit-message-lint.yml) and it uses [default config](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional) --- .github/workflows/commit-message-lint.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/commit-message-lint.yml diff --git a/.github/workflows/commit-message-lint.yml b/.github/workflows/commit-message-lint.yml new file mode 100644 index 00000000..f869dce4 --- /dev/null +++ b/.github/workflows/commit-message-lint.yml @@ -0,0 +1,17 @@ +name: Lint Commit Messages + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v4 + From fce8646e6a380f1646df91863ce1b5d7de8fe470 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Wed, 10 Apr 2024 07:37:45 +0200 Subject: [PATCH 2/2] Update commit-message-lint.yml --- .github/workflows/commit-message-lint.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/commit-message-lint.yml b/.github/workflows/commit-message-lint.yml index f869dce4..041b444a 100644 --- a/.github/workflows/commit-message-lint.yml +++ b/.github/workflows/commit-message-lint.yml @@ -14,4 +14,3 @@ jobs: with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v4 -