Commit d0403ff
Approve a PR by leaving "/lgtm" comment (#153)
* Add Code Owners file
Signed-off-by: lugi0 <lgiorgi@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: add PR auto-approve on '/lgtm' comment
Signed-off-by: lugi0 <lgiorgi@redhat.com>
* fix: potential fix for label action
Signed-off-by: lugi0 <lgiorgi@redhat.com>
* fix: add pull request number
Signed-off-by: lugi0 <lgiorgi@redhat.com>
* fix: extract PR from payload
Signed-off-by: lugi0 <lgiorgi@redhat.com>
* fix: use bot user personal access token for pr approval
Signed-off-by: lugi0 <lgiorgi@redhat.com>
* Update lgtm-approval.yml
* Update lgtm-approval.yml
* Update lgtm-approval.yml
* Update lgtm-approval.yml
* Update add-remove-labels.yml
* Update lgtm-approval.yml
* remove trailing whitespace
* remove conditional on issue_comment events
* Try using review comment as well for labels
* fix typo
* change review behaviour in py script
* enable label action for review comments as well
* fix line too long
* try adding +1 to review comment with gh api
* fix typo
* use bot PAT
* Disable review reaction for the time being
* approval from 'add-remove-labels'
* fix typo
* additional checks
* try using bot PAT
* don't fail with empty comment body
* add required arg to dismiss
* remove unused action
* check for allowed users
* fix typo, more logging
* workaround team membership
* fix typo, check for submitter/pr owner
* don't add lgtm label for owner of PR
* implement org/team logic
* fix typo
* reuse APPROVED constant
* fix type imports for github library
* fix typo
---------
Signed-off-by: lugi0 <lgiorgi@redhat.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 2dbe408 commit d0403ff
File tree
3 files changed
+98
-18
lines changed- .github/workflows
- scripts
3 files changed
+98
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
34 | 60 | | |
35 | 61 | | |
36 | 62 | | |
37 | 63 | | |
38 | 64 | | |
39 | 65 | | |
40 | 66 | | |
41 | | - | |
| 67 | + | |
42 | 68 | | |
43 | 69 | | |
44 | 70 | | |
45 | 71 | | |
46 | 72 | | |
| 73 | + | |
47 | 74 | | |
48 | 75 | | |
49 | 76 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| 29 | + | |
23 | 30 | | |
24 | | - | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
80 | | - | |
81 | | - | |
| 87 | + | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| |||
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| 97 | + | |
90 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| 105 | + | |
94 | 106 | | |
95 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
96 | 126 | | |
97 | 127 | | |
98 | 128 | | |
| |||
101 | 131 | | |
102 | 132 | | |
103 | 133 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
109 | 139 | | |
110 | 140 | | |
111 | 141 | | |
| |||
223 | 253 | | |
224 | 254 | | |
225 | 255 | | |
| 256 | + | |
226 | 257 | | |
227 | 258 | | |
228 | 259 | | |
| |||
239 | 270 | | |
240 | 271 | | |
241 | 272 | | |
242 | | - | |
| 273 | + | |
243 | 274 | | |
244 | 275 | | |
245 | 276 | | |
246 | | - | |
| 277 | + | |
247 | 278 | | |
248 | 279 | | |
249 | 280 | | |
250 | | - | |
| 281 | + | |
251 | 282 | | |
252 | 283 | | |
253 | 284 | | |
| |||
276 | 307 | | |
277 | 308 | | |
278 | 309 | | |
279 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
280 | 317 | | |
281 | 318 | | |
282 | 319 | | |
283 | 320 | | |
284 | 321 | | |
| 322 | + | |
| 323 | + | |
285 | 324 | | |
286 | 325 | | |
287 | 326 | | |
| |||
301 | 340 | | |
302 | 341 | | |
303 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
304 | 356 | | |
305 | 357 | | |
306 | 358 | | |
| |||
0 commit comments