mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 03:32:52 +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).');
|
logger.log('Fetched ' + issues.length + ' closed issue(s).');
|
||||||
|
|
||||||
await asyncPool(1, issues, async (issue) => {
|
await asyncPool(1, issues, async (issue) => {
|
||||||
await api.createNote(
|
if (issue.labels.indexOf('meeting') >= 0) {
|
||||||
issue.project_id,
|
logger.info(`Issue ${issue.title} is closed and has label "meeting". Removing it.`);
|
||||||
issue.iid,
|
|
||||||
`${NOTE_PREFIX} Removed label \`meeting\` automatically.
|
await api.createNote(
|
||||||
|
issue.project_id,
|
||||||
|
issue.iid,
|
||||||
|
`${NOTE_PREFIX} Removed label \`meeting\` automatically.
|
||||||
/unlabel ~meeting`,
|
/unlabel ~meeting`,
|
||||||
);
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.ok('Label `meeting` has been removed from closed issues.');
|
logger.ok('Label `meeting` has been removed from closed issues.');
|
||||||
|
|||||||
Reference in New Issue
Block a user