Skip to content

Commit

Permalink
πŸ› Add description after badges
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 29, 2020
1 parent 0c64088 commit dbdfde0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ ${pageStatuses
.split("\n")
.map((line, index) => {
if (index === 0 && line.includes("https://upptime.js.org"))
return `With [Upptime](https://upptime.js.org), you can get your own unlimited and free uptime monitor and status page, powered entirely by a GitHub repository. We use [Issues](https://github.com/${config.owner}/${config.repo}/issues) as incident reports, [Actions](https://github.com/${config.owner}/${config.repo}/actions) as uptime monitors, and [Pages](${website}) for the status page.\n\n# [πŸ“ˆ Live Status](${website}): <!--live status--> **🟩 All systems operational**`;
return `# [πŸ“ˆ Live Status](${website}): <!--live status--> **🟩 All systems operational**`;
if (line.includes("[![Summary CI](https://github.com"))
return `${line}\n\nWith [Upptime](https://upptime.js.org), you can get your own unlimited and free uptime monitor and status page, powered entirely by a GitHub repository. We use [Issues](https://github.com/${config.owner}/${config.repo}/issues) as incident reports, [Actions](https://github.com/${config.owner}/${config.repo}/actions) as uptime monitors, and [Pages](${website}) for the status page.`;
return line;
})
.filter((line) => !line.startsWith("## [πŸ“ˆ Live Status]"))
Expand Down

0 comments on commit dbdfde0

Please sign in to comment.