Skip to content

Add agent discipline file mirroring reference implementation practices #22

Add agent discipline file mirroring reference implementation practices

Add agent discipline file mirroring reference implementation practices #22

Workflow file for this run

name: Commit Guard
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-range:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Verify all commit messages and authors in this change
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
BASE="${{ github.event.pull_request.base.sha }}"
HEAD="${{ github.event.pull_request.head.sha }}"
else
BASE="${{ github.event.before }}"
HEAD="${{ github.event.after }}"
fi
echo "Checking range: ${BASE}..${HEAD}"
bash scripts/commit-message-guard.sh --check-range "$BASE" "$HEAD"