mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Implement new landing page
This commit is contained in:
@@ -116,3 +116,10 @@ export async function loadProjectActivity(id: string, baseUrl: BaseUrl) {
|
||||
|
||||
return groupCommitsByWeek(commits.activity);
|
||||
}
|
||||
|
||||
export async function fetchLastCommit(id: string, baseUrl: BaseUrl) {
|
||||
const api = new HttpdClient(baseUrl);
|
||||
const res = await api.project.getAllCommits(id, { perPage: 1 });
|
||||
|
||||
return res.commits[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user