From e508d781aba122e5a3f5229c2b06dc9a4ab5ea15 Mon Sep 17 00:00:00 2001 From: Randolph Sapp Date: Thu, 24 Oct 2024 01:31:34 -0500 Subject: [PATCH] ci(commit-check): add a commit check for prs Add a commit check for PRs to make sure they are following the rules outlined in the CONTRIBUTING document. Signed-off-by: Randolph Sapp --- .github/workflows/commit-check.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/commit-check.yml diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml new file mode 100644 index 000000000..69ec75366 --- /dev/null +++ b/.github/workflows/commit-check.yml @@ -0,0 +1,26 @@ +--- +name: Commit Check +on: + push: + pull_request: + branches: ['master'] + +jobs: + commit-check: + name: Commit Check + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - uses: commit-check/commit-check-action@v1 + with: + message: true + author-name: true + author-email: true + commit-signoff: true + job-summary: true + pr-comments: true