Skip to content

fix(github): a rate-limit check for another host leaves the github.com quotas unchanged - #2357

Merged
dan-petty merged 1 commit into
mainfrom
fix/1968-rate-limit-check-another-host
Oct 27, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/1968-rate-limit-check-another-host

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Closes #1968

A devops gh api rate_limit call that specifies --hostname for another GitHub host must not overwrite the local github.com quotas.

  • Return hostname in GhApiArgs from parse_gh_api_args.
  • Return false from _prints_rate_limit_answer when --hostname differs from CONST_GITHUB_HOST.
  • Verify that github.com quotas stay unchanged when a command inspects another host.

Change: openspec/changes/archive/2026-10-27-1968-rate-limit-check-another-host/

…m quotas unchanged

Closes #1968

A devops gh api rate_limit call that specifies --hostname for another GitHub host must not overwrite the local github.com quotas.

- Return hostname in GhApiArgs from parse_gh_api_args.
- Return false from _prints_rate_limit_answer when --hostname differs from CONST_GITHUB_HOST.
- Verify that github.com quotas stay unchanged when a command inspects another host.

Change: openspec/changes/archive/2026-10-27-1968-rate-limit-check-another-host/
@dan-petty

Copy link
Copy Markdown
Owner Author

devops ci fail-to-pass --base origin/main: 1 failed on base (1 failed and 186 passed in tests/test_github_rate_limiter.py; 0 errored).

@dan-petty
dan-petty marked this pull request as ready for review October 27, 2026 17:41
@dan-petty
dan-petty merged commit 5d37762 into main Oct 27, 2026
16 checks passed
@dan-petty
dan-petty deleted the fix/1968-rate-limit-check-another-host branch October 27, 2026 17:43
dan-petty pushed a commit that referenced this pull request Oct 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.7.1](v0.7.0...v0.7.1)
(2026-10-27)


### Bug Fixes

* **ci:** replay fail-to-pass tests in a git worktree of the base
([#2353](#2353))
([5194d60](5194d60))
* **github:** a rate-limit check for another host leaves the github.com
quotas unchanged
([#2357](#2357))
([5d37762](5d37762))
* **github:** the defect classifier records a lesson in the document
that owns it, not in AGENTS.md
([#2358](#2358))
([a47167c](a47167c))
* **k8s:** create the Grafana token before it revokes the old ones
([#2352](#2352))
([f9c7ef5](f9c7ef5))
* **service:** stop every roadmap job on a refused identity and keep
GitHub requests under an hourly budget
([#2354](#2354))
([0f00e96](0f00e96))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.

fix(github): a rate-limit check for another host leaves the github.com quotas unchanged

1 participant