mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-08-11 02:21:09 +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:
co-authored by
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
amd64fox
parent
2be071b03e
commit
447b44122e
@@ -19,12 +19,10 @@ jobs:
|
|||||||
const title = issue.title.toLowerCase();
|
const title = issue.title.toLowerCase();
|
||||||
const authorAssociation = issue.author_association;
|
const authorAssociation = issue.author_association;
|
||||||
|
|
||||||
if (context.payload.action === 'reopened') {
|
|
||||||
if (authorAssociation === 'OWNER') {
|
if (authorAssociation === 'OWNER') {
|
||||||
console.log('Issue #' + issue.number + ' was reopened by OWNER - will not auto-close');
|
console.log('Issue #' + issue.number + ' action performed by OWNER - will not auto-close');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const keywords = [
|
const keywords = [
|
||||||
'av',
|
'av',
|
||||||
|
|||||||
Reference in New Issue
Block a user