Skip to content

Commit 36c9560

Browse files
chiedorachmari
andauthored
Move spammy issues to the Done column (#18542)
Co-authored-by: Rachael Sewell <rachmari@github.com>
1 parent ed6c676 commit 36c9560

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,14 @@ jobs:
6565
issue_number: issue.number,
6666
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)!"
6767
});
68+
69+
// Add the issue to the Done column on the triage board
70+
try {
71+
await github.projects.createCard({
72+
column_id: 11167427,
73+
content_id: context.payload.issue.id,
74+
content_type: "Issue"
75+
});
76+
} catch (error) {
77+
console.log(error);
78+
}

0 commit comments

Comments
 (0)