added diff to commits

This commit is contained in:
2026-11-15 17:56:08 +00:00
parent 0b958ae3eb
commit d838bd4960
2 changed files with 17 additions and 4 deletions

View File

@@ -52,9 +52,10 @@ async function getRepoCommits(fetch: typeof globalThis.fetch, url: string) {
let finalData = [];
for (let commit of data) {
// Filter out other users
if (commit.author.login == 'voidarc') {
// Filter out other users and do a null check for non-gitea commits that might exist
if (commit.author != null && commit.author.login == 'voidarc') {
finalData.push(commit);
} else {
}
}
@@ -71,7 +72,7 @@ async function fetchLatestCommits(
for (let repo of repos) {
let commits = await getRepoCommits(fetch, repo.url);
for (let commit of commits) {
console.log(commit);
// console.log(commit);
let newCommit: GitCommit = {
message: commit.commit.message,
hash: commit.sha,