mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-11 17:37:21 +10:00
Update auto-close logic for privileged roles
This commit is contained in:
@@ -19,8 +19,10 @@ jobs:
|
||||
const title = issue.title.toLowerCase();
|
||||
const authorAssociation = issue.author_association;
|
||||
|
||||
if (authorAssociation === 'OWNER') {
|
||||
console.log('Issue #' + issue.number + ' action performed by OWNER - will not auto-close');
|
||||
const privilegedRoles = ['OWNER', 'MEMBER', 'COLLABORATOR'];
|
||||
|
||||
if (privilegedRoles.includes(authorAssociation)) {
|
||||
console.log('Issue #' + issue.number + ' action performed by ' + authorAssociation + ' - will not auto-close');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user