-
Notifications
You must be signed in to change notification settings - Fork 368
47 lines (39 loc) · 1.12 KB
/
checkboxes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Checks that all checkboxes in a PR are checked
name: Pull Request Checkboxes
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- edited
concurrency:
group: ${{ github.event.pull_request.number }}-pr-checkboxes
cancel-in-progress: true
permissions:
contents: "read"
pull-requests: "write"
jobs:
pr-checkboxes:
name: Check PR checkboxes
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install deps
shell: bash
run: |
python3 -m pip install PyGithub==1.59.0
- name: Check PR checkboxes
shell: bash
run: |
./scripts/ci/check_pr_checkboxes.py \
--github-token ${{ secrets.GITHUB_TOKEN }} \
--github-repository ${{ github.repository }} \
--pr-number ${{ github.event.pull_request.number }}