added diff to commits
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user