From fa5325aec943685fbdc3ff2a8f084414fb12ed03 Mon Sep 17 00:00:00 2001 From: Tyler McGoffin Date: Fri, 31 Jan 2025 14:21:29 -0800 Subject: [PATCH] Add comment to status recognizing when we require a repo --- pkg/cmd/pr/status/status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cmd/pr/status/status.go b/pkg/cmd/pr/status/status.go index 3877fb1cf..2436934bf 100644 --- a/pkg/cmd/pr/status/status.go +++ b/pkg/cmd/pr/status/status.go @@ -87,6 +87,7 @@ func statusRun(opts *StatusOptions) error { var currentHeadRefBranchName string if !opts.HasRepoOverride { + // We must be in a repo without the override currentBranchName, err = opts.Branch() if err != nil && !errors.Is(err, git.ErrNotOnAnyBranch) { return fmt.Errorf("could not query for pull request for current branch: %w", err)