Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature/markdown as master #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 24, 2020
Merged
Prev Previous commit
Next Next commit
fix multiple commit order issue
Signed-off-by: shmck <[email protected]>
  • Loading branch information
ShMcK committed Jun 21, 2020
commit 67b01953451d76c8ac68d19b21cde135b80a57f1
6 changes: 4 additions & 2 deletions src/utils/commits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function getCommits({
commits[position] = [commit.hash];
} else {
// add to the list
commits[position].push(commit.hash);
commits[position].unshift(commit.hash);
}
positions.unshift(position);
} else {
Expand All @@ -84,7 +84,7 @@ export async function getCommits({
commits.INIT = [commit.hash];
} else {
// add to the list
commits.INIT.push(commit.hash);
commits.INIT.unshift(commit.hash);
}
positions.unshift("INIT");
}
Expand All @@ -101,5 +101,7 @@ export async function getCommits({
await rmdir(tmpDir, { recursive: true });
}

console.log(commits);

return commits;
}