QualifiedHeadRef returns a stringified form of the head ref, varying depending on whether the head ref is in the same repository as the base ref. If they are the same repository, we return the branch name only. If they are different repositories, we return the owner and branch name in the form <owne
()
| 94 | // the same repository, we return the branch name only. If they are different repositories, |
| 95 | // we return the owner and branch name in the form <owner>:<branch>. |
| 96 | func (r PRFindRefs) QualifiedHeadRef() string { |
| 97 | return r.qualifiedHeadRef.String() |
| 98 | } |
| 99 | |
| 100 | func (r PRFindRefs) UnqualifiedHeadRef() string { |
| 101 | return r.qualifiedHeadRef.BranchName() |