Repository navigation
fix: warn when a PR comment fails to post, and name the right permission #656
Workflow file for this run
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' | |
| types: [opened, synchronize, reopened, edited] | |
| workflow_dispatch: | |
| jobs: | |
| commit-check: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| 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 | |
| # Only post PR comments from the ubuntu job to avoid duplicates | |
| pr-comments: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' }} | |
| pr-title: true |