Skip to content

Add rate limit support#32

Merged
andrew merged 1 commit intomainfrom
add-rate-limit
Mar 11, 2026
Merged

Add rate limit support#32
andrew merged 1 commit intomainfrom
add-rate-limit

Conversation

@andrew
Copy link
Contributor

@andrew andrew commented Mar 11, 2026

Add GetRateLimit to the Forge interface with implementations for all backends:

  • GitHub: GET /rate_limit via go-github SDK
  • GitLab: reads RateLimit-Limit/Remaining/Reset response headers from a lightweight version API call
  • Gitea: GET /api/v1/rate_limit, returns ErrNotSupported when the server doesn't have rate limiting enabled
  • Bitbucket: returns ErrNotSupported

Adds forge rate-limit CLI command with table, plain, and JSON output formats.

Closes #30

Add GetRateLimit to the Forge interface with implementations for all
backends. GitHub uses GET /rate_limit, GitLab reads response headers
from a lightweight API call, Gitea calls GET /api/v1/rate_limit, and
Bitbucket returns ErrNotSupported.

Adds `forge rate-limit` CLI command with table, plain, and JSON output.

Closes #30
@andrew andrew merged commit d57c869 into main Mar 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rate limit

1 participant