cli/pkg/cmd/pr
Kynan Ware c0c5d9123d refactor(pr create): use GetPRHeadLabel()
Use PrRefs.GetPRHeadLabel() instead of headBranchLabel.
Also remove headBranchLabel from CreateContext struct.

To do this, we needed a new identifier for when the head repo should be
created via a new fork of the base repo. Previously, this was done by
checking if the head repo was nil, but if we want to call
GetPRHeadLabel(), it requires a non-nil head repo to construct the
headBranchLabel. So, instead of the head repo being nil to signal
a fork, we pass a new forkHeadRepo bool in the CreateContext struct.
This also makes the decision to fork more intentional; now the decision
is made clearly instead of if the headRepo happens to be nil.
2025-04-15 13:38:10 -06:00
..
checkout Fix checkout when URL arg is from fork and cwd is upstream 2025-02-27 16:56:11 +01:00
checks Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
close Remove trailing whitespace 2025-02-13 11:06:27 +05:00
comment Clean up pr/issue comment test names 2025-03-18 16:14:14 -04:00
create refactor(pr create): use GetPRHeadLabel() 2025-04-15 13:38:10 -06:00
diff Fix tests 2024-08-16 10:11:52 -07:00
edit Replace --project.* flags' name with title in docs (#9443) 2024-08-09 13:55:14 -07:00
list Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
merge Fix: Ensure constant format strings in fmt and printf calls 2025-01-20 16:27:27 +01:00
ready Apply first round of owner/repo#number consistency 2024-03-01 14:03:18 -05:00
reopen Fix breaking test for PR/issue # change 2024-03-01 16:04:24 -05:00
review Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
shared doc: fix PullRequestRefs comment 2025-04-15 13:38:10 -06:00
status Apply suggestions from code review 2025-04-08 15:56:23 -04:00
update-branch chore: remove redundant word in comment 2025-03-12 16:13:46 +08:00
view Merge pull request #10737 from cli/andyfeller/muted-text-part2-github-cli-833 2025-04-08 16:59:36 -04:00
pr.go Rename package directory and files 2024-07-17 18:52:23 +01:00