@@ -33,8 +33,8 @@ test("Add comment and labels to PRs associated with release commits and issues s
33
33
const failTitle = "The automated release is failing 🚨" ;
34
34
const pluginConfig = { failTitle } ;
35
35
const prs = [
36
- { number : 1 , pull_request : true , state : "closed" } ,
37
- { number : 2 , pull_request : true , body : "Fixes #3" , state : "closed" } ,
36
+ { number : 1 , __typename : "PullRequest" , state : "closed" } ,
37
+ { number : 2 , __typename : "PullRequest" , body : "Fixes #3" , state : "closed" } ,
38
38
] ;
39
39
const options = {
40
40
branch : "master" ,
@@ -103,6 +103,7 @@ test("Add comment and labels to PRs associated with release commits and issues s
103
103
data : {
104
104
repository : {
105
105
issue3 : {
106
+ __typename : "Issue" ,
106
107
id : "I_kw" ,
107
108
title : "issue title" ,
108
109
body : "" ,
@@ -139,6 +140,7 @@ test("Add comment and labels to PRs associated with release commits and issues s
139
140
locked : false ,
140
141
} ,
141
142
issue4 : {
143
+ __typename : "Issue" ,
142
144
id : "I_kw" ,
143
145
title : "issue title" ,
144
146
body : "" ,
@@ -317,10 +319,10 @@ test("Add comment and labels to PRs associated with release commits and issues (
317
319
const failTitle = "The automated release is failing 🚨" ;
318
320
const pluginConfig = { failTitle } ;
319
321
const prs = [
320
- { number : 1 , pull_request : true , state : "closed" } ,
321
- { number : 2 , pull_request : true , body : "Fixes #3" , state : "closed" } ,
322
- { number : 5 , pull_request : true , state : "closed" } ,
323
- { number : 6 , pull_request : true , state : "closed" } ,
322
+ { number : 1 , __typename : "PullRequest" , state : "closed" } ,
323
+ { number : 2 , __typename : "PullRequest" , body : "Fixes #3" , state : "closed" } ,
324
+ { number : 5 , __typename : "PullRequest" , state : "closed" } ,
325
+ { number : 6 , __typename : "PullRequest" , state : "closed" } ,
324
326
] ;
325
327
const options = {
326
328
branch : "master" ,
@@ -414,6 +416,7 @@ test("Add comment and labels to PRs associated with release commits and issues (
414
416
data : {
415
417
repository : {
416
418
issue3 : {
419
+ __typename : "Issue" ,
417
420
id : "I_kw" ,
418
421
title : "issue title" ,
419
422
body : "" ,
@@ -450,6 +453,7 @@ test("Add comment and labels to PRs associated with release commits and issues (
450
453
locked : false ,
451
454
} ,
452
455
issue4 : {
456
+ __typename : "Issue" ,
453
457
id : "I_kw" ,
454
458
title : "issue title" ,
455
459
body : "" ,
@@ -607,8 +611,8 @@ test("Add comment and labels to PRs associated with release commits and issues c
607
611
const failTitle = "The automated release is failing 🚨" ;
608
612
const pluginConfig = { failTitle } ;
609
613
const prs = [
610
- { number : 1 , pull_request : true , state : "closed" } ,
611
- { number : 2 , pull_request : true , body : "Fixes #3" , state : "closed" } ,
614
+ { number : 1 , __typename : "PullRequest" , state : "closed" } ,
615
+ { number : 2 , __typename : "PullRequest" , body : "Fixes #3" , state : "closed" } ,
612
616
] ;
613
617
const options = {
614
618
branch : "master" ,
@@ -671,6 +675,7 @@ test("Add comment and labels to PRs associated with release commits and issues c
671
675
data : {
672
676
repository : {
673
677
issue3 : {
678
+ __typename : "Issue" ,
674
679
id : "I_kw" ,
675
680
title : "issue title" ,
676
681
body : "" ,
@@ -707,6 +712,7 @@ test("Add comment and labels to PRs associated with release commits and issues c
707
712
locked : false ,
708
713
} ,
709
714
issue4 : {
715
+ __typename : "Issue" ,
710
716
id : "I_kw" ,
711
717
title : "issue title" ,
712
718
body : "" ,
@@ -905,12 +911,12 @@ test("Make multiple search queries if necessary", async (t) => {
905
911
const failTitle = "The automated release is failing 🚨" ;
906
912
const pluginConfig = { failTitle } ;
907
913
const prs = [
908
- { number : 1 , pull_request : true , state : "closed" } ,
909
- { number : 2 , pull_request : true , state : "closed" } ,
910
- { number : 3 , pull_request : true , state : "closed" } ,
911
- { number : 4 , pull_request : true , state : "closed" } ,
912
- { number : 5 , pull_request : true , state : "closed" } ,
913
- { number : 6 , pull_request : true , state : "closed" } ,
914
+ { number : 1 , __typename : "PullRequest" , state : "closed" } ,
915
+ { number : 2 , __typename : "PullRequest" , state : "closed" } ,
916
+ { number : 3 , __typename : "PullRequest" , state : "closed" } ,
917
+ { number : 4 , __typename : "PullRequest" , state : "closed" } ,
918
+ { number : 5 , __typename : "PullRequest" , state : "closed" } ,
919
+ { number : 6 , __typename : "PullRequest" , state : "closed" } ,
914
920
] ;
915
921
const options = {
916
922
branch : "master" ,
@@ -1210,8 +1216,8 @@ test("Do not add comment and labels for unrelated PR returned by search (compare
1210
1216
const failTitle = "The automated release is failing 🚨" ;
1211
1217
const pluginConfig = { failTitle } ;
1212
1218
const prs = [
1213
- { number : 1 , pull_request : true , state : "closed" } ,
1214
- { number : 2 , pull_request : true , state : "closed" } ,
1219
+ { number : 1 , __typename : "PullRequest" , state : "closed" } ,
1220
+ { number : 2 , __typename : "PullRequest" , state : "closed" } ,
1215
1221
] ;
1216
1222
const options = {
1217
1223
branch : "master" ,
@@ -1677,9 +1683,9 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
1677
1683
const failTitle = "The automated release is failing 🚨" ;
1678
1684
const pluginConfig = { failTitle } ;
1679
1685
const prs = [
1680
- { number : 1 , pull_request : true , state : "closed" } ,
1681
- { number : 2 , pull_request : true , body : "Fixes #4" , state : "closed" } ,
1682
- { number : 3 , pull_request : true , body : "Fixes #5" , state : "closed" } ,
1686
+ { number : 1 , __typename : "PullRequest" , state : "closed" } ,
1687
+ { number : 2 , __typename : "PullRequest" , body : "Fixes #4" , state : "closed" } ,
1688
+ { number : 3 , __typename : "PullRequest" , body : "Fixes #5" , state : "closed" } ,
1683
1689
] ;
1684
1690
const options = {
1685
1691
branch : "master" ,
@@ -1750,6 +1756,7 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
1750
1756
data : {
1751
1757
repository : {
1752
1758
issue4 : {
1759
+ __typename : "Issue" ,
1753
1760
id : "I_kw" ,
1754
1761
title : "issue title" ,
1755
1762
body : "" ,
@@ -1786,6 +1793,7 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
1786
1793
locked : false ,
1787
1794
} ,
1788
1795
issue5 : {
1796
+ __typename : "Issue" ,
1789
1797
id : "I_kw" ,
1790
1798
title : "issue title" ,
1791
1799
body : "" ,
@@ -1822,6 +1830,7 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
1822
1830
locked : false ,
1823
1831
} ,
1824
1832
issue1 : {
1833
+ __typename : "Issue" ,
1825
1834
id : "I_kw" ,
1826
1835
title : "issue title" ,
1827
1836
body : "" ,
@@ -2008,7 +2017,7 @@ test("Add custom comment and labels", async (t) => {
2008
2017
] ,
2009
2018
} ;
2010
2019
const prs = [
2011
- { number : 1 , prop : "PR prop" , pull_request : true , state : "closed" } ,
2020
+ { number : 1 , prop : "PR prop" , __typename : "PullRequest" , state : "closed" } ,
2012
2021
] ;
2013
2022
const options = { repositoryUrl : `https://github.com/${ owner } /${ repo } .git` } ;
2014
2023
const lastRelease = { version : "1.0.0" } ;
@@ -2129,7 +2138,7 @@ test("Add custom label", async (t) => {
2129
2138
const env = { GITHUB_TOKEN : "github_token" } ;
2130
2139
const failTitle = "The automated release is failing 🚨" ;
2131
2140
const pluginConfig = { releasedLabels : [ "custom label" ] , failTitle } ;
2132
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2141
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2133
2142
const options = { repositoryUrl : `https://github.com/${ owner } /${ repo } .git` } ;
2134
2143
const lastRelease = { version : "1.0.0" } ;
2135
2144
const commits = [ { hash : "123" , message : "Commit 1 message" } ] ;
@@ -2242,7 +2251,7 @@ test("Comment on issue/PR without ading a label", async (t) => {
2242
2251
const env = { GITHUB_TOKEN : "github_token" } ;
2243
2252
const failTitle = "The automated release is failing 🚨" ;
2244
2253
const pluginConfig = { releasedLabels : false , failTitle } ;
2245
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2254
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2246
2255
const options = { repositoryUrl : `https://github.com/${ owner } /${ repo } .git` } ;
2247
2256
const lastRelease = { version : "1.0.0" } ;
2248
2257
const commits = [ { hash : "123" , message : "Commit 1 message" } ] ;
@@ -2347,7 +2356,7 @@ test("Editing the release to include all release links at the bottom", async (t)
2347
2356
const env = { GITHUB_TOKEN : "github_token" } ;
2348
2357
const failTitle = "The automated release is failing 🚨" ;
2349
2358
const pluginConfig = { releasedLabels : false , addReleases : "bottom" } ;
2350
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2359
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2351
2360
const options = {
2352
2361
repositoryUrl : `https://github.com/${ owner } /${ repo } .git` ,
2353
2362
} ;
@@ -2478,7 +2487,7 @@ test("Editing the release to include all release links at the top", async (t) =>
2478
2487
const env = { GITHUB_TOKEN : "github_token" } ;
2479
2488
const failTitle = "The automated release is failing 🚨" ;
2480
2489
const pluginConfig = { releasedLabels : false , addReleases : "top" } ;
2481
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2490
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2482
2491
const options = {
2483
2492
repositoryUrl : `https://github.com/${ owner } /${ repo } .git` ,
2484
2493
} ;
@@ -2609,7 +2618,7 @@ test("Editing the release to include all release links with no additional releas
2609
2618
const env = { GITHUB_TOKEN : "github_token" } ;
2610
2619
const failTitle = "The automated release is failing 🚨" ;
2611
2620
const pluginConfig = { releasedLabels : false , addReleases : "top" } ;
2612
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2621
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2613
2622
const options = {
2614
2623
repositoryUrl : `https://github.com/${ owner } /${ repo } .git` ,
2615
2624
} ;
@@ -2726,7 +2735,7 @@ test("Editing the release to include all release links with no additional releas
2726
2735
const env = { GITHUB_TOKEN : "github_token" } ;
2727
2736
const failTitle = "The automated release is failing 🚨" ;
2728
2737
const pluginConfig = { releasedLabels : false , addReleases : "bottom" } ;
2729
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2738
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2730
2739
const options = {
2731
2740
repositoryUrl : `https://github.com/${ owner } /${ repo } .git` ,
2732
2741
} ;
@@ -2843,7 +2852,7 @@ test("Editing the release to include all release links with no releases", async
2843
2852
const env = { GITHUB_TOKEN : "github_token" } ;
2844
2853
const failTitle = "The automated release is failing 🚨" ;
2845
2854
const pluginConfig = { releasedLabels : false , addReleases : "bottom" } ;
2846
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2855
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2847
2856
const options = {
2848
2857
repositoryUrl : `https://github.com/${ owner } /${ repo } .git` ,
2849
2858
} ;
@@ -2953,7 +2962,7 @@ test("Editing the release with no ID in the release", async (t) => {
2953
2962
const env = { GITHUB_TOKEN : "github_token" } ;
2954
2963
const failTitle = "The automated release is failing 🚨" ;
2955
2964
const pluginConfig = { releasedLabels : false , addReleases : "bottom" } ;
2956
- const prs = [ { number : 1 , pull_request : true , state : "closed" } ] ;
2965
+ const prs = [ { number : 1 , __typename : "PullRequest" , state : "closed" } ] ;
2957
2966
const options = { repositoryUrl : `https://github.com/${ owner } /${ repo } .git` } ;
2958
2967
const nextRelease = {
2959
2968
version : "2.0.0" ,
@@ -3071,8 +3080,8 @@ test("Ignore errors when adding comments and closing issues", async (t) => {
3071
3080
{ number : 3 , body : `Issue 3 body\n\n${ ISSUE_ID } ` , title : failTitle } ,
3072
3081
] ;
3073
3082
const prs = [
3074
- { number : 1 , pull_request : true , state : "closed" } ,
3075
- { number : 2 , pull_request : true , state : "closed" } ,
3083
+ { number : 1 , __typename : "PullRequest" , state : "closed" } ,
3084
+ { number : 2 , __typename : "PullRequest" , state : "closed" } ,
3076
3085
] ;
3077
3086
const options = {
3078
3087
repositoryUrl : `https://github.com/${ owner } /${ repo } .git` ,
@@ -3524,6 +3533,7 @@ test('Add comment and label to found issues/associatedPR using the "successComme
3524
3533
3525
3534
const prs = [
3526
3535
{
3536
+ __typename : "PullRequest" ,
3527
3537
id : "PR_kwDOMLlZj85z_R2M" ,
3528
3538
title : "fix: will semantic-release recognize the associated issue " ,
3529
3539
body : "" ,
@@ -3574,6 +3584,7 @@ test('Add comment and label to found issues/associatedPR using the "successComme
3574
3584
} ,
3575
3585
} ,
3576
3586
{
3587
+ __typename : "PullRequest" ,
3577
3588
id : "PR_kwDOMLlZj85z_R2M" ,
3578
3589
title : "fix: will semantic-release recognize the associated issue " ,
3579
3590
body : "" ,
@@ -3775,6 +3786,7 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3775
3786
] ;
3776
3787
const prs = [
3777
3788
{
3789
+ __typename : "PullRequest" ,
3778
3790
number : 2 ,
3779
3791
id : "PR_kwDOMLlZj851SZzc" ,
3780
3792
title : "pr title" ,
@@ -3823,6 +3835,7 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3823
3835
} ,
3824
3836
} ,
3825
3837
{
3838
+ __typename : "PullRequest" ,
3826
3839
number : 3 ,
3827
3840
id : "PR_kwDOMLlZj851SZzc" ,
3828
3841
title : "pr title" ,
@@ -3916,6 +3929,7 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3916
3929
data : {
3917
3930
repository : {
3918
3931
issue4 : {
3932
+ __typename : "Issue" ,
3919
3933
id : "I_kw" ,
3920
3934
title : "issue title" ,
3921
3935
body : "" ,
@@ -3952,6 +3966,7 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3952
3966
locked : false ,
3953
3967
} ,
3954
3968
issue5 : {
3969
+ __typename : "Issue" ,
3955
3970
id : "I_kw" ,
3956
3971
title : "issue title" ,
3957
3972
body : "" ,
@@ -4120,8 +4135,8 @@ test('Does not comment/label "associatedPR" when "successCommentCondition" disab
4120
4135
} ,
4121
4136
] ;
4122
4137
const prs = [
4123
- { number : 2 , pull_request : true , body : "Fixes #4" , state : "closed" } ,
4124
- { number : 3 , pull_request : true , state : "closed" } ,
4138
+ { number : 2 , __typename : "PullRequest" , body : "Fixes #4" , state : "closed" } ,
4139
+ { number : 3 , __typename : "PullRequest" , state : "closed" } ,
4125
4140
] ;
4126
4141
4127
4142
const fetch = fetchMock
@@ -4168,6 +4183,7 @@ test('Does not comment/label "associatedPR" when "successCommentCondition" disab
4168
4183
data : {
4169
4184
repository : {
4170
4185
issue4 : {
4186
+ __typename : "Issue" ,
4171
4187
id : "I_kw" ,
4172
4188
title : "issue title" ,
4173
4189
body : "" ,
0 commit comments