@@ -289,7 +289,7 @@ function make_pr_for_new_version(
289
289
290
290
options. cc_user && cc_mention_user (forge, repo, new_pr; env= env)
291
291
options. unsub_from_prs && unsub_from_pr (forge, new_pr)
292
- force_ci_trigger (forge, new_pr_title, new_branch_name, pkey_filename; env= env)
292
+ force_ci_trigger (forge, ci_cfg, repo, new_pr_title, new_branch_name, pkey_filename; env= env)
293
293
294
294
# Return to the master branch
295
295
git_checkout (master_branch_name)
@@ -301,8 +301,15 @@ function make_pr_for_new_version(
301
301
return created_pr
302
302
end
303
303
304
+ function git_push (
305
+ forge:: Forge ,
306
+ GitHubActions,
307
+ repo:: GitHub.Repo ,
308
+
304
309
function force_ci_trigger (
305
310
api:: GitLab.GitLabAPI ,
311
+ ci_cfg:: CIService ,
312
+ repo:: GitLab.Project
306
313
pr_title:: AbstractString ,
307
314
branch_name:: AbstractString ,
308
315
pkey_filename:: Union{AbstractString,Nothing} ;
314
321
315
322
function force_ci_trigger (
316
323
api:: GitHub.GitHubAPI ,
324
+ ci_cfg:: CIService ,
325
+ repo:: GitHub.Repo
317
326
pr_title:: AbstractString ,
318
327
branch_name:: AbstractString ,
319
328
pkey_filename:: Union{AbstractString,Nothing} ;
@@ -337,7 +346,7 @@ function force_ci_trigger(
337
346
# Force push the changes to trigger the PR
338
347
api_retry () do
339
348
@debug " force_ci_trigger: force-pushing the changes to trigger CI on the PR"
340
- @mock git_push (" origin" , branch_name, pkey_filename; force= true , env= env)
349
+ @mock git_push (api, ci_cfg, repo, " origin" , branch_name, pkey_filename; force= true , env= env)
341
350
end
342
351
end
343
352
0 commit comments