You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pr-label-checker.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ jobs:
34
34
35
35
// Define an array of descriptive labels
36
36
const descriptiveLabels = [
37
-
'enhancement',
38
37
'deprecated',
39
38
'refactoring',
39
+
'pr: enhancement',
40
40
'pr: breaking',
41
41
'pr: clean',
42
42
'pr: fix',
@@ -52,7 +52,7 @@ jobs:
52
52
// If no descriptive label is set, add a comment in the PR and make the action check fail
53
53
if (!hasDescriptiveLabel) {
54
54
const comment = ':warning: :warning: :warning:<br>@' + context.payload.pull_request.user.login + ' your PR does not include any **descriptive** label :label:<br> Make sure to add an appropriate [PR label](https://github.com/sofa-framework/sofa/labels) before merge.<br>:warning: :warning: :warning:';
55
-
github.issues.createComment({
55
+
github.rest.issues.createComment({
56
56
issue_number: prNumber,
57
57
owner: context.repo.owner,
58
58
repo: context.repo.repo,
@@ -77,7 +77,7 @@ jobs:
77
77
// If no descriptive label is set, add a comment in the PR and make the action check fail
78
78
if (matchingLabelsCount === 0) {
79
79
const comment = ':warning: :warning: :warning:<br>@'+context.repo.owner+' your PR does not include any **status** label :label:<br> Make sure to add one (wip, to review or ready).<br>:warning: :warning: :warning:';
80
-
github.issues.createComment({
80
+
github.rest.issues.createComment({
81
81
issue_number: prNumber,
82
82
owner: context.repo.owner,
83
83
repo: context.repo.repo,
@@ -86,7 +86,7 @@ jobs:
86
86
core.setFailed('Missing status PR label')
87
87
} else if (matchingLabelsCount > 1) {
88
88
const comment = ':warning: :warning: :warning:<br>@'+context.repo.owner+' your PR does includes **too many status labels** :label:<br> Make sure to keep only one (wip, to review or ready).<br>:warning: :warning: :warning:';
0 commit comments