During the review of #10513 it came up that it would be useful to add baseBranchName to the PR Finder's PullRequestRefs struct.
|
// TODO: Does this also need the BaseBranchName? |
|
// PR's are represented by the following: |
|
// baseRef -----PR-----> headRef |
|
// |
|
// A ref is described as "remoteName/branchName", so |
|
// baseRepoName/baseBranchName -----PR-----> headRepoName/headBranchName |
|
type PullRequestRefs struct { |
|
BranchName string |
|
HeadRepo ghrepo.Interface |
|
BaseRepo ghrepo.Interface |
|
} |
During the review of #10513 it came up that it would be useful to add
baseBranchNameto the PR Finder'sPullRequestRefsstruct.cli/pkg/cmd/pr/shared/finder.go
Lines 100 to 110 in af4acb3