Skip to content

Commit

Permalink
♻️ Inject manual editing note to README
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 6, 2020
1 parent 1dfaa28 commit 8046351
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ export const generateSummary = async () => {
uptime,
time: Math.floor(averageTime),
});
if (status === "down") {
numberOfDown++;
}
if (status === "down") numberOfDown++;
}

let website = `https://${config.owner}.github.io/${config.repo}/`;
let website = `https://${config.owner}.github.io/${config.repo}`;
if (config["status-website"] && config["status-website"].cname)
website = `https://${config["status-website"].cname}`;

if (readmeContent.includes("<!--start: status pages-->")) {
readmeContent = `${startText}<!--start: status pages-->
<!-- This summary is generated by Upptime (https://github.com/upptime/upptime) -->
<!-- Do not edit this manually, your changes will be overwritten -->
| URL | Status | History | Response Time | Uptime |
| --- | ------ | ------- | ------------- | ------ |
${pageStatuses
Expand Down

0 comments on commit 8046351

Please sign in to comment.