From 408fd2b9b30afc7559de96f42825de84bf048fb5 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Fri, 8 Mar 2024 11:29:04 -0800 Subject: [PATCH] strip out spaces for people like me that dont follow the directions Signed-off-by: Zack Koppert --- stale_repos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stale_repos.py b/stale_repos.py index 5d9d214..1cf79b8 100755 --- a/stale_repos.py +++ b/stale_repos.py @@ -113,12 +113,12 @@ def get_inactive_repos(github_connection, inactive_days_threshold, organization) exempt_topics = os.getenv("EXEMPT_TOPICS") if exempt_topics: - exempt_topics = exempt_topics.split(",") + exempt_topics = exempt_topics.replace(" ", "").split(",") print(f"Exempt topics: {exempt_topics}") exempt_repos = os.getenv("EXEMPT_REPOS") if exempt_repos: - exempt_repos = exempt_repos.split(",") + exempt_repos = exempt_repos.replace(" ", "").split(",") print(f"Exempt repos: {exempt_repos}") for repo in repos: