From d92386af0c85ecb9ad14a646a4080c746460b581 Mon Sep 17 00:00:00 2001 From: "radiusred-cody[bot]" <270330637+radiusred-cody[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 09:02:20 +0100 Subject: [PATCH] ci: add a commitlint workflow reporting Lint commit messages (#37) The org ruleset require-lint requires a status check with the context "Lint commit messages" on every public repo's default branch, and this repo had no workflow that runs on pull_request, so no PR here could report it and task finish refused NO_CHECKS. Add a single-job workflow whose job is named exactly "Lint commit messages", running wagoid/commitlint-github-action against the PR's commits, with a root commitlint.config.mjs extending config-conventional. The action bundles commitlint, so no package manifest or lock file is needed. --- .github/workflows/commitlint.yml | 17 +++++++++++++++++ commitlint.config.mjs | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/commitlint.yml create mode 100644 commitlint.config.mjs diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000..3207229 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,17 @@ +name: Lint commit messages + +on: + pull_request: + +permissions: + contents: read + +jobs: + commitlint: + name: Lint commit messages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v6 diff --git a/commitlint.config.mjs b/commitlint.config.mjs new file mode 100644 index 0000000..0616fb9 --- /dev/null +++ b/commitlint.config.mjs @@ -0,0 +1,3 @@ +export default { + extends: ['@commitlint/config-conventional'], +};