Skip to content

Commit d6a09fd

Browse files
authored
repo sync
2 parents a55ac53 + a168b96 commit d6a09fd

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

.github/workflows/check-for-spammy-issues.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,13 @@ jobs:
4444
// has the minimum number of words required, proceed.
4545
//
4646
47-
// Add the invalid label
48-
await github.issues.addLabels({
47+
// Close the issue and add the invalid label
48+
await github.issues.update({
4949
owner: owner,
5050
repo: repo,
5151
issue_number: issue.number,
5252
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'
6154
});
6255
6356
// Comment on the issue
@@ -67,11 +60,3 @@ jobs:
6760
issue_number: issue.number,
6861
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)!"
6962
});
70-
71-
// Close the issue
72-
await github.issues.update({
73-
owner: owner,
74-
repo: repo,
75-
issue_number: issue.number,
76-
state: 'closed'
77-
});

0 commit comments

Comments
 (0)