From 1a29cb841d56de5050b7f4330069a0382f5df131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 1 Jan 2025 21:55:22 +0000 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Update=20config=20to=20git?= =?UTF-8?q?hub=5Ftoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/contributors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/contributors.py b/scripts/contributors.py index a6d4b4bd0..87170c2c2 100644 --- a/scripts/contributors.py +++ b/scripts/contributors.py @@ -112,7 +112,7 @@ class PRsResponse(BaseModel): class Settings(BaseSettings): - token: SecretStr + github_token: SecretStr github_repository: str httpx_timeout: int = 30 @@ -123,7 +123,7 @@ def get_graphql_response( query: str, after: str | None = None, ) -> dict[str, Any]: - headers = {"Authorization": f"token {settings.token.get_secret_value()}"} + headers = {"Authorization": f"token {settings.github_token.get_secret_value()}"} variables = {"after": after} response = httpx.post( github_graphql_url, @@ -238,7 +238,7 @@ def main() -> None: logging.basicConfig(level=logging.INFO) settings = Settings() logging.info(f"Using config: {settings.model_dump_json()}") - g = Github(settings.token.get_secret_value()) + g = Github(settings.github_token.get_secret_value()) repo = g.get_repo(settings.github_repository) pr_nodes = get_pr_nodes(settings=settings)