chore: fix reopening pr

This commit is contained in:
TonyRL
2026-07-22 22:30:24 +08:00
parent 1d8bac78ea
commit 8a9a64ad16
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -102,6 +102,10 @@ export default async function identify({ github, context, core }, body, number,
};
if (isPR) {
if (issue.labels.some((e) => e.name === 'spam')) {
core.info('PR labeled as spam, skipping');
return;
}
if (issue.state === 'closed') {
await updatePrState('open');
}