File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments