From 7bb5d71f4cfd5cf9b70d61abc9a8ef2f4b9335c4 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Tue, 11 Mar 2025 14:13:34 -0600 Subject: [PATCH] doc(pr create): improve head repo resolution comments Co-authored-by: Andy Feller --- pkg/cmd/pr/create/create.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/pr/create/create.go b/pkg/cmd/pr/create/create.go index 958de2c1f..9bb15c162 100644 --- a/pkg/cmd/pr/create/create.go +++ b/pkg/cmd/pr/create/create.go @@ -649,6 +649,8 @@ func NewCreateContext(opts *CreateOptions) (*CreateContext, error) { // our local branch state. // If it is, we can use it as the head repo for the PR // and avoid prompting the user. + // Errors raised here should not cause command to fail, + // prompt user for head repo if an error is raised or no remote found. if prRefs.HasHead() { // Check if the head branch is up-to-date with the local branch headRemote, err := remotes.FindByRepo(prRefs.HeadRepo.RepoOwner(), prRefs.HeadRepo.RepoName())