From edf3c243df09533ff1b182e480ba02a6cad925b4 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Wed, 18 Jan 2023 21:34:11 +0000 Subject: [PATCH] chore: fix postprocessor pathing and branch issues (#7270) --- internal/postprocessor/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/postprocessor/main.go b/internal/postprocessor/main.go index 49b063f7f35c..a26d23a80ae9 100644 --- a/internal/postprocessor/main.go +++ b/internal/postprocessor/main.go @@ -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() @@ -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 }