@@ -130,6 +130,8 @@ test("Add comment and labels to PRs associated with release commits and issues s
130
130
url : "label_url" ,
131
131
name : "label_name" ,
132
132
color : "ededed" ,
133
+ description : "this is a label description" ,
134
+ isDefault : false ,
133
135
} ,
134
136
] ,
135
137
} ,
@@ -164,6 +166,8 @@ test("Add comment and labels to PRs associated with release commits and issues s
164
166
url : "label_url" ,
165
167
name : "label_name" ,
166
168
color : "ededed" ,
169
+ description : "this is a label description" ,
170
+ isDefault : false ,
167
171
} ,
168
172
] ,
169
173
} ,
@@ -423,6 +427,8 @@ test("Add comment and labels to PRs associated with release commits and issues (
423
427
url : "label_url" ,
424
428
name : "label_name" ,
425
429
color : "ededed" ,
430
+ description : "this is a label description" ,
431
+ isDefault : false ,
426
432
} ,
427
433
] ,
428
434
} ,
@@ -457,6 +463,8 @@ test("Add comment and labels to PRs associated with release commits and issues (
457
463
url : "label_url" ,
458
464
name : "label_name" ,
459
465
color : "ededed" ,
466
+ description : "this is a label description" ,
467
+ isDefault : false ,
460
468
} ,
461
469
] ,
462
470
} ,
@@ -662,6 +670,8 @@ test("Add comment and labels to PRs associated with release commits and issues c
662
670
url : "label_url" ,
663
671
name : "label_name" ,
664
672
color : "ededed" ,
673
+ description : "this is a label description" ,
674
+ isDefault : false ,
665
675
} ,
666
676
] ,
667
677
} ,
@@ -696,6 +706,8 @@ test("Add comment and labels to PRs associated with release commits and issues c
696
706
url : "label_url" ,
697
707
name : "label_name" ,
698
708
color : "ededed" ,
709
+ description : "this is a label description" ,
710
+ isDefault : false ,
699
711
} ,
700
712
] ,
701
713
} ,
@@ -1471,6 +1483,8 @@ test("Do not add comment and labels to PR/issues from other repo", async (t) =>
1471
1483
url : "label_url" ,
1472
1484
name : "label_name" ,
1473
1485
color : "ededed" ,
1486
+ description : "this is a label description" ,
1487
+ isDefault : false ,
1474
1488
} ,
1475
1489
] ,
1476
1490
} ,
@@ -1637,6 +1651,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
1637
1651
url : "label_url" ,
1638
1652
name : "label_name" ,
1639
1653
color : "ededed" ,
1654
+ description : "this is a label description" ,
1655
+ isDefault : false ,
1640
1656
} ,
1641
1657
] ,
1642
1658
} ,
@@ -1671,6 +1687,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
1671
1687
url : "label_url" ,
1672
1688
name : "label_name" ,
1673
1689
color : "ededed" ,
1690
+ description : "this is a label description" ,
1691
+ isDefault : false ,
1674
1692
} ,
1675
1693
] ,
1676
1694
} ,
@@ -1705,6 +1723,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
1705
1723
url : "label_url" ,
1706
1724
name : "label_name" ,
1707
1725
color : "ededed" ,
1726
+ description : "this is a label description" ,
1727
+ isDefault : false ,
1708
1728
} ,
1709
1729
] ,
1710
1730
} ,
@@ -3099,7 +3119,7 @@ test('Add comment and label to found issues/associatedPR using the "successComme
3099
3119
failTitle,
3100
3120
// Issues with the label "semantic-release-relevant" will be commented and labeled
3101
3121
successCommentCondition :
3102
- "<% return issue.labels.includes( 'semantic-release-relevant'); %>" ,
3122
+ "<% return issue.labels?.some((label) => { return label.name === ( 'semantic-release-relevant'); } ); %>" ,
3103
3123
} ;
3104
3124
const options = {
3105
3125
repositoryUrl : `https://github.com/${ owner } /${ repo } .git` ,
@@ -3148,6 +3168,8 @@ test('Add comment and label to found issues/associatedPR using the "successComme
3148
3168
url : "https://github.com/babblebey/sr-github/labels/released" ,
3149
3169
name : "semantic-release-relevant" ,
3150
3170
color : "ededed" ,
3171
+ description : "This issue is relevant to semantic-release" ,
3172
+ isDefault : false ,
3151
3173
} ,
3152
3174
] ,
3153
3175
} ,
@@ -3196,6 +3218,8 @@ test('Add comment and label to found issues/associatedPR using the "successComme
3196
3218
url : "https://github.com/babblebey/sr-github/labels/released" ,
3197
3219
name : "released" ,
3198
3220
color : "ededed" ,
3221
+ description : "this is a label description" ,
3222
+ isDefault : false ,
3199
3223
} ,
3200
3224
] ,
3201
3225
} ,
@@ -3382,6 +3406,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3382
3406
url : "label_url" ,
3383
3407
name : "label_name" ,
3384
3408
color : "ededed" ,
3409
+ description : "this is a label description" ,
3410
+ isDefault : false ,
3385
3411
} ,
3386
3412
] ,
3387
3413
} ,
@@ -3428,6 +3454,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3428
3454
url : "label_url" ,
3429
3455
name : "label_name" ,
3430
3456
color : "ededed" ,
3457
+ description : "this is a label description" ,
3458
+ isDefault : false ,
3431
3459
} ,
3432
3460
] ,
3433
3461
} ,
@@ -3519,6 +3547,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3519
3547
url : "label_url" ,
3520
3548
name : "label_name" ,
3521
3549
color : "ededed" ,
3550
+ description : "this is a label description" ,
3551
+ isDefault : false ,
3522
3552
} ,
3523
3553
] ,
3524
3554
} ,
@@ -3553,6 +3583,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
3553
3583
url : "label_url" ,
3554
3584
name : "label_name" ,
3555
3585
color : "ededed" ,
3586
+ description : "this is a label description" ,
3587
+ isDefault : false ,
3556
3588
} ,
3557
3589
] ,
3558
3590
} ,
@@ -3753,6 +3785,8 @@ test('Does not comment/label "associatedPR" when "successCommentCondition" disab
3753
3785
url : "label_url" ,
3754
3786
name : "label_name" ,
3755
3787
color : "ededed" ,
3788
+ description : "this is a label description" ,
3789
+ isDefault : false ,
3756
3790
} ,
3757
3791
] ,
3758
3792
} ,
0 commit comments