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
{{ message }}
Repository navigation
Commit 3bfbe59
Browse filesBrowse the repository at this point in the historyBrowse files
it.effect("reads a host that refuses the stacks preview as not stacked",()=>
654
+
it.effect.each([
655
+
["gh: Not Found (HTTP 404)",null],
656
+
["HTTP 404: Not Found (https://github.example/api/v3/repos/acme/web/stacks)",null],
657
+
["gh: Resource not accessible by integration (HTTP 403)","GitHubCliCommandError"],
658
+
["gh: Service Unavailable (HTTP 503)","GitHubCliCommandError"],
659
+
["dial tcp: lookup github.example: no such host","GitHubCliCommandError"],
660
+
["To get started with GitHub CLI, please run: gh auth login","GitHubCliAuthenticationError"],
661
+
["gh: Too Many Requests (HTTP 429)","GitHubCliRateLimitError"],
662
+
]asconst)("classifies the raw stacks API failure: %s",([stderr,expectedError])=>
654
663
Effect.gen(function*(){
655
-
// The CLI classifies a missing preview endpoint as not found.
656
-
mockedExecute.mockReturnValueOnce(
657
-
Effect.fail(
658
-
newGitHubCli.GitHubPullRequestNotFoundError({
659
-
command: "gh",
660
-
cwd: "/w",
661
-
cause: newError("HTTP 404: Not Found (https://api.github.com/repos/acme/web/stacks)"),
0 commit comments