From a312701709953f5b1d9e0dd023799ce207b729b9 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Sat, 17 Oct 2026 15:10:31 -0400 Subject: [PATCH 1/2] fetchers: Update gist fetcher to check for usernames --- checks/utils/fetchers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/utils/fetchers.py b/checks/utils/fetchers.py index f42eae2..17adc8e 100644 --- a/checks/utils/fetchers.py +++ b/checks/utils/fetchers.py @@ -8,7 +8,7 @@ def matchGist(url): return re.match( - r"(?i)\b((?:https?:(?:/{1,3}gist\.github\.com)/)(anonymous/)?([a-z0-9]{32}))", url) + r"(?i)\b((?:https?:(?:/{1,3}gist\.github\.com)/)((anonymous|[A-Za-z0-9-]{1,39})/)?([a-z0-9]{32}))", url) def getGist(inputUrl): From 3f94027b73d0c2c5d985948c8a4ab91cbf8cc5b2 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Sat, 17 Oct 2026 15:14:27 -0400 Subject: [PATCH 2/2] fetchers: Expand empty description check to include null --- checks/utils/fetchers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/utils/fetchers.py b/checks/utils/fetchers.py index 17adc8e..762ba71 100644 --- a/checks/utils/fetchers.py +++ b/checks/utils/fetchers.py @@ -24,7 +24,7 @@ def getLinesGist(gistObject): def getDescriptionGist(gistObject): desc = gistObject['description'] - if (desc == ""): + if (desc == "" or desc is None): desc = gistObject['id'] return [0, "DESCRIPTION", desc]