mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-11 17:37:21 +10:00
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:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user