@@ -239,7 +239,7 @@ func TestPRCreate_nontty_web(t *testing.T) {
239239
240240 assert .Equal (t , "" , output .String ())
241241 assert .Equal (t , "" , output .Stderr ())
242- assert .Equal (t , "https://github.com/OWNER/REPO/compare/master...feature?expand=1" , output .BrowsedURL )
242+ assert .Equal (t , "https://github.com/OWNER/REPO/compare/master...feature?body=& expand=1" , output .BrowsedURL )
243243}
244244
245245func TestPRCreate_recover (t * testing.T ) {
@@ -780,7 +780,7 @@ func TestPRCreate_web(t *testing.T) {
780780
781781 assert .Equal (t , "" , output .String ())
782782 assert .Equal (t , "Opening github.com/OWNER/REPO/compare/master...feature in your browser.\n " , output .Stderr ())
783- assert .Equal (t , "https://github.com/OWNER/REPO/compare/master...feature?expand=1" , output .BrowsedURL )
783+ assert .Equal (t , "https://github.com/OWNER/REPO/compare/master...feature?body=& expand=1" , output .BrowsedURL )
784784}
785785
786786func TestPRCreate_webLongURL (t * testing.T ) {
@@ -851,7 +851,7 @@ func TestPRCreate_webProject(t *testing.T) {
851851
852852 assert .Equal (t , "" , output .String ())
853853 assert .Equal (t , "Opening github.com/OWNER/REPO/compare/master...feature in your browser.\n " , output .Stderr ())
854- assert .Equal (t , "https://github.com/OWNER/REPO/compare/master...feature?expand=1&projects=ORG%2F1" , output .BrowsedURL )
854+ assert .Equal (t , "https://github.com/OWNER/REPO/compare/master...feature?body=& expand=1&projects=ORG%2F1" , output .BrowsedURL )
855855}
856856
857857func Test_determineTrackingBranch_empty (t * testing.T ) {
@@ -965,7 +965,7 @@ func Test_generateCompareURL(t *testing.T) {
965965 BaseBranch : "main" ,
966966 HeadBranchLabel : "feature" ,
967967 },
968- want : "https://github.com/OWNER/REPO/compare/main...feature?expand=1" ,
968+ want : "https://github.com/OWNER/REPO/compare/main...feature?body=& expand=1" ,
969969 wantErr : false ,
970970 },
971971 {
@@ -978,7 +978,7 @@ func Test_generateCompareURL(t *testing.T) {
978978 state : prShared.IssueMetadataState {
979979 Labels : []string {"one" , "two three" },
980980 },
981- want : "https://github.com/OWNER/REPO/compare/a...b?expand=1&labels=one%2Ctwo+three" ,
981+ want : "https://github.com/OWNER/REPO/compare/a...b?body=& expand=1&labels=one%2Ctwo+three" ,
982982 wantErr : false ,
983983 },
984984 {
@@ -988,7 +988,7 @@ func Test_generateCompareURL(t *testing.T) {
988988 BaseBranch : "main/trunk" ,
989989 HeadBranchLabel : "owner:feature" ,
990990 },
991- want : "https://github.com/OWNER/REPO/compare/main%2Ftrunk...owner%3Afeature?expand=1" ,
991+ want : "https://github.com/OWNER/REPO/compare/main%2Ftrunk...owner%3Afeature?body=& expand=1" ,
992992 wantErr : false ,
993993 },
994994 }
0 commit comments