mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
fix: ignore archived projects in milestone tidy
This commit is contained in:
@@ -193,7 +193,7 @@ export async function tidyMilestones(api: Api, projects: Project[]): Promise<voi
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (missingMilestones.length > 0) {
|
if (missingMilestones.length > 0 && !project.archived) {
|
||||||
await asyncPool(CONCURRENCY, missingMilestones, async (milestone) => {
|
await asyncPool(CONCURRENCY, missingMilestones, async (milestone) => {
|
||||||
await api.createMilestone(project.id, milestone);
|
await api.createMilestone(project.id, milestone);
|
||||||
Logger.log(`Created milestone '${milestone}' for project ${project.name_with_namespace}'.`);
|
Logger.log(`Created milestone '${milestone}' for project ${project.name_with_namespace}'.`);
|
||||||
|
|||||||
Reference in New Issue
Block a user