Skip to content

Commit

Permalink
chore: fix postprocessor pathing and branch issues (#7270)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored Jan 18, 2023
1 parent 5bd944d commit edf3c24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/postprocessor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ func main() {
clientRoot := flag.String("client-root", "/workspace/google-cloud-go", "Path to clients.")
googleapisDir := flag.String("googleapis-dir", "", "Path to googleapis/googleapis repo.")
directories := flag.String("dirs", "", "Comma-separated list of module names to run (not paths).")
branchPrefix := flag.String("branch", "owl-bot-copy-", "The prefix of the branch that OwlBot opens when working on a PR.")
branchPrefix := flag.String("branch", "owl-bot-copy", "The prefix of the branch that OwlBot opens when working on a PR.")
githubUsername := flag.String("gh-user", "googleapis", "GitHub username where repo lives.")
prFilepath := flag.String("pr-file", os.Getenv("NEW_PULL_REQUEST_TEXT_PATH"), "Path at which to write text file if changing PR title or body.")
prFilepath := flag.String("pr-file", "/workspace/new_pull_request_text.txt", "Path at which to write text file if changing PR title or body.")

flag.Parse()

Expand Down Expand Up @@ -390,7 +390,7 @@ func (c *config) writePRCommitToFile(title, body string) error {
return err
}
}
f, err := os.OpenFile(filepath.Join(c.googleCloudDir, c.prFilepath), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
f, err := os.OpenFile(c.prFilepath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit edf3c24

Please sign in to comment.