Skip to content

Add break to prevent log flooding and API abuse #42

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/metrics/get_runners_organization_from_github.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func getRunnersOrganizationFromGithub() {
resp, rr, err := client.Actions.ListOrganizationRunners(context.Background(), orga, opt)
if err != nil {
log.Printf("ListOrganizationRunners error for %s: %s", orga, err.Error())
break
} else {
for _, runner := range resp.Runners {
if runner.GetStatus() == "online" {
Expand Down