Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 87ff01d

Browse filesBrowse files
committed
test: updated coverage for new label property update
1 parent abcf4c4 commit 87ff01d
Copy full SHA for 87ff01d

File tree

Expand file treeCollapse file tree

1 file changed

+35
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+35
-1
lines changed

‎test/success.test.js

Copy file name to clipboardExpand all lines: test/success.test.js
+35-1Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ test("Add comment and labels to PRs associated with release commits and issues s
130130
url: "label_url",
131131
name: "label_name",
132132
color: "ededed",
133+
description: "this is a label description",
134+
isDefault: false,
133135
},
134136
],
135137
},
@@ -164,6 +166,8 @@ test("Add comment and labels to PRs associated with release commits and issues s
164166
url: "label_url",
165167
name: "label_name",
166168
color: "ededed",
169+
description: "this is a label description",
170+
isDefault: false,
167171
},
168172
],
169173
},
@@ -423,6 +427,8 @@ test("Add comment and labels to PRs associated with release commits and issues (
423427
url: "label_url",
424428
name: "label_name",
425429
color: "ededed",
430+
description: "this is a label description",
431+
isDefault: false,
426432
},
427433
],
428434
},
@@ -457,6 +463,8 @@ test("Add comment and labels to PRs associated with release commits and issues (
457463
url: "label_url",
458464
name: "label_name",
459465
color: "ededed",
466+
description: "this is a label description",
467+
isDefault: false,
460468
},
461469
],
462470
},
@@ -662,6 +670,8 @@ test("Add comment and labels to PRs associated with release commits and issues c
662670
url: "label_url",
663671
name: "label_name",
664672
color: "ededed",
673+
description: "this is a label description",
674+
isDefault: false,
665675
},
666676
],
667677
},
@@ -696,6 +706,8 @@ test("Add comment and labels to PRs associated with release commits and issues c
696706
url: "label_url",
697707
name: "label_name",
698708
color: "ededed",
709+
description: "this is a label description",
710+
isDefault: false,
699711
},
700712
],
701713
},
@@ -1471,6 +1483,8 @@ test("Do not add comment and labels to PR/issues from other repo", async (t) =>
14711483
url: "label_url",
14721484
name: "label_name",
14731485
color: "ededed",
1486+
description: "this is a label description",
1487+
isDefault: false,
14741488
},
14751489
],
14761490
},
@@ -1637,6 +1651,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
16371651
url: "label_url",
16381652
name: "label_name",
16391653
color: "ededed",
1654+
description: "this is a label description",
1655+
isDefault: false,
16401656
},
16411657
],
16421658
},
@@ -1671,6 +1687,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
16711687
url: "label_url",
16721688
name: "label_name",
16731689
color: "ededed",
1690+
description: "this is a label description",
1691+
isDefault: false,
16741692
},
16751693
],
16761694
},
@@ -1705,6 +1723,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
17051723
url: "label_url",
17061724
name: "label_name",
17071725
color: "ededed",
1726+
description: "this is a label description",
1727+
isDefault: false,
17081728
},
17091729
],
17101730
},
@@ -3099,7 +3119,7 @@ test('Add comment and label to found issues/associatedPR using the "successComme
30993119
failTitle,
31003120
// Issues with the label "semantic-release-relevant" will be commented and labeled
31013121
successCommentCondition:
3102-
"<% return issue.labels.includes('semantic-release-relevant'); %>",
3122+
"<% return issue.labels?.some((label) => { return label.name === ('semantic-release-relevant'); }); %>",
31033123
};
31043124
const options = {
31053125
repositoryUrl: `https://github.com/${owner}/${repo}.git`,
@@ -3148,6 +3168,8 @@ test('Add comment and label to found issues/associatedPR using the "successComme
31483168
url: "https://github.com/babblebey/sr-github/labels/released",
31493169
name: "semantic-release-relevant",
31503170
color: "ededed",
3171+
description: "This issue is relevant to semantic-release",
3172+
isDefault: false,
31513173
},
31523174
],
31533175
},
@@ -3196,6 +3218,8 @@ test('Add comment and label to found issues/associatedPR using the "successComme
31963218
url: "https://github.com/babblebey/sr-github/labels/released",
31973219
name: "released",
31983220
color: "ededed",
3221+
description: "this is a label description",
3222+
isDefault: false,
31993223
},
32003224
],
32013225
},
@@ -3382,6 +3406,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
33823406
url: "label_url",
33833407
name: "label_name",
33843408
color: "ededed",
3409+
description: "this is a label description",
3410+
isDefault: false,
33853411
},
33863412
],
33873413
},
@@ -3428,6 +3454,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
34283454
url: "label_url",
34293455
name: "label_name",
34303456
color: "ededed",
3457+
description: "this is a label description",
3458+
isDefault: false,
34313459
},
34323460
],
34333461
},
@@ -3519,6 +3547,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
35193547
url: "label_url",
35203548
name: "label_name",
35213549
color: "ededed",
3550+
description: "this is a label description",
3551+
isDefault: false,
35223552
},
35233553
],
35243554
},
@@ -3553,6 +3583,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
35533583
url: "label_url",
35543584
name: "label_name",
35553585
color: "ededed",
3586+
description: "this is a label description",
3587+
isDefault: false,
35563588
},
35573589
],
35583590
},
@@ -3753,6 +3785,8 @@ test('Does not comment/label "associatedPR" when "successCommentCondition" disab
37533785
url: "label_url",
37543786
name: "label_name",
37553787
color: "ededed",
3788+
description: "this is a label description",
3789+
isDefault: false,
37563790
},
37573791
],
37583792
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.