mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-14 03:16:33 +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 title = issue.title.toLowerCase();
|
||||||
const authorAssociation = issue.author_association;
|
const authorAssociation = issue.author_association;
|
||||||
|
|
||||||
if (authorAssociation === 'OWNER') {
|
const privilegedRoles = ['OWNER', 'MEMBER', 'COLLABORATOR'];
|
||||||
console.log('Issue #' + issue.number + ' action performed by OWNER - will not auto-close');
|
|
||||||
|
if (privilegedRoles.includes(authorAssociation)) {
|
||||||
|
console.log('Issue #' + issue.number + ' action performed by ' + authorAssociation + ' - will not auto-close');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user