Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github_watcher.rb: fix minor typos #12

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/github_watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def refresh_token
token = state.github_client
.create_org_runner_registration_token(state.config.github_organisation)
rescue Octokit::Error
log("Error retriving runner registration token.", error: true)
log("Error retrieving runner registration token.", error: true)
return
end

Expand Down Expand Up @@ -67,7 +67,7 @@ def refresh_download_urls
}
end
rescue Octokit::Error
log("Error retriving runner download URL.", error: true)
log("Error retrieving runner download URL.", error: true)
return
end

Expand Down Expand Up @@ -152,7 +152,7 @@ def delete_runners
begin
runners = state.github_client.org_runners(state.config.github_organisation).runners
rescue Octokit::Error
log("Error retriving organisation runner list.", error: true)
log("Error retrieving organisation runner list.", error: true)
return
end

Expand Down Expand Up @@ -204,7 +204,7 @@ def timeout_queued_and_deployed
begin
run_statuses[run_key] = state.github_client.workflow_run_attempt(repo, job.run_id, job.run_attempt).status
rescue Octokit::Error
log("Error retriving workflow run information for #{run_key}.", error: true)
log("Error retrieving workflow run information for #{run_key}.", error: true)
next
end
end
Expand Down