mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 20:12:51 +00:00
fix: remove failing deletion of labels
This commit is contained in:
@@ -97,7 +97,6 @@ export async function tidyOpenIssuesWithoutMeetingLabel(api: Api): Promise<void>
|
||||
|
||||
// filter issues without meeting label
|
||||
const openIssuesWithoutMeetingLabel = openIssues.filter((openIssue) => {
|
||||
logger.log(openIssue.labels);
|
||||
return openIssue.labels.indexOf('meeting') === -1;
|
||||
});
|
||||
|
||||
@@ -147,11 +146,11 @@ export async function tidyLabels(api: Api, projects: Project[]): Promise<void> {
|
||||
logger.log('Created label `' + neededLabel.name + '` in ' + project.name_with_namespace + '.');
|
||||
});
|
||||
|
||||
await asyncPool(2, extraneousLabels, async (extraneousLabel) => {
|
||||
await api.deleteLabel(project.id, extraneousLabel.name);
|
||||
|
||||
logger.log('Deleted label `' + extraneousLabel.name + '` from ' + project.name_with_namespace + '.');
|
||||
});
|
||||
// await asyncPool(2, extraneousLabels, async (extraneousLabel) => {
|
||||
// await api.deleteLabel(project.id, extraneousLabel.name);
|
||||
//
|
||||
// logger.log('Deleted label `' + extraneousLabel.name + '` from ' + project.name_with_namespace + '.');
|
||||
// });
|
||||
});
|
||||
|
||||
logger.ok('Tidied labels.');
|
||||
@@ -309,7 +308,6 @@ export async function tidy(api: Api) {
|
||||
tidySubGroupMembers(api),
|
||||
]);
|
||||
|
||||
// await tidyIssuesWithoutMilestone(api);
|
||||
await tidyOpenIssuesWithoutMeetingLabel(api);
|
||||
await tidyIssuesWithoutAssignee(api);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user