Skip to content

Commit

Permalink
workflows: ci-pr-signoff-check: add PR signoff checker
Browse files Browse the repository at this point in the history
Add a PR signoff checker which ensures that the number of commit
signatures is greater or equal to the number of PR reviewers with
approvals. This check further improves and maintains repository
quality.

Signed-off-by: Zanelle Botha <[email protected]>
Reviewed-by: Annemie Potgieter <[email protected]>
Reviewed-by: Marthinus Bekker <[email protected]>
Signed-off-by: Louis Peens <[email protected]>
  • Loading branch information
zanelle-botha-corigine authored and louis-peens committed Feb 14, 2024
1 parent c6785dd commit d968200
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci-pr-signoff-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# This workflow performs linting checks to promote code quality.
name: Check PR commit signoffs

# Run when opening a PR or push to PR
on:
pull_request:
pull_request_review:
types: [submitted]

jobs:
linters:
runs-on:
- ci-linter-vm
- self-hosted
steps:
- name: Checkout current repository
uses: Corigine/ci-libs/github_actions/utilities/checkout_corigine@main
with:
token: ${{ secrets.GHUB_TOKEN }}
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Check commit message format
uses: Corigine/ci-libs/github_actions/linting/commit_check@main
with:
token: ${{ secrets.GHUB_TOKEN }}

0 comments on commit d968200

Please sign in to comment.