refactor(server): GitHub rate limits read the response headers (#16986)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Opus 5.5 authored and GitHub committed 2026-10-07 17:26:26 -07:00
1 parent 42d92ec597
commit d720210996
10 files changed
+350 -525

No files matched your search

@@ -459,6 +459,8 @@ describe("GitHubSourceControlProvider writes", () => {
});
assert.strictEqual(requests[0]!.method, "POST");
assert.strictEqual(requests[0]!.path, "repos/acme/web/pulls");
// A user's own write, so the background's reserve is not held against it.
assert.strictEqual(requests[0]!.allowReserve, true);
assert.deepStrictEqual(requests[0]!.body, {
base: "main",
head: "me:feature",