fix: implement PR commit message retrieval and validation #480
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 Check | |
| on: | |
| pull_request: | |
| branches: 'main' | |
| workflow_dispatch: | |
| jobs: | |
| commit-check: | |
| runs-on: ubuntu-latest | |
| permissions: # use permissions because of use pr-comments | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Required for merge-base checks | |
| - uses: ./ # self test | |
| with: | |
| message: true | |
| branch: true | |
| author-name: true | |
| author-email: true | |
| job-summary: true | |
| pr-comments: ${{ github.event_name == 'pull_request' }} |