Update auto-close logic for privileged roles

This commit is contained in:
amd64fox
2025-10-11 13:58:48 +03:00
committed by GitHub
parent 447b44122e
commit 3c3d5cde71

View File

@@ -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;
}