Skip to content

Commit

Permalink
chore(internal/kokoro): add more debug info (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored Feb 10, 2022
1 parent 4499c41 commit 81492cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/kokoro/discogen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func hasChanges(dir string) (bool, error) {

// makePR commits local changes and makes a regen PR.
func makePR(ctx context.Context, accessToken, dir string) error {
log.Println("creating commit and pushing")
c := exec.Command("/bin/bash", "-c", `
set -ex
Expand All @@ -156,10 +157,13 @@ func makePR(ctx context.Context, accessToken, dir string) error {
fmt.Sprintf("BRANCH_NAME=%s", branchName),
}
c.Dir = dir
c.Stderr = os.Stderr
c.Stdout = os.Stdout
if err := c.Run(); err != nil {
return err
}

log.Println("creating pull request")
ts := oauth2.StaticTokenSource(
&oauth2.Token{AccessToken: accessToken},
)
Expand Down

0 comments on commit 81492cc

Please sign in to comment.