diff --git a/.github/scripts/close_spam.js b/.github/scripts/close_spam.js index 5e8d8c2b..41046964 100644 --- a/.github/scripts/close_spam.js +++ b/.github/scripts/close_spam.js @@ -1,13 +1,4 @@ module.exports = async ({ github, context }) => { - const { data } = await github.rest.repos.getCollaboratorPermissionLevel({ - ...context.repo, - username: context.actor - }); - if (!data.user.permissions.triage) { - await github.log.error("Workflow called with insufficient permissions!"); - return; - } - let target = context.payload.issue; if (target) { await github.rest.issues.update({