Working commit count
This commit is contained in:
parent
0aaec4181f
commit
737c788c76
3 changed files with 18 additions and 12 deletions
11
index.js
11
index.js
|
@ -180,13 +180,4 @@ app.use((req, res, next) => {
|
|||
<h1>404</h1>
|
||||
<p>Uh oh... I think your lost? There's nothing here :P</p>
|
||||
`)
|
||||
})
|
||||
|
||||
async function updateCommits() {
|
||||
var codebergResponse = await (await fetch(`https://codeberg.org/Bingus_Violet/Violets-Purgatory/src/branch/${process.env.BRANCH || "origin"}`)).text()
|
||||
var commits = codebergResponse.substring(0, codebergResponse.indexOf("Commits"))
|
||||
commits = commits.substring(commits.lastIndexOf("<b>") + 3, commits.lastIndexOf("</b>"))
|
||||
commitCount = commits
|
||||
}
|
||||
|
||||
updateCommits()
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue