doc(pr create): improve head repo resolution comments
Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
parent
041f02c980
commit
7bb5d71f4c
1 changed files with 2 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue