Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues

This commit is contained in:
Mr.k 2024-04-06 20:18:35 +03:00
parent 9978758327
commit 4b08e01430
No known key found for this signature in database

View File

@ -54,6 +54,7 @@ jobs:
if (label.name === labelKeepIssue) {
console.log(`Issue #${issue.number} will not be closed`);
closeIssue = false;
break; // Break from the loop, no need to check the remaining Labels.
}
}
} catch (error) {