Weekly link-policy sweep: fix specs blob links and badge v1.1.4 pins #21
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: pr-title | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| name: scoped-commits subject check | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@71cf2267d89c5cb81562390fa70a37fa40b1305e # v6 | |
| - name: Self-test the checker | |
| run: bash .github/scripts/check-pr-title-test.sh | |
| - name: Check PR title | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: bash .github/scripts/check-pr-title.sh "$PR_TITLE" | |
| # squash_merge_commit_title is COMMIT_OR_PR_TITLE: a single-commit PR is | |
| # squashed under its commit subject, not the PR title, so that subject | |
| # must satisfy the format too. | |
| - name: Check single-commit subject | |
| if: github.event.pull_request.commits == 1 | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: | | |
| set -euo pipefail | |
| subject=$(gh pr view "$PR_URL" --json commits --jq '.commits[0].messageHeadline') | |
| echo "single-commit PR; a squash merge will use the commit subject" | |
| bash .github/scripts/check-pr-title.sh "$subject" |