Skip to content

Commit

Permalink
✨ Update status site title
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 29, 2020
1 parent 036a285 commit 71ec8fb
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 @@ -142,7 +142,9 @@ ${pageStatuses
.split("\n")
.map((line, index) => {
if (index === 0 && line.includes("https://upptime.js.org")) {
return `# ${config}`;
if (config["status-website"] && config["status-website"].name)
return `# ${config["status-website"].name}`;
return `# ${config.owner}/${config.repo}`;
}
return line;
})
Expand Down

0 comments on commit 71ec8fb

Please sign in to comment.