You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: github/actions_workflow_runs.go
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,7 @@ func (s *ActionsService) ListRepositoryWorkflowRuns(ctx context.Context, owner,
204
204
}
205
205
206
206
// GetWorkflowRunByID gets a specific workflow run by ID.
207
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
207
208
//
208
209
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run
// GetWorkflowRunAttempt gets a specific workflow run attempt.
230
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
229
231
//
230
232
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run-attempt
// GetWorkflowRunAttemptLogs gets a redirect URL to download a plain text file of logs for a workflow run for attempt number.
257
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve a workflow run ID from the DeploymentProtectionRuleEvent.
255
258
//
256
259
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-attempt-logs
257
260
//
@@ -302,6 +305,7 @@ func (s *ActionsService) getWorkflowRunAttemptLogsWithRateLimit(ctx context.Cont
302
305
}
303
306
304
307
// RerunWorkflowByID re-runs a workflow by ID.
308
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID a the DeploymentProtectionRuleEvent.
305
309
//
306
310
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#re-run-a-workflow
// RerunFailedJobsByID re-runs all of the failed jobs and their dependent jobs in a workflow run by ID.
325
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
321
326
//
322
327
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run
323
328
//
@@ -335,6 +340,8 @@ func (s *ActionsService) RerunFailedJobsByID(ctx context.Context, owner, repo st
335
340
336
341
// RerunJobByID re-runs a job and its dependent jobs in a workflow run by ID.
337
342
//
343
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
344
+
//
338
345
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run
339
346
//
340
347
//meta:operation POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
// CancelWorkflowRunByID cancels a workflow run by ID.
360
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
353
361
//
354
362
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#cancel-a-workflow-run
// GetWorkflowRunLogs gets a redirect URL to download a plain text file of logs for a workflow run.
377
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
369
378
//
370
379
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-logs
371
380
//
@@ -416,6 +425,7 @@ func (s *ActionsService) getWorkflowRunLogsWithRateLimit(ctx context.Context, u
416
425
}
417
426
418
427
// DeleteWorkflowRun deletes a workflow run by ID.
428
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
419
429
//
420
430
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#delete-a-workflow-run
// DeleteWorkflowRunLogs deletes all logs for a workflow run.
445
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
435
446
//
436
447
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#delete-workflow-run-logs
// GetWorkflowRunUsageByID gets a specific workflow usage run by run ID in the unit of billable milliseconds.
462
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
451
463
//
452
464
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-workflow-run-usage
// GetPendingDeployments get all deployment environments for a workflow run that are waiting for protection rules to pass.
485
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
473
486
//
474
487
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run
// PendingDeployments approve or reject pending deployments that are waiting on approval by a required reviewer.
508
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
495
509
//
496
510
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run
// ReviewCustomDeploymentProtectionRule approves or rejects custom deployment protection rules provided by a GitHub App for a workflow run.
531
+
// You can use the helper function *DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.
517
532
//
518
533
// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run
0 commit comments