Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791212e commit 67b0195Copy full SHA for 67b0195
src/utils/commits.ts
@@ -73,7 +73,7 @@ export async function getCommits({
73
commits[position] = [commit.hash];
74
} else {
75
// add to the list
76
- commits[position].push(commit.hash);
+ commits[position].unshift(commit.hash);
77
}
78
positions.unshift(position);
79
@@ -84,7 +84,7 @@ export async function getCommits({
84
commits.INIT = [commit.hash];
85
86
87
- commits.INIT.push(commit.hash);
+ commits.INIT.unshift(commit.hash);
88
89
positions.unshift("INIT");
90
@@ -101,5 +101,7 @@ export async function getCommits({
101
await rmdir(tmpDir, { recursive: true });
102
103
104
+ console.log(commits);
105
+
106
return commits;
107
0 commit comments