You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part 3 of #1528. So far only the background refresher (refreshPrStates in electron/worktrees.js) uses the API transport. It sends one GraphQL query per repo and falls back to gh per thread.
Keep gh as the fallback when fetchPrStates/graphql throws, the way the refresher does.
Every write that sends text (PR title/body, comments, issue bodies) must go through assertNoOutboundSecrets before the request, as the gh path does today.
GHE: github.parseRemote accepts any host and graphqlUrl maps non-github.com hosts to https://<host>/api/graphql. isGitHubRemote (github.com only) still gates the gh paths.
Tests: inject fetchFn/fetchPrStatesFn. When CODER_GH_BIN is set, the refresher turns the API path off so gh-fake suites never touch the network. Keep that guarantee.
Activity
Talk to GitHub through its API instead of the gh CLI (#1528)
Talk to GitHub through its API instead of the gh CLI (#1528) (#1550)
Talk to GitHub through its API instead of the gh CLI (#1528)