@@ -196,6 +196,14 @@ <h1>Homu queue - {% if repo_url %}<a href="{{repo_url}}" target="_blank">{{repo_
196
196
< script src ="../assets/jquery.dataTables.min.js "> </ script >
197
197
198
198
< script >
199
+ const OAUTH_SCOPES = [
200
+ "public_repo" ,
201
+ "admin:repo_hook" ,
202
+
203
+ // Needed to be able to include GitHub Actions workflow files in rollup PRs.
204
+ "workflow" ,
205
+ ] ;
206
+
199
207
document . getElementById ( 'expand-rollup' ) . onclick = function ( ) {
200
208
var checkboxCount = document . querySelectorAll ( '#queue tbody input[type=checkbox]:checked' ) . length ;
201
209
document . getElementById ( 'checkbox-count' ) . innerHTML = checkboxCount ;
@@ -216,7 +224,7 @@ <h1>Homu queue - {% if repo_url %}<a href="{{repo_url}}" target="_blank">{{repo_
216
224
217
225
location = 'https://github.com/login/oauth/authorize' +
218
226
'?client_id={{oauth_client_id}}' +
219
- '&scope=public_repo,admin:repo_hook' +
227
+ '&scope=' + OAUTH_SCOPES . join ( ',' ) +
220
228
'&state=' + encodeURIComponent ( JSON . stringify ( {
221
229
cmd : 'rollup' ,
222
230
repo_label : '{{repo_label}}' ,
@@ -229,7 +237,7 @@ <h1>Homu queue - {% if repo_url %}<a href="{{repo_url}}" target="_blank">{{repo_
229
237
230
238
location = 'https://github.com/login/oauth/authorize' +
231
239
'?client_id={{oauth_client_id}}' +
232
- '&scope=public_repo,admin:repo_hook' +
240
+ '&scope=' + OAUTH_SCOPES . join ( ',' ) +
233
241
'&state=' + encodeURIComponent ( JSON . stringify ( {
234
242
cmd : 'synch' ,
235
243
repo_label : '{{repo_label}}' ,
0 commit comments