@@ -827,19 +827,19 @@ func Test_generateCompareURL(t *testing.T) {
827827 {
828828 name : "basic" ,
829829 ctx : CreateContext {
830- BaseRepo : ghrepo .New ("OWNER" , "REPO" ),
831- BaseBranch : "main" ,
832- HeadBranch : "feature" ,
830+ BaseRepo : ghrepo .New ("OWNER" , "REPO" ),
831+ BaseBranch : "main" ,
832+ HeadBranchLabel : "feature" ,
833833 },
834834 want : "https://github.com/OWNER/REPO/compare/main...feature?expand=1" ,
835835 wantErr : false ,
836836 },
837837 {
838838 name : "with labels" ,
839839 ctx : CreateContext {
840- BaseRepo : ghrepo .New ("OWNER" , "REPO" ),
841- BaseBranch : "a" ,
842- HeadBranch : "b" ,
840+ BaseRepo : ghrepo .New ("OWNER" , "REPO" ),
841+ BaseBranch : "a" ,
842+ HeadBranchLabel : "b" ,
843843 },
844844 state : prShared.IssueMetadataState {
845845 Labels : []string {"one" , "two three" },
@@ -850,9 +850,9 @@ func Test_generateCompareURL(t *testing.T) {
850850 {
851851 name : "complex branch names" ,
852852 ctx : CreateContext {
853- BaseRepo : ghrepo .New ("OWNER" , "REPO" ),
854- BaseBranch : "main/trunk" ,
855- HeadBranch : "owner:feature" ,
853+ BaseRepo : ghrepo .New ("OWNER" , "REPO" ),
854+ BaseBranch : "main/trunk" ,
855+ HeadBranchLabel : "owner:feature" ,
856856 },
857857 want : "https://github.com/OWNER/REPO/compare/main%2Ftrunk...owner%3Afeature?expand=1" ,
858858 wantErr : false ,
0 commit comments