Skip to content

Support repository-specific rate limit checks for GithubApp/Tokman auth#2970

Merged
centosinfra-prod-github-app[bot] merged 1 commit intopackit:mainfrom
majamassarini:check-rate-limit-fix
Jan 29, 2026
Merged

Support repository-specific rate limit checks for GithubApp/Tokman auth#2970
centosinfra-prod-github-app[bot] merged 1 commit intopackit:mainfrom
majamassarini:check-rate-limit-fix

Conversation

@majamassarini
Copy link
Copy Markdown
Member

@majamassarini majamassarini commented Jan 28, 2026

When using GithubApp or Tokman authentication, service.github returns None
because these methods require repository-specific instances.

Merge after packit/ogr#972

@majamassarini majamassarini requested a review from a team as a code owner January 28, 2026 14:55
@majamassarini majamassarini requested review from lbarcziova and removed request for a team January 28, 2026 14:56
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a fallback mechanism for checking GitHub API rate limits, specifically for authentication methods like GithubApp and Tokman that require repository-specific context. The implementation is logical and correctly addresses the issue. My feedback focuses on improving the exception handling to be more specific, which will make the code more robust against unexpected errors.

Comment thread packit_service/worker/handlers/abstract.py Outdated
@centosinfra-prod-github-app
Copy link
Copy Markdown
Contributor

@centosinfra-prod-github-app
Copy link
Copy Markdown
Contributor

Comment thread packit_service/worker/handlers/abstract.py Outdated
@centosinfra-prod-github-app
Copy link
Copy Markdown
Contributor

@centosinfra-prod-github-app
Copy link
Copy Markdown
Contributor

Co-authored-by: Nikola Forró <nforro@redhat.com>
@majamassarini majamassarini added the mergeit Merge via Zuul label Jan 29, 2026
@centosinfra-prod-github-app
Copy link
Copy Markdown
Contributor

@centosinfra-prod-github-app
Copy link
Copy Markdown
Contributor

@centosinfra-prod-github-app centosinfra-prod-github-app Bot merged commit 1f3b15e into packit:main Jan 29, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in Packit pull requests Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mergeit Merge via Zuul

Projects

Development

Successfully merging this pull request may close these issues.

3 participants