mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 18:42:35 -05:00
Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
This commit is contained in:
1
.github/workflows/close-old-issues.yaml
vendored
1
.github/workflows/close-old-issues.yaml
vendored
@ -54,6 +54,7 @@ jobs:
|
|||||||
if (label.name === labelKeepIssue) {
|
if (label.name === labelKeepIssue) {
|
||||||
console.log(`Issue #${issue.number} will not be closed`);
|
console.log(`Issue #${issue.number} will not be closed`);
|
||||||
closeIssue = false;
|
closeIssue = false;
|
||||||
|
break; // Break from the loop, no need to check the remaining Labels.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Reference in New Issue
Block a user