From 7ff6ceea4f05859a96502055978ae7377316f1dd Mon Sep 17 00:00:00 2001 From: vados Date: Mon, 29 Jan 2024 16:03:10 +0900 Subject: [PATCH] feat(ci): add conventional commits This commit adds a check to CI that ensures that commits adhere to Conventional Commits (https://www.conventionalcommits.org) --- .github/workflows/lint.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..58561b4 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,14 @@ +name: Lint + +on: + pull_request: + +jobs: + ensure-conventional-commits: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Ensure conventional commits + uses: aevea/commitsar@916c7b483225a30d3a17f407fa25f5b25888ea69 # v0.20.2