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
// might wanna use a score of confidence (how suspicious it is), then react on that
4
4
5
-
awaitgithub.rest.issues.addLabels({
6
-
owner,
7
-
repo,
8
-
issue_number: issueNumber,
9
-
labels: ["suspicious"]
10
-
});
5
+
const{ owner, repo }=context.repo;
6
+
constissueNumber=context.payload.issue.number;
11
7
12
-
// await github.rest.issues.update({
8
+
// await github.rest.issues.addLabels({
13
9
// owner,
14
10
// repo,
15
11
// issue_number: issueNumber,
16
-
// state: "closed"
12
+
// labels: ["suspicious"]
17
13
// });
18
14
// await github.rest.issues.createComment({
19
15
// owner,
20
16
// repo,
21
17
// issue_number: issueNumber,
22
18
// 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