Updates for http-api verified commits change

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-04-07 13:29:59 +02:00
parent 101d6d329f
commit efb91c7e73
5 changed files with 31 additions and 9 deletions
+3 -1
View File
@@ -9,7 +9,9 @@
export let commit: string;
const fetchCommits = async (parentCommit: string): Promise<GroupedCommitsHistory> => {
const commitsQuery = await Project.getCommits(project.urn, project.seed.api, parentCommit);
const commitsQuery = await Project.getCommits(project.urn, project.seed.api, {
parent: parentCommit, verified: true
});
return groupCommitHistory(commitsQuery);
};
</script>
+4 -1
View File
@@ -18,7 +18,10 @@
};
const loadCommits = async () => {
const commits = await Project.getCommits(project.urn, seed.api, project.head ?? undefined, getTimestampOneYearAgo(), undefined, "500", "0");
const commits = await Project.getCommits(project.urn, seed.api, {
parent: project.head ?? null,
since: getTimestampOneYearAgo(),
});
return groupCommitsByWeek(commits.headers);
};
</script>