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

Skip to content

Fix/commit position validation #29

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 2 commits into from
Jun 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
reverse commit order from log
Signed-off-by: shmck <[email protected]>
  • Loading branch information
ShMcK committed Jun 7, 2020
commit c345b7ef0e3c3fee175bdc9a51dd186124dfead3
4 changes: 2 additions & 2 deletions src/utils/commits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function getCommits({
// add to the list
commits[position].push(commit.hash);
}
positions.push(position);
positions.unshift(position);
} else {
const initMatches = commit.message.match(/^INIT/);
if (initMatches && initMatches.length) {
Expand All @@ -86,7 +86,7 @@ export async function getCommits({
// add to the list
commits.INIT.push(commit.hash);
}
positions.push("INIT");
positions.unshift("INIT");
}
}
}
Expand Down