Commit cdc57b2
authored
chore(ci): correct github-script API calls (#14442)
* chore(ci): correct github-script API calls
Since V5 of github-script the Octokit context available via `github` no
longer has REST methods directly on it, they were moved to
`github.rest.*` instead. Update the references in delete-comments.yml
job to match.
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
* fix(ci): remove 'Download' from delete-comments
This is too generic a word and frequently matches against comments that
don't need to be deleted, nor should the user be blocked as the current
workflow will do.
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
* fix(ci): correct block user task
The existing code was calling the individual "block a user" REST
endpoint with incorrect parameters and never would have worked. Update
it to (presumably achieve the desired outcome) block the user from the
owning organisation instead.
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
---------
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>1 parent 85f589e commit cdc57b2
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
45 | 44 | | |
0 commit comments