Rename canonical repo contract to REPO.md #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }}" |