Skip to content

Commit 0dc9353

Browse files
committed
capture init hashes
Signed-off-by: shmck <[email protected]>
1 parent fa619fd commit 0dc9353

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/utils/commits.ts

+11
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ export async function getCommits({
7373
// add to the list
7474
commits[position].push(commit.hash);
7575
}
76+
} else {
77+
const initMatches = commit.message.match(/^INIT/);
78+
if (initMatches && initMatches.length) {
79+
if (!commits.INIT) {
80+
// does not exist, create the list
81+
commits.INIT = [commit.hash];
82+
} else {
83+
// add to the list
84+
commits.INIT.push(commit.hash);
85+
}
86+
}
7687
}
7788
}
7889
} catch (e) {

0 commit comments

Comments
 (0)