Skip to content

Commit 67c9554

Browse files
committed
fix(examples): expand staleness maintainer check to include repository members
1 parent 55bf172 commit 67c9554

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/workflows/issue-cleanup/gemini-issue-cleanup.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ jobs:
9595
// Find last maintainer comment
9696
const maintainerComments = comments.filter(c => {
9797
if (c.user.login === reporter) return false;
98-
if (maintainers.length > 0) return maintainers.includes(c.user.login);
98+
const isMaintainer = maintainers.includes(c.user.login) || ['OWNER', 'MEMBER', 'COLLABORATOR'].includes(c.author_association);
99+
if (maintainers.length > 0) return isMaintainer;
99100
return !c.user.login.includes('github-actions') && c.user.type !== 'Bot';
100101
});
101102
if (maintainerComments.length > 0) {

0 commit comments

Comments
 (0)