fixup: remove permission check
This commit is contained in:
parent
f9a331a505
commit
dbe88f8bbb
1 changed files with 0 additions and 9 deletions
9
.github/scripts/close_spam.js
vendored
9
.github/scripts/close_spam.js
vendored
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue