fix: ignore archived projects in milestone tidy

This commit is contained in:
Rainer Killinger
2020-07-08 12:23:35 +02:00
parent e4c065d505
commit cd768a9dcd

View File

@@ -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 api.createMilestone(project.id, milestone);
Logger.log(`Created milestone '${milestone}' for project ${project.name_with_namespace}'.`);