Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qol changes #221

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Andre601
Copy link

First of all would I like to mention that I have no idea if I made this right or not... Typescript is not my strong side (I have like 0 experience) and I made this within the GitHub editor...

With that out of the way, this PR addresses some of the suggestions I made in the past, namely upptime/upptime#569 and upptime/upptime#572, by not only changing the default status message to be no longer in the past tense ("was" isn't really accurate when the issue has just been created because of the site being down) but also adding new config options issueTitle and issueBody for people to be able to change the respective text to what they prefer.

It also adds new options issuePrefixStatusDown and issuePrefixStatusDegraded to replace $PREFIX in issue title and body with an emoji/text based on the status (Down or degraded)

Finally does it also add a simple check metadata.end !== "unknown" to when checking if a maintenance issue is past its end-date to be closed.
This should help setting a maintenance task with not yet known end date (Useful for maintenance that f.e. relies on outside/3rd party sources/hosts). This may also require changes to the status page to work...

I really hope this looks fine. If not, feedback and especially corrections are very welcome here!

Andre601 added a commit to Andre601/status-page that referenced this pull request Aug 16, 2023
@Andre601 Andre601 marked this pull request as ready for review December 16, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant