-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 853 Bytes
/
Copy pathdocs-reminder.yml
File metadata and controls
30 lines (26 loc) · 853 Bytes
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
name: Docs Reminder
on:
pull_request_target:
types: [opened, edited, synchronize]
branches: [main]
permissions:
pull-requests: write
issues: write
jobs:
check-docs:
runs-on: ubuntu-latest
steps:
# Safe with pull_request_target because we only check out the trusted base
# revision and use it to read PR metadata plus update labels/comments
# through the GitHub API.
- name: Checkout base revision
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.base.sha }}
persist-credentials: false
- name: Check for documentation reference
uses: actions/github-script@v7
with:
script: |
const { runDocsReminder } = require('./scripts/docs_reminder.js');
await runDocsReminder({ github, context, core });