@@ -57,6 +57,7 @@ test("Add comment and labels to PRs associated with release commits and issues s
57
57
. sandbox ( )
58
58
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
59
59
full_name : `${ redirectedOwner } /${ redirectedRepo } ` ,
60
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
60
61
} )
61
62
. postOnce ( "https://api.github.local/graphql" , {
62
63
data : {
@@ -418,6 +419,7 @@ test("Make multiple search queries if necessary", async (t) => {
418
419
. sandbox ( )
419
420
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
420
421
full_name : `${ owner } /${ repo } ` ,
422
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
421
423
} )
422
424
. post ( "https://api.github.local/graphql" , {
423
425
data : {
@@ -662,6 +664,7 @@ test("Do not add comment and labels for unrelated PR returned by search (compare
662
664
. sandbox ( )
663
665
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
664
666
full_name : `${ owner } /${ repo } ` ,
667
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
665
668
} )
666
669
. postOnce ( "https://api.github.local/graphql" , {
667
670
data : {
@@ -764,6 +767,7 @@ test("Do not add comment and labels if no PR is associated with release commits"
764
767
. sandbox ( )
765
768
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
766
769
full_name : `${ owner } /${ repo } ` ,
770
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
767
771
} )
768
772
. postOnce ( "https://api.github.local/graphql" , {
769
773
data : {
@@ -826,6 +830,7 @@ test("Do not add comment and labels if no commits is found for release", async (
826
830
. sandbox ( )
827
831
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
828
832
full_name : `${ owner } /${ repo } ` ,
833
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
829
834
} )
830
835
. getOnce (
831
836
`https://api.github.local/search/issues?q=${ encodeURIComponent (
@@ -885,6 +890,7 @@ test("Do not add comment and labels to PR/issues from other repo", async (t) =>
885
890
. sandbox ( )
886
891
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
887
892
full_name : `${ owner } /${ repo } ` ,
893
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
888
894
} )
889
895
. postOnce ( "https://api.github.local/graphql" , {
890
896
data : {
@@ -985,6 +991,7 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
985
991
. sandbox ( )
986
992
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
987
993
full_name : `${ owner } /${ repo } ` ,
994
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
988
995
} )
989
996
. postOnce ( "https://api.github.local/graphql" , {
990
997
data : {
@@ -1154,6 +1161,7 @@ test("Add custom comment and labels", async (t) => {
1154
1161
. sandbox ( )
1155
1162
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1156
1163
full_name : `${ owner } /${ repo } ` ,
1164
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1157
1165
} )
1158
1166
. postOnce ( "https://api.github.local/graphql" , {
1159
1167
data : {
@@ -1249,6 +1257,7 @@ test("Add custom label", async (t) => {
1249
1257
. sandbox ( )
1250
1258
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1251
1259
full_name : `${ owner } /${ repo } ` ,
1260
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1252
1261
} )
1253
1262
. postOnce ( "https://api.github.local/graphql" , {
1254
1263
data : {
@@ -1339,6 +1348,7 @@ test("Comment on issue/PR without ading a label", async (t) => {
1339
1348
. sandbox ( )
1340
1349
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1341
1350
full_name : `${ owner } /${ repo } ` ,
1351
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1342
1352
} )
1343
1353
. postOnce ( "https://api.github.local/graphql" , {
1344
1354
data : {
@@ -1432,6 +1442,7 @@ test("Editing the release to include all release links at the bottom", async (t)
1432
1442
. sandbox ( )
1433
1443
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1434
1444
full_name : `${ owner } /${ repo } ` ,
1445
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1435
1446
} )
1436
1447
. postOnce ( "https://api.github.local/graphql" , {
1437
1448
data : {
@@ -1536,6 +1547,7 @@ test("Editing the release to include all release links at the top", async (t) =>
1536
1547
. sandbox ( )
1537
1548
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1538
1549
full_name : `${ owner } /${ repo } ` ,
1550
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1539
1551
} )
1540
1552
. postOnce ( "https://api.github.local/graphql" , {
1541
1553
data : {
@@ -1637,6 +1649,7 @@ test("Editing the release to include all release links with no additional releas
1637
1649
. sandbox ( )
1638
1650
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1639
1651
full_name : `${ owner } /${ repo } ` ,
1652
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1640
1653
} )
1641
1654
. postOnce ( "https://api.github.local/graphql" , {
1642
1655
data : {
@@ -1727,6 +1740,7 @@ test("Editing the release to include all release links with no additional releas
1727
1740
. sandbox ( )
1728
1741
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1729
1742
full_name : `${ owner } /${ repo } ` ,
1743
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1730
1744
} )
1731
1745
. postOnce ( "https://api.github.local/graphql" , {
1732
1746
data : {
@@ -1810,6 +1824,7 @@ test("Editing the release to include all release links with no releases", async
1810
1824
. sandbox ( )
1811
1825
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1812
1826
full_name : `${ owner } /${ repo } ` ,
1827
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1813
1828
} )
1814
1829
. postOnce ( "https://api.github.local/graphql" , {
1815
1830
data : {
@@ -1895,6 +1910,7 @@ test("Editing the release with no ID in the release", async (t) => {
1895
1910
. sandbox ( )
1896
1911
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1897
1912
full_name : `${ owner } /${ repo } ` ,
1913
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1898
1914
} )
1899
1915
. postOnce ( "https://api.github.local/graphql" , {
1900
1916
data : {
@@ -1985,6 +2001,7 @@ test("Ignore errors when adding comments and closing issues", async (t) => {
1985
2001
. sandbox ( )
1986
2002
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
1987
2003
full_name : `${ owner } /${ repo } ` ,
2004
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
1988
2005
} )
1989
2006
. postOnce ( "https://api.github.local/graphql" , {
1990
2007
data : {
@@ -2118,6 +2135,7 @@ test("Close open issues when a release is successful", async (t) => {
2118
2135
. sandbox ( )
2119
2136
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
2120
2137
full_name : `${ owner } /${ repo } ` ,
2138
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
2121
2139
} )
2122
2140
. postOnce ( "https://api.github.local/graphql" , {
2123
2141
data : {
@@ -2218,6 +2236,7 @@ test('Skip commention on issues/PR if "successComment" is "false"', async (t) =>
2218
2236
. sandbox ( )
2219
2237
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
2220
2238
full_name : `${ owner } /${ repo } ` ,
2239
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
2221
2240
} )
2222
2241
. getOnce (
2223
2242
`https://api.github.local/search/issues?q=${ encodeURIComponent (
@@ -2269,6 +2288,7 @@ test('Skip closing issues if "failComment" is "false"', async (t) => {
2269
2288
. sandbox ( )
2270
2289
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
2271
2290
full_name : `${ owner } /${ repo } ` ,
2291
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
2272
2292
} )
2273
2293
. postOnce ( "https://api.github.local/graphql" , {
2274
2294
data : {
@@ -2320,6 +2340,7 @@ test('Skip closing issues if "failTitle" is "false"', async (t) => {
2320
2340
. sandbox ( )
2321
2341
. getOnce ( `https://api.github.local/repos/${ owner } /${ repo } ` , {
2322
2342
full_name : `${ owner } /${ repo } ` ,
2343
+ clone_url : `https://api.github.local/${ owner } /${ repo } .git` ,
2323
2344
} )
2324
2345
. postOnce ( "https://api.github.local/graphql" , {
2325
2346
data : {
0 commit comments