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/scripts/antispam.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,32 +2,32 @@ async function when_suspicious(){
2
2
3
3
// might wanna use a score of confidence (how suspicious it is), then react on that
4
4
5
-
awaitoctokit.rest.issues.addLabels({
5
+
awaitgithub.rest.issues.addLabels({
6
6
owner,
7
7
repo,
8
8
issue_number: issueNumber,
9
9
labels: ["suspicious"]
10
10
});
11
11
12
-
// await octokit.rest.issues.update({
12
+
// await github.rest.issues.update({
13
13
// owner,
14
14
// repo,
15
15
// issue_number: issueNumber,
16
16
// state: "closed"
17
17
// });
18
-
// await octokit.rest.issues.createComment({
18
+
// await github.rest.issues.createComment({
19
19
// owner,
20
20
// repo,
21
21
// issue_number: issueNumber,
22
22
// body: "This issue/PR has been automatically closed as it does not meet our contribution guidelines. Please read our contribution guide before submitting."
0 commit comments