Skip to content

Commit

Permalink
feat(ci): add commits check to CI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
realeinherjar committed Sep 15, 2023
1 parent 59fc1b3 commit 695914a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/commits.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

0 comments on commit 695914a

Please sign in to comment.