Skip to content

Rename canonical repo contract to REPO.md #3

Rename canonical repo contract to REPO.md

Rename canonical repo contract to REPO.md #3

name: Commit Standards
on:
pull_request:
branches: [main, master]
push:
branches: [main, master]
jobs:
commit-standards:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Make scripts executable
run: chmod +x .githooks/commit-msg scripts/check-commit-standards.sh scripts/check-commit-range.sh scripts/install-hooks.sh
- name: Validate pull request commits
if: github.event_name == 'pull_request'
run: scripts/check-commit-range.sh "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
- name: Validate pushed commits
if: github.event_name == 'push'
run: scripts/check-commit-range.sh "${{ github.event.before }}" "${{ github.sha }}"