Skip to content

Merge pull request #778 from at88mph/cleanup-fix #81

Merge pull request #778 from at88mph/cleanup-fix

Merge pull request #778 from at88mph/cleanup-fix #81

name: "CI: Commit Check"
on:
pull_request:
branches: [main]
# This check runs on every push to repository
push:
branches: [main]
permissions:
contents: read
jobs:
commit-check:
runs-on: ubuntu-latest
permissions: # use permissions because of use pr-comments
contents: read
pull-requests: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
fetch-depth: 0 # required for merge-base check
- name: Run Commit Check
uses: commit-check/commit-check-action@cd614c1cb08de72a55a5ec4aaab7f30ca9ba4d69 # v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
with:
# Conventional Commits Check
message: true
# Convention Branch Check
branch: false
author-name: true
author-email: true
commit-signoff: false
merge-base: true
job-summary: true
pr-comments: false