Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Linfindel committed Feb 7, 2024
1 parent 4172b7b commit 6c60edc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ fetch(`https://api.github.com/repos/${username}/${repo}/commits?per_page=1`)
const totalCount = response.headers.get('Link').match(/page=(\d+)>; rel="last"/)[1] / 100;
return response.json().then(data => {
const latestCommitMessage = data[0].commit.message;
console.log(`Total commit count: ${totalCount}`);
console.log(`Latest commit message: ${latestCommitMessage}`);

document.getElementById("version").innerText = `Version ${totalCount} Release Notes`;
document.getElementById("whats-new").innerText = latestCommitMessage;
Expand Down

0 comments on commit 6c60edc

Please sign in to comment.