Module: Octokit::Client::ActionsWorkflowRuns
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/client/actions_workflow_runs.rb |
Instance Method Summary
-
#cancel_workflow_run(repo, id, options = {}) ⇒ Boolean
Cancels a workflow run.
-
#delete_workflow_run(repo, id, options = {}) ⇒ Boolean
Deletes a workflow run.
-
#delete_workflow_run_logs(repo, id, options = {}) ⇒ Boolean
Delets all log files of a workflow run.
-
#list_repository_workflow_runs(repo, options = {})
Alias for #repository_workflow_runs.
-
#list_workflow_runs(repo, workflow, options = {})
Alias for #workflow_runs.
-
#repository_workflow_runs(repo, options = {}) ⇒ Sawyer::Resource
(also: #list_repository_workflow_runs)
List all workflow runs for a repository.
-
#rerun_workflow_run(repo, id, options = {}) ⇒ Boolean
Re-runs a workflow run.
-
#workflow_run(repo, id, options = {}) ⇒ Sawyer::Resource
Get a workflow run.
-
#workflow_run_logs(repo, id, options = {}) ⇒ String
Get a download url for archived log files of a workflow run.
-
#workflow_runs(repo, workflow, options = {}) ⇒ Sawyer::Resource
(also: #list_workflow_runs)
List all runs for a repository workflow.
Instance Method Details
#cancel_workflow_run(repo, id, options = {}) ⇒ Boolean
Cancels a workflow run
# File 'lib/octokit/client/actions_workflow_runs.rb', line 66
def cancel_workflow_run(repo, id, = {}) boolean_from_response :post, "#{Repository.path repo}/actions/runs/#{id}/cancel", end
#delete_workflow_run(repo, id, options = {}) ⇒ Boolean
Deletes a workflow run
# File 'lib/octokit/client/actions_workflow_runs.rb', line 77
def delete_workflow_run(repo, id, = {}) boolean_from_response :delete, "#{Repository.path repo}/actions/runs/#{id}", end
#delete_workflow_run_logs(repo, id, options = {}) ⇒ Boolean
Delets all log files of a workflow run
# File 'lib/octokit/client/actions_workflow_runs.rb', line 102
def delete_workflow_run_logs(repo, id, = {}) boolean_from_response :delete, "#{Repository.path repo}/actions/runs/#{id}/logs", end
#list_repository_workflow_runs(repo, options = {})
Alias for #repository_workflow_runs.
# File 'lib/octokit/client/actions_workflow_runs.rb', line 35
alias list_repository_workflow_runs repository_workflow_runs
#list_workflow_runs(repo, workflow, options = {})
Alias for #workflow_runs.
# File 'lib/octokit/client/actions_workflow_runs.rb', line 20
alias list_workflow_runs workflow_runs
#repository_workflow_runs(repo, options = {}) ⇒ Sawyer::Resource
Also known as: #list_repository_workflow_runs
List all workflow runs for a repository
# File 'lib/octokit/client/actions_workflow_runs.rb', line 32
def repository_workflow_runs(repo, = {}) paginate "#{Repository.path repo}/actions/runs", end
#rerun_workflow_run(repo, id, options = {}) ⇒ Boolean
Re-runs a workflow run
# File 'lib/octokit/client/actions_workflow_runs.rb', line 55
def rerun_workflow_run(repo, id, = {}) boolean_from_response :post, "#{Repository.path repo}/actions/runs/#{id}/rerun", end
#workflow_run(repo, id, options = {}) ⇒ Sawyer::Resource
Get a workflow run
# File 'lib/octokit/client/actions_workflow_runs.rb', line 44
def workflow_run(repo, id, = {}) get "#{Repository.path repo}/actions/runs/#{id}", end
#workflow_run_logs(repo, id, options = {}) ⇒ String
Get a download url for archived log files of a workflow run
# File 'lib/octokit/client/actions_workflow_runs.rb', line 88
def workflow_run_logs(repo, id, = {}) url = "#{Repository.path repo}/actions/runs/#{id}/logs" response = client_without_redirects.head(url, ) response.headers['Location'] end
#workflow_runs(repo, workflow, options = {}) ⇒ Sawyer::Resource
Also known as: #list_workflow_runs
List all runs for a repository workflow
# File 'lib/octokit/client/actions_workflow_runs.rb', line 17
def workflow_runs(repo, workflow, = {}) paginate "#{Repository.path repo}/actions/workflows/#{workflow}/runs", end