Skip to content

Commit

Permalink
fix(githubstatus): handling URL substring
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Jan 7, 2025
1 parent 9bddf76 commit 396fcdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check-plugins/githubstatus/githubstatus
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ from lib.globals import (STATE_OK, STATE_UNKNOWN, # pylint: disable=C0413
STATE_WARN)

__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
__version__ = '2024031401'
__version__ = '2025010701'

DESCRIPTION = """Checks the GitHub status page, including a status indicator,
component statuses and unresolved incidents."""
Expand Down Expand Up @@ -138,7 +138,7 @@ def main():
incidents += 1

for component in result.get('components', {}):
if 'githubstatus.com' in component.get('name'):
if component.get('name', '').startswith('Visit '):
# "Visit www.githubstatus.com for more information"
continue
component['updated_at'] = component.get('updated_at').replace('T', ' ')[:19]
Expand Down

0 comments on commit 396fcdf

Please sign in to comment.