mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
Updates for http-api verified commits change
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user