Skip to content

Commit 945f5da

Browse files
committed
Remove debug logging and add dev note
1 parent fe25567 commit 945f5da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/git-utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ export async function getGitHubAccountFromFile(
4949
url.searchParams.set('path', filePath);
5050
url.searchParams.set('per_page', '1');
5151

52+
// It is **KNOWN** that if a commit is not pushed to GitHub, the link will be of the person who last edited the page remotely.
53+
// This is only a bug in local dev or other branch environments, and not in production.
5254
const commit = (await fetch(url, headers).then(response => response.json()))[0]
53-
const acc: GitHubAccount = {
55+
let acc: GitHubAccount = {
5456
displayName: displayName,
5557
email: email,
5658
accountLink: commit?.author?.html_url
5759
}
5860

59-
console.log("Latest commit data is as follows:")
60-
console.log(commit)
6161
cache.set(email, acc);
6262
return acc;
6363
}

0 commit comments

Comments
 (0)