We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f9ae6c + ea6f8a6 commit 19e8411Copy full SHA for 19e8411
1 file changed
src/index.ts
@@ -321,8 +321,9 @@ async function transferMilestones(usePlaceholders: boolean) {
321
let milestones: (GitLabMilestone | MilestoneImport)[] =
322
await gitlabApi.ProjectMilestones.all(settings.gitlab.projectId);
323
324
- // sort milestones in ascending order of when they were created (by id)
325
- milestones = milestones.sort((a, b) => a.id - b.id);
+ // sort milestones in ascending order of their project-scoped id (iid),
+ // since the placeholder logic relies on iid ordering
326
+ milestones = milestones.sort((a, b) => a.iid - b.iid);
327
328
// get a list of the current milestones in the new GitHub repo (likely to be empty)
329
const githubMilestones = await githubHelper.getAllGithubMilestones();
0 commit comments