From 695914a8a3b5b3554851baf6b7992fbe2bc8e01a Mon Sep 17 00:00:00 2001 From: Einherjar Date: Tue, 12 Sep 2023 12:42:06 -0300 Subject: [PATCH] feat(ci): add commits check to CI Closes #1119. Creates `commits.yml` in `.github/workflows/` directory with a new GH Action that has 2 jobs: 1. `signed-commits`: uses [`1Password/check-signed-commits-action`](https://github.com/1Password/check-signed-commits-action) to check if all commits in the PR are signed. 1. `conventional-commits`: uses [`aevea/commitsar`](https://github.com/aevea/commitsar) to check if all commits in the PR follows the conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/), i.e. they are prefixed with `fix`, `refactor`, `feat` etc. --- .github/workflows/commits.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/commits.yml diff --git a/.github/workflows/commits.yml b/.github/workflows/commits.yml new file mode 100644 index 0000000000..9524d6c75a --- /dev/null +++ b/.github/workflows/commits.yml @@ -0,0 +1,21 @@ +name: Check Commits + +on: + pull_request: + branches: master + +jobs: + signed-commits: + name: Check signed commits in PR + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check signed commits in PR + uses: 1Password/check-signed-commits-action@v1 + conventional-commits: + name: Conventional Commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check conventional commits in PR + uses: aevea/commitsar@v0.20