Skip to content

Commit 695914a

Browse files
committed
feat(ci): add commits check to CI
Closes bitcoindevkit#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.
1 parent 59fc1b3 commit 695914a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/commits.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check Commits
2+
3+
on:
4+
pull_request:
5+
branches: master
6+
7+
jobs:
8+
signed-commits:
9+
name: Check signed commits in PR
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Check signed commits in PR
14+
uses: 1Password/check-signed-commits-action@v1
15+
conventional-commits:
16+
name: Conventional Commits
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Check conventional commits in PR
21+
uses: aevea/commitsar@v0.20

0 commit comments

Comments
 (0)