Sebastián Ramírez
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
3 deletions
-
.github/workflows/sponsors.yml
-
scripts/sponsors.py
|
|
@ -59,4 +59,4 @@ jobs: |
|
|
uv run ./scripts/sponsors.py |
|
|
uv run ./scripts/sponsors.py |
|
|
env: |
|
|
env: |
|
|
SPONSORS_TOKEN: ${{ secrets.SPONSORS_TOKEN }} # zizmor: ignore[secrets-outside-env] |
|
|
SPONSORS_TOKEN: ${{ secrets.SPONSORS_TOKEN }} # zizmor: ignore[secrets-outside-env] |
|
|
PR_TOKEN: ${{ steps.pr-submit.outputs.token }} |
|
|
GITHUB_TOKEN: ${{ steps.pr-submit.outputs.token }} |
|
|
|
|
|
@ -84,7 +84,7 @@ class SponsorsResponse(BaseModel): |
|
|
|
|
|
|
|
|
class Settings(BaseSettings): |
|
|
class Settings(BaseSettings): |
|
|
sponsors_token: SecretStr |
|
|
sponsors_token: SecretStr |
|
|
pr_token: SecretStr |
|
|
github_token: SecretStr |
|
|
github_repository: str |
|
|
github_repository: str |
|
|
httpx_timeout: int = 30 |
|
|
httpx_timeout: int = 30 |
|
|
|
|
|
|
|
|
@ -160,7 +160,7 @@ def main() -> None: |
|
|
logging.basicConfig(level=logging.INFO) |
|
|
logging.basicConfig(level=logging.INFO) |
|
|
settings = Settings() |
|
|
settings = Settings() |
|
|
logging.info(f"Using config: {settings.model_dump_json()}") |
|
|
logging.info(f"Using config: {settings.model_dump_json()}") |
|
|
g = Github(settings.pr_token.get_secret_value()) |
|
|
g = Github(settings.github_token.get_secret_value()) |
|
|
repo = g.get_repo(settings.github_repository) |
|
|
repo = g.get_repo(settings.github_repository) |
|
|
|
|
|
|
|
|
tiers = get_individual_sponsors(settings=settings) |
|
|
tiers = get_individual_sponsors(settings=settings) |
|
|
|