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/check-for-spammy-issues.yml
+3-18Lines changed: 3 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -44,20 +44,13 @@ jobs:
44
44
// has the minimum number of words required, proceed.
45
45
//
46
46
47
-
// Add the invalid label
48
-
await github.issues.addLabels({
47
+
// Close the issue and add the invalid label
48
+
await github.issues.update({
49
49
owner: owner,
50
50
repo: repo,
51
51
issue_number: issue.number,
52
52
labels: ['invalid'],
53
-
});
54
-
55
-
// Remove triage label
56
-
await github.issues.removeLabel({
57
-
owner: owner,
58
-
repo: repo,
59
-
issue_number: issue.number,
60
-
name: 'triage',
53
+
state: 'closed'
61
54
});
62
55
63
56
// Comment on the issue
@@ -67,11 +60,3 @@ jobs:
67
60
issue_number: issue.number,
68
61
body: "This issue appears to have been opened accidentally. I'm going to close it now, but feel free to open a new issue or ask any questions in [discussions](https://github.com/github/docs/discussions)!"
0 commit comments