mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 12:02:53 +00:00
fix: unlabel issues with label meeting only
This commit is contained in:
@@ -35,12 +35,16 @@ export async function unlabel(api: Api) {
|
||||
logger.log('Fetched ' + issues.length + ' closed issue(s).');
|
||||
|
||||
await asyncPool(1, issues, async (issue) => {
|
||||
await api.createNote(
|
||||
issue.project_id,
|
||||
issue.iid,
|
||||
`${NOTE_PREFIX} Removed label \`meeting\` automatically.
|
||||
if (issue.labels.indexOf('meeting') >= 0) {
|
||||
logger.info(`Issue ${issue.title} is closed and has label "meeting". Removing it.`);
|
||||
|
||||
await api.createNote(
|
||||
issue.project_id,
|
||||
issue.iid,
|
||||
`${NOTE_PREFIX} Removed label \`meeting\` automatically.
|
||||
/unlabel ~meeting`,
|
||||
);
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
logger.ok('Label `meeting` has been removed from closed issues.');
|
||||
|
||||
Reference in New Issue
Block a user