Skip to content

Commit

Permalink
log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVanMourik committed May 14, 2024
1 parent 96d4d75 commit 644a703
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9847,9 +9847,17 @@ const run = async () => {
return statuses.includes(item.fields.status);
});

console.log(
`Archiving ${filteredItems.length} items from iteration ${iteration.title} with statuses ${statuses}...`
);
await Promise.all(
filteredItems.map((item) => project.items.archive(item.id))
);
console.log(
`Successfully archived items ${filteredItems
.map((item) => item.id)
.join(", ")}.`
);
} catch (error) {
core.setFailed(error.message);
}
Expand Down
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,17 @@ const run = async () => {
return statuses.includes(item.fields.status);
});

console.log(
`Archiving ${filteredItems.length} items from iteration ${iteration.title} with statuses ${statuses}...`
);
await Promise.all(
filteredItems.map((item) => project.items.archive(item.id))
);
console.log(
`Successfully archived items ${filteredItems
.map((item) => item.id)
.join(", ")}.`
);
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 644a703

Please sign in to comment.