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

chore(internal/gapicgen): exit 0 when regen is in progress #5838

Merged
merged 2 commits into from Apr 5, 2022
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
4 changes: 2 additions & 2 deletions internal/gapicgen/cmd/genbot/bot.go
Expand Up @@ -20,7 +20,6 @@ package main
import (
"context"
"flag"
"fmt"
"log"
"time"

Expand Down Expand Up @@ -58,7 +57,8 @@ func genBot(ctx context.Context, c botConfig) error {
if pr, err := githubClient.GetRegenPR(ctx, "go-genproto", "open"); err != nil {
return err
} else if pr != nil {
return fmt.Errorf("there is already a re-generation in progress")
log.Println("there is already a re-generation in progress")
return nil
}
if pr, err := githubClient.GetRegenPR(ctx, "google-cloud-go", "open"); err != nil {
return err
Expand Down