Commit 7698525
authored
Fix metadata reminder to work with forks (#1742)
This PR updates the reminder to modify the `dateOfLastModification` so
it will work when PRs are opened from forks. One consequence is that the
check for changed files must now take place within the body of the
script by calling the Github CLI directly, because the action's paths
check doesn't work as expected when the workflow trigger is
`pull_request_target`.
**Potential risks**:
The new event trigger means the associated GITHUB token will have
elevated privileges, but the scope is limited to posting a comment on
the PR, and no code is checked out and no secrets are involved, so the
risk is minimal.1 parent 572781e commit 7698525
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments