From 81bad77fa9c3293c726e14d8bbba060039919319 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 20 Sep 2024 11:12:02 -0700 Subject: [PATCH] refactor: Simplify script by hardcoding repository details --- scripts/issues.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/issues.py b/scripts/issues.py index 7d348c407..588979bca 100755 --- a/scripts/issues.py +++ b/scripts/issues.py @@ -12,8 +12,8 @@ load_dotenv() # GitHub API configuration GITHUB_API_URL = "https://api.github.com" -REPO_OWNER = os.getenv("GITHUB_REPO_OWNER") -REPO_NAME = os.getenv("GITHUB_REPO_NAME") +REPO_OWNER = "paul-gauthier" +REPO_NAME = "aider" TOKEN = os.getenv("GITHUB_TOKEN") headers = {"Authorization": f"token {TOKEN}", "Accept": "application/vnd.github.v3+json"} @@ -61,8 +61,8 @@ def find_oldest_issue(subject): def main(): - if not all([REPO_OWNER, REPO_NAME, TOKEN]): - print("Error: Missing environment variables. Please check your .env file.") + if not TOKEN: + print("Error: Missing GITHUB_TOKEN environment variable. Please check your .env file.") return open_issues = get_issues()