name: pr-checks
on:
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]
branches:
- main
- 'rc-*'
permissions:
contents: read
jobs:
linear-link:
name: linear-link
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Require a linked Linear issue
env:
PR_TITLE: ${{ github.event.pull_request.title }}
PR_BODY: ${{ github.event.pull_request.body }}
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_BASE: ${{ github.base_ref }}
run: python3 .github/scripts/check_pr.py linear
pr-template:
name: pr-template
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Require the PR template fields
env:
PR_TITLE: ${{ github.event.pull_request.title }}
PR_BODY: ${{ github.event.pull_request.body }}
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_BASE: ${{ github.base_ref }}
run: python3 .github/scripts/check_pr.py template
self-test:
name: self-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run the checker's test matrix
run: python3 .github/scripts/test_check_pr.py