Fix auto-close workflow to prevent closing issues when repository OWNER performs any action (#784)

* Fix auto-close workflow to prevent closing issues when OWNER performs any action

Co-authored-by: amd64fox <62529699+amd64fox@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: amd64fox <62529699+amd64fox@users.noreply.github.com>
This commit is contained in:
Copilot
2025-10-11 13:44:59 +03:00
committed by GitHub
parent 2be071b03e
commit 447b44122e

View File

@@ -19,11 +19,9 @@ jobs:
const title = issue.title.toLowerCase();
const authorAssociation = issue.author_association;
if (context.payload.action === 'reopened') {
if (authorAssociation === 'OWNER') {
console.log('Issue #' + issue.number + ' was reopened by OWNER - will not auto-close');
return;
}
if (authorAssociation === 'OWNER') {
console.log('Issue #' + issue.number + ' action performed by OWNER - will not auto-close');
return;
}
const keywords = [