Skip to content

Commit

Permalink
Update rancher.go
Browse files Browse the repository at this point in the history
  • Loading branch information
johnatasr authored Nov 16, 2023
1 parent e3b512e commit 9422eac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions release/rancher/rancher.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,12 @@ func SetChartBranchReferences(ctx context.Context, forkPath, rancherBaseBranch,
}

func createPRFromRancher(ctx context.Context, rancherBaseBranch, title, branchName, forkOwner string, ghClient *github.Client) error {

pull := &github.NewPullRequest{
Title: github.String(title),
Base: github.String(rancherBaseBranch),
Head: github.String(forkOwner + ":" + branchName),
MaintainerCanModify: github.Bool(true),
}

_, _, err := ghClient.PullRequests.Create(ctx, "rancher", "rancher", pull)

return err
Expand Down

0 comments on commit 9422eac

Please sign in to comment.