MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 1 callersFunctionmockReviewerResponse
mockReviewerResponse generates a GraphQL response for SuggestedReviewerActors tests. It creates suggestions (s1, s2...), collaborators (c1, c2...), an
api/queries_pr_test.go:146
↓ 1 callersFunctionmockReviewerResponseForRepo
mockReviewerResponseForRepo generates a GraphQL response for SuggestedReviewerActorsForRepo tests. It creates collaborators (c1, c2...) and teams (tea
api/queries_pr_test.go:381
↓ 1 callersFunctionmockSuccessfulEditResponse
(reg *httpmock.Registry, cb func(params map[string]any))
pkg/cmd/release/edit/edit_test.go:477
↓ 1 callersMethodmoveByPage
(direction int)
pkg/cmd/extension/browse/model.go:589
↓ 1 callersFunctionmp4Arg
()
internal/attachments/references_test.go:21
↓ 1 callersFunctionmustMarshal
(t *testing.T, v any)
pkg/cmd/send-telemetry/send_telemetry_test.go:221
↓ 1 callersFunctionmustParseQualifiedHeadRef
(ref string)
pkg/cmd/pr/shared/find_refs_resolution_test.go:504
↓ 1 callersFunctionmustParseQualifiedHeadRef
(ref string)
pkg/cmd/pr/create/create_test.go:2795
↓ 1 callersFunctionmustReadDir
(t *testing.T, path string)
internal/zip/zip_test.go:110
↓ 1 callersFunctionnameFromFile
nameFromFile returns the name gh gives an artifact from a file: its base name, as typed rather than a symlink's target, cleaned up to fit the server's
pkg/cmd/issue/artifact/create/create.go:422
↓ 1 callersFunctionneedsBom
()
pkg/surveyext/editor_manual.go:30
↓ 1 callersFunctionnestedSuggestFunc
Display helpful error message in case subcommand name was mistyped. This matches Cobra's behavior for root command, which Cobra confusingly doesn't ap
pkg/cmd/root/help.go:64
↓ 1 callersFunctionnewAttachableDocuments
newAttachableDocuments scans every document and refuses what no upload can fix, so that nothing uploads for a set of documents that cannot take it.
internal/attachments/attach.go:161
↓ 1 callersFunctionnewAttachmentArgs
newAttachmentArgs describes each asset for the markdown half of the package, without a URL, since nothing has uploaded yet.
internal/attachments/attach.go:201
↓ 1 callersFunctionnewAuthStatus
()
pkg/cmd/auth/status/status.go:58
↓ 1 callersFunctionnewBlockingStream
(ctx context.Context)
pkg/cmd/event/listen/listen_test.go:197
↓ 1 callersFunctionnewBody
newBody returns the body to save, checked against the artifact's type, or nil to keep the current body. Only a type that supports attachments takes --
pkg/cmd/issue/artifact/edit/edit.go:283
↓ 1 callersFunctionnewBoolValue
(p **bool)
pkg/cmdutil/flags.go:100
↓ 1 callersFunctionnewBrowser
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:308
↓ 1 callersFunctionnewCodeCmd
(app *App)
pkg/cmd/codespace/code.go:11
↓ 1 callersFunctionnewCpCmd
(app *App)
pkg/cmd/codespace/ssh.go:710
↓ 1 callersFunctionnewCustomVerifier
(trustedRoot *root.TrustedRoot)
pkg/cmd/attestation/verification/sigstore.go:314
↓ 1 callersFunctionnewDefaultPushTarget
newDefaultPushTarget is a thin wrapper over defaultPushTarget to help with generic type inference, to reduce verbosity in repeating the parametric typ
pkg/cmd/pr/shared/find_refs_resolution.go:291
↓ 1 callersFunctionnewDeleteCmd
(app *App)
pkg/cmd/codespace/delete.go:39
↓ 1 callersFunctionnewFile
()
internal/skills/lockfile/lockfile.go:139
↓ 1 callersFunctionnewFixtureRepositoryManager
(tsEnv testScriptEnv)
acceptance/fixture_repository_test.go:107
↓ 1 callersFunctionnewGQLScaffolder
(schema *ast.Schema)
script/ghmock/gqlscaffold.go:61
↓ 1 callersFunctionnewGitHubVerifier
(trustDomain string, tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/sigstore.go:337
↓ 1 callersFunctionnewIdleReader
(body io.ReadCloser, timeout time.Duration)
pkg/cmd/event/listen/listen.go:553
↓ 1 callersFunctionnewImageAsset
newImageAsset applies what only holds for an image: the author may write alt text, and the fallback mirrors the web uploader by stripping the extensio
internal/attachments/userasset.go:69
↓ 1 callersFunctionnewJupyterCmd
(app *App)
pkg/cmd/codespace/jupyter.go:15
↓ 1 callersFunctionnewLineSplitter
newLineSplitter returns a bufio.SplitFunc for SSE lines. The specification (9.2.5) allows three line endings: CR LF ("\r\n"), a lone LF ("\n"), or a l
internal/eventstream/sse.go:137
↓ 1 callersFunctionnewLiveFixtureRepositoryClient
(tsEnv testScriptEnv)
acceptance/fixture_repository_test.go:36
↓ 1 callersFunctionnewLogsCmd
(app *App)
pkg/cmd/codespace/logs.go:13
↓ 1 callersFunctionnewMockGitClient
(t *testing.T, config func(*mockGitClient))
pkg/cmd/repo/sync/sync_test.go:768
↓ 1 callersFunctionnewMockrelayServer
(opts ...relayServerOption)
internal/codespaces/connection/tunnels_api_server_mock.go:238
↓ 1 callersFunctionnewMultiSelectSearchField
( title, searchTitle string, defaults, persistent []string, searchFunc func(string) MultiSelectSearchResult
internal/prompter/multi_select_with_search.go:78
↓ 1 callersFunctionnewPortsCmd
newPortsCmd returns a Cobra "ports" command that displays a table of available ports, according to the specified flags.
pkg/cmd/codespace/ports.go:27
↓ 1 callersFunctionnewPortsForwardCmd
NewPortsForwardCmd returns a Cobra "ports forward" subcommand, which forwards a set of port pairs from the codespace to localhost.
pkg/cmd/codespace/ports.go:301
↓ 1 callersFunctionnewPortsVisibilityCmd
(app *App, selector *CodespaceSelector)
pkg/cmd/codespace/ports.go:219
↓ 1 callersFunctionnewPrompter
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:313
↓ 1 callersFunctionnewPublicGoodVerifier
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/sigstore.go:371
↓ 1 callersFunctionnewReadmeGetter
(client *http.Client, cacheTTL time.Duration)
pkg/cmd/extension/browse/rg.go:16
↓ 1 callersFunctionnewRebuildCmd
(app *App)
pkg/cmd/codespace/rebuild.go:15
↓ 1 callersFunctionnewRunID
(start time.Time)
script/ghmock/run.go:596
↓ 1 callersFunctionnewSCPCommand
newSCPCommand populates an exec.Cmd to run an scp command for the files specified in cmdArgs. cmdArgs is parsed such that scp flags precede the files
internal/codespaces/ssh.go:107
↓ 1 callersFunctionnewSSHCmd
(app *App)
pkg/cmd/codespace/ssh.go:49
↓ 1 callersFunctionnewSelectCmd
(app *App)
pkg/cmd/codespace/select.go:16
↓ 1 callersFunctionnewServerOpts
(opts []interface{})
internal/barista/observability/telemetry.twirp.go:571
↓ 1 callersFunctionnewSocketConn
(conn *websocket.Conn)
internal/codespaces/connection/tunnels_api_server_mock.go:446
↓ 1 callersFunctionnewStopCmd
(app *App)
pkg/cmd/codespace/stop.go:19
↓ 1 callersFunctionnewStringValue
(p **string)
pkg/cmdutil/flags.go:76
↓ 1 callersFunctionnewTestAccessiblePrompter
(t *testing.T, console *expect.Console)
internal/prompter/accessible_prompter_test.go:886
↓ 1 callersFunctionnewTestIOStreams
(t *testing.T, console *expect.Console, spinnerDisabled bool)
pkg/iostreams/iostreams_progress_indicator_test.go:178
↓ 1 callersFunctionnewTestSurveyPrompter
(t *testing.T, console *expect.Console)
internal/prompter/accessible_prompter_test.go:895
↓ 1 callersFunctionnewTestVirtualTerminal
(t *testing.T)
pkg/iostreams/iostreams_progress_indicator_test.go:152
↓ 1 callersFunctionnewTrafficMonitor
newTrafficMonitor returns a trafficMonitor for the specified codespace connection. It wraps the provided io.ReaderWriteCloser with its own Read/Write/
internal/codespaces/portforwarder/port_forwarder.go:435
↓ 1 callersFunctionnewTunnelListener
(addr net.Addr)
script/ghmock/tls.go:147
↓ 1 callersFunctionnewUploadError
newUploadError captures the status code so the message can name what the endpoint refused.
internal/attachments/client.go:155
↓ 1 callersFunctionnewVideoAsset
newVideoAsset applies what only holds for a video: a player has no alt attribute to fill, so the author cannot supply one, and the name that stands in
internal/attachments/userasset.go:104
↓ 1 callersFunctionnewZipLogMap
()
pkg/cmd/run/view/logs.go:164
↓ 1 callersFunctionnoResults
noResults returns an empty JSON array for exporters or a no-results error.
pkg/cmd/skills/search/search.go:359
↓ 1 callersFunctionnoResultsMessage
noResultsMessage returns an appropriate "no results" message.
pkg/cmd/skills/search/search.go:271
↓ 1 callersFunctionnonBlockingOpenFlag
()
internal/safepaths/open_nonblock_unix.go:10
↓ 1 callersFunctionnormalizeBuildTags
(tags string)
script/build.go:135
↓ 1 callersFunctionnormalizeDir
(d string)
pkg/cmd/extension/command_test.go:973
↓ 1 callersFunctionnormalizeExtensionSelector
(n string)
pkg/cmd/extension/command.go:716
↓ 1 callersFunctionnormalizeHost
(host string)
internal/skills/source/source.go:70
↓ 1 callersFunctionnormalizeJSON
(j []byte)
pkg/cmd/codespace/ports.go:397
↓ 1 callersFunctionnormalizeTask
(t string)
script/build.go:269
↓ 1 callersFunctionnullability
nullability says whether a field's value can be null, or for input fields, whether the field is required.
script/ghmock/schemacmd.go:185
↓ 1 callersFunctionnumbered
(n int)
script/ghmock/run_test.go:1688
↓ 1 callersFunctionnumbers
numbers returns the numbers from first to last.
pkg/cmd/issue/artifact/client/client_test.go:860
↓ 1 callersFunctionobservedAt
(evidence: Evidence, action: Action, call: GhCall)
evals/src/suites/events/grading/observations.ts:139
↓ 1 callersFunctionobservedProcess
(t: TestContext, source: string)
evals/src/harness.test.ts:31
↓ 1 callersFunctionoffSchema
(e loggedRequest)
script/ghmock/run_test.go:1683
↓ 1 callersFunctionok
(stdout: string)
evals/src/smoke.test.ts:86
↓ 1 callersFunctiononlyIn
onlyIn lists the fields in a that b doesn't ask for. A new object is listed once, without the fields inside it.
script/ghmock/trim.go:192
↓ 1 callersMethodopenDir
openDir opens the directory the file at path goes in, through safepaths, creating it and any missing parents: Dir, or with Output, the file's parent d
pkg/cmd/issue/artifact/download/download.go:455
↓ 1 callersFunctionopenInBrowser
(opts *ListOptions, repo ghrepo.Interface)
pkg/cmd/discussion/list/list.go:268
↓ 1 callersFunctionopenInBrowser
openInBrowser opens a document's page on GitHub, or a link's URL. The page comes from the API, so the message shows it like gh issue view --web does.
pkg/cmd/issue/artifact/view/view.go:169
↓ 1 callersMethodopenVerifiedDirectory
(parent *os.Root, name, displayPath string)
internal/safepaths/root.go:358
↓ 1 callersMethodopenVerifiedEntry
(parent *os.Root, name, displayPath string)
internal/safepaths/root.go:401
↓ 1 callersFunctionoperationName
operationName resolves the requested operation, or the document's sole operation when no name is supplied. Invalid selections retain the supplied name
script/ghmock/request.go:92
↓ 1 callersMethodoptionalSeconds
optionalSeconds reads a raw lifetime in seconds (an ExpiresIn field) from config, returning 0 when the key is absent so a credential without the value
internal/config/refreshable.go:287
↓ 1 callersMethodoptionalTimestamp
(path []string)
internal/config/refreshable.go:302
↓ 1 callersMethodotherBinScaffolding
(name string)
pkg/cmd/extension/manager.go:646
↓ 1 callersFunctionpagerConfig
()
internal/ghcmd/cmd_test.go:599
↓ 1 callersFunctionpaginate
paginate slices results to the requested page window.
pkg/cmd/skills/search/search.go:408
↓ 1 callersMethodpaginateOrgLogins
paginateOrgLogins after cursor and append them to the list of logins.
pkg/cmd/project/shared/queries/queries.go:1400
↓ 1 callersFunctionparse
(argv: string[])
evals/src/smoke.ts:35
↓ 1 callersFunctionparseArgv
(args: string[], spec: ArgvSpec = {})
evals/src/core/calls.ts:56
↓ 1 callersFunctionparseArtifactURL
parseArtifactURL reads an artifact URL into its repository, issue number and artifact number. Like an issue URL, it may be http, and its query and fra
pkg/cmd/issue/artifact/shared/shared.go:172
↓ 1 callersFunctionparseArtifactURLs
parseArtifactURLs reads every argument as an artifact URL on the same issue.
pkg/cmd/issue/artifact/shared/shared.go:147
↓ 1 callersFunctionparseCheckStatusFromCheckConclusionState
(state CheckConclusionState)
api/queries_pr.go:473
↓ 1 callersFunctionparseCheckStatusFromCheckRunState
(state CheckRunState)
api/queries_pr.go:456
↓ 1 callersFunctionparseCheckStatusFromStatusState
(state StatusState)
api/queries_pr.go:440
↓ 1 callersFunctionparseFields
TODO copypasta from gh api
pkg/cmd/workflow/run/run.go:171
↓ 1 callersFunctionparseGitHubURL
parseGitHubURL extracts owner/repo from a GitHub remote URL. Only github.com and GHEC data residency (*.ghe.com) URLs are recognized.
pkg/cmd/skills/publish/publish.go:1000
↓ 1 callersFunctionparseGraphQL
(body []byte)
script/ghmock/request.go:72
← previousnext →3,501–3,600 of 7,487, ranked by callers