MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 1 callersFunctionresolveCommentNodeID
resolveCommentNodeID returns the comment node ID for the current invocation, resolving it from a comment database ID (parsed from a comment URL) when
pkg/cmd/discussion/view/view.go:226
↓ 1 callersFunctionresolveCredential
resolveCredential returns the credential gh should present for the host and optional user (an empty username means the active account), refreshing an
pkg/cmd/auth/status/status.go:540
↓ 1 callersFunctionresolveDefaultBranch
(client *api.Client, host, owner, repo string)
internal/skills/discovery/discovery.go:366
↓ 1 callersFunctionresolveExplicitRef
resolveExplicitRef resolves a user-supplied version string. It supports: - fully qualified refs: "refs/tags/v1.0" or "refs/heads/main" - short names:
internal/skills/discovery/discovery.go:235
↓ 1 callersFunctionresolveFieldColumns
resolveFieldColumns turns the --field (names) and --field-id (node IDs) flags into ordered column descriptors. Names are resolved with ResolveFieldByN
pkg/cmd/project/item-list/item_list.go:202
↓ 1 callersFunctionresolveGitPath
()
git/client.go:956
↓ 1 callersFunctionresolveInstallDir
(opts *InstallOptions, host *registry.AgentHost, scope registry.Scope, gitRoot, homeDir string)
pkg/cmd/skills/install/install.go:1023
↓ 1 callersFunctionresolveItemEditNames
resolveItemEditNames turns the name-based addressing flags into the node IDs used by the field-value mutations: it resolves the project from owner + n
pkg/cmd/project/item-edit/item_edit.go:263
↓ 1 callersFunctionresolveLatestRelease
(client *api.Client, host, owner, repo string)
internal/skills/discovery/discovery.go:341
↓ 1 callersFunctionresolveOrganizationTeam
(client *api.Client, hostname, orgName, teamSlug string)
pkg/cmd/repo/create/http.go:280
↓ 1 callersFunctionresolveOwner
(client *api.Client, hostname, orgName string)
pkg/cmd/repo/create/http.go:262
↓ 1 callersFunctionresolveRepoArg
(skillSource string, canPrompt bool, p prompter.Prompter)
pkg/cmd/skills/install/install.go:580
↓ 1 callersFunctionresolveUsername
(authCfg gh.AuthConfig, hostname, username string)
pkg/cmd/auth/token/token.go:171
↓ 1 callersFunctionresolveVersion
(opts *InstallOptions, client *api.Client, hostname string)
pkg/cmd/skills/install/install.go:623
↓ 1 callersFunctionresolveWorktreeTarget
resolveWorktreeTarget asks git where path lives, letting git resolve symlinks, "..", case, and trailing slashes for us instead of comparing paths ours
pkg/cmd/pr/shared/worktree.go:69
↓ 1 callersFunctionresponseHasBody
(method string, status int)
script/ghmock/server.go:264
↓ 1 callersFunctionrestEntry
(run, name string)
script/ghmock/scaffold_test.go:84
↓ 1 callersFunctionrestoreBackup
restoreBackup undoes a partial swap by removing any freshly installed entries and moving the original entries back from backup into dest.
pkg/cmd/skills/update/update.go:512
↓ 1 callersFunctionrestoreVersion
restoreVersion saves the name and body of version opts.RestoreVersion as a new version. They are sent as the API returned them, so the server checks t
pkg/cmd/issue/artifact/edit/edit.go:231
↓ 1 callersFunctionrevParseFacts
(client *git.Client, dir string, flags ...string)
pkg/cmd/pr/shared/worktree.go:100
↓ 1 callersFunctionrevertRun
(opts *RevertOptions)
pkg/cmd/pr/revert/revert.go:85
↓ 1 callersFunctionreviewReadAt
(call: GhCall, action: Action, expected?: Record<string, unknown>)
evals/src/suites/events/grading/observations.ts:54
↓ 1 callersFunctionreviewRun
(opts *ReviewOptions)
pkg/cmd/pr/review/review.go:148
↓ 1 callersFunctionreviewSurvey
(opts *ReviewOptions)
pkg/cmd/pr/review/review.go:204
↓ 1 callersFunctionreviewerSearchFunc
reviewerSearchFunc is intended to be an arg for MultiSelectWithSearch to return potential reviewer candidates (users, bots, and teams). It also update
pkg/cmd/pr/edit/edit.go:455
↓ 1 callersFunctionrewriteResponse
rewriteResponse replaces the upstream host with the gateway host everywhere it appears, so that clients following URLs the API handed them stay on the
script/api-host-gateway/gateway/main.go:193
↓ 1 callersFunctionright
()
internal/prompter/huh_prompter_test.go:89
↓ 1 callersFunctionrmrf
(targets ...string)
script/build.go:219
↓ 1 callersFunctionrootHelpFunc
(f *cmdutil.Factory, command *cobra.Command, _ []string)
pkg/cmd/root/help.go:92
↓ 1 callersFunctionroute
(resource: string, ...extra: string[])
evals/src/graders.test.ts:222
↓ 1 callersFunctionrouteMethods
(item *openapi3.PathItem)
script/ghmock/schemacmd.go:328
↓ 1 callersFunctionrpad
rpad adds padding to the right of a string.
pkg/cmd/root/help.go:299
↓ 1 callersFunctionrun
(args ...string)
script/build.go:234
↓ 1 callersFunctionrun
(listen, gatewayHost, upstreamHost, upstreamAddr, caOut, logOut, readyOut string)
script/api-host-gateway/gateway/main.go:74
↓ 1 callersFunctionrun
(...args: string[])
evals/src/harness.test.ts:729
↓ 1 callersFunctionrun
evals/src/smoke.ts:188
↓ 1 callersMethodrun
(t *testing.T, w *io.PipeWriter)
internal/prompter/huh_prompter_test.go:35
↓ 1 callersFunctionrunAdd
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:244
↓ 1 callersFunctionrunBinary
runBinary runs one gh binary in its own scratch folder. With ca, gh uses github.com and trusts only ca; without it, gh uses github.localhost.
script/ghmock/run.go:280
↓ 1 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/repo/list/list_test.go:348
↓ 1 callersFunctionrunDelete
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:165
↓ 1 callersFunctionrunEdit
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:188
↓ 1 callersFunctionrunGitCommands
(client *git.Client, commands [][]string)
pkg/cmd/issue/develop/develop.go:422
↓ 1 callersFunctionrunInTerminal
runInTerminal starts cmd in a pseudo-terminal, so gh can prompt as it does for a user, and types each keys entry once the screen settles. It returns c
script/ghmock/terminal.go:25
↓ 1 callersFunctionrunLocalInstall
runLocalInstall handles installation from a local directory path.
pkg/cmd/skills/install/install.go:487
↓ 1 callersFunctionrunPublishRelease
runPublishRelease handles the interactive publish flow: topic, tag, release, immutability.
pkg/cmd/skills/publish/publish.go:477
↓ 1 callersFunctionrunReply
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:215
↓ 1 callersFunctionrunRepoSearchTest
(t *testing.T, searchText, wantQueryText, wantSort, wantMaxRepos string)
internal/codespaces/api/api_test.go:499
↓ 1 callersFunctionrunTestGrpcServer
runTestGrpcServer serves grpc requests over the provided Listener using the mockServer for mocked callbacks. It does not return until the Context is c
internal/codespaces/rpc/invoker_test.go:39
↓ 1 callersFunctionrunTests
runTests keeps tests away from the network and the real cache folder. Tests that need schemas call useTestSchemas.
script/ghmock/run_test.go:42
↓ 1 callersMethodrunning
running returns whether the codespace environment is running.
pkg/cmd/codespace/common.go:231
↓ 1 callersFunctionsafeClose
(closer io.Closer, err *error)
internal/codespaces/states.go:134
↓ 1 callersFunctionsampleCategories
()
pkg/cmd/discussion/list/list_test.go:683
↓ 1 callersFunctionsampleCategories
()
pkg/cmd/discussion/create/create_test.go:462
↓ 1 callersFunctionsampleCategories
()
pkg/cmd/discussion/edit/edit_test.go:638
↓ 1 callersFunctionsampleComment
()
pkg/cmd/discussion/comment/comment_test.go:705
↓ 1 callersFunctionsampleDiscussion
()
pkg/cmd/discussion/comment/comment_test.go:696
↓ 1 callersFunctionsampleDiscussion
()
pkg/cmd/discussion/create/create_test.go:470
↓ 1 callersFunctionsampleDiscussion
()
pkg/cmd/discussion/edit/edit_test.go:646
↓ 1 callersFunctionsampleResult
()
pkg/cmd/discussion/list/list_test.go:676
↓ 1 callersFunctionsanitizeForTerminal
sanitizeForTerminal replaces ASCII control characters in s with inert caret-style stand-ins so frontmatter values cannot inject terminal escapes.
pkg/cmd/skills/list/list.go:516
↓ 1 callersMethodscaffold
scaffold builds a success response for a REST request from GitHub's description. It starts from GitHub's example. About one in five examples lag behin
script/ghmock/restscaffold.go:22
↓ 1 callersFunctionscaffoldGraphQL
scaffoldGraphQL adds a response built from gh's query, or adds the fields gh asked for to stored responses that lack them. explicit is true when the c
script/ghmock/scaffold.go:208
↓ 1 callersFunctionscaffoldREST
scaffoldREST adds a response for a REST request from GitHub's description. A request that already has a response is left alone: ghmock set checks REST
script/ghmock/scaffold.go:335
↓ 1 callersMethodscalar
scalar makes a placeholder for a scalar field. Strings hold the field's name, so gh's output shows where each value came from.
script/ghmock/gqlscaffold.go:199
↓ 1 callersFunctionscalarJSON
scalarJSON says how a scalar appears in a JSON response.
script/ghmock/schemacmd.go:224
↓ 1 callersFunctionscanFilterForAgentHost
(agentHost *registry.AgentHost, scope registry.Scope)
pkg/cmd/skills/list/list.go:296
↓ 1 callersFunctionscanInstalledSkills
(skillsDir string, agentHostIDs []string, scope string, filter scanFilter)
pkg/cmd/skills/list/list.go:317
↓ 1 callersFunctionscanMarkdownRefs
scanMarkdownRefs finds every place the markdown names one of the attached files.
internal/attachments/references.go:245
↓ 1 callersFunctionscanTitle
scanTitle skips the optional title following a destination and returns the index just past it. i may point at anything: a byte that opens no title lea
internal/attachments/references.go:641
↓ 1 callersFunctionschemaAt
schemaAt follows a dotted path, as used by ghmock set --at, into a schema.
script/ghmock/schemacmd.go:377
↓ 1 callersFunctionschemaCacheDir
()
script/ghmock/schemafiles.go:55
↓ 1 callersFunctionschemaCheck
schemaCheck checks resp against GitHub's schema. It returns the problems it found, or, when it couldn't check, a line saying why.
script/ghmock/set.go:247
↓ 1 callersMethodschemaFiles
schemaFiles describes each schema the checker tried to load.
script/ghmock/checker.go:108
↓ 1 callersFunctionschemaTypeName
(t string, ref *openapi3.SchemaRef)
script/ghmock/schemacmd.go:480
↓ 1 callersMethodscore
(parts []string)
script/ghmock/restcheck.go:123
↓ 1 callersFunctionscreenText
screenText is the terminal's screen as text, without trailing spaces or blank lines at the bottom.
script/ghmock/terminal.go:128
↓ 1 callersFunctionsearchByKeyword
searchByKeyword runs parallel searches: content match, path match, owner match (for single-word queries), and (for multi-word queries) a hyphenated co
pkg/cmd/skills/search/search.go:283
↓ 1 callersFunctionsearchRepos
(client *http.Client, hostname string, limit int, owner string, filter FilterOptions)
pkg/cmd/repo/list/http.go:118
↓ 1 callersFunctionsearchResp
searchResp builds a mock search JSON response.
pkg/cmd/discussion/client/client_test.go:91
↓ 1 callersFunctionsearchResults
(numResults int)
pkg/cmd/extension/command_test.go:1150
↓ 1 callersFunctionselectRulesetID
(rsList *shared.RulesetList, p prompter.Prompter, cs *iostreams.ColorScheme)
pkg/cmd/ruleset/view/view.go:260
↓ 1 callersFunctionselectSkill
(opts *PreviewOptions, skills []discovery.Skill)
pkg/cmd/skills/preview/preview.go:453
↓ 1 callersFunctionselectWorkflow
(p iprompter, workflows []Workflow, promptMsg string, states []WorkflowState)
pkg/cmd/workflow/shared/shared.go:106
↓ 1 callersFunctionselectedAgentHosts
(agentID string)
pkg/cmd/skills/list/list.go:266
↓ 1 callersFunctionselectedScopes
(scope string)
pkg/cmd/skills/list/list.go:282
↓ 1 callersMethodsendAndWait
(prompt: string, timeout: number)
evals/src/graders/copilot-review.ts:9
↓ 1 callersMethodsendError
(err error)
internal/codespaces/connection/tunnels_api_server_mock.go:290
↓ 1 callersFunctionserializeProjectWithItems
serialize creates a map from field to field values
pkg/cmd/project/shared/queries/queries.go:1799
↓ 1 callersMethodserveGitHTTP
serveGitHTTP delegates smart HTTP to Git before the JSON fixture handler reads the body. Pack streams must not be truncated or schema-checked.
script/ghmock/gittransport.go:36
↓ 1 callersMethodserveRecordEvents
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:332
↓ 1 callersMethodserveRecordEventsJSON
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:350
↓ 1 callersMethodserveRecordEventsProtobuf
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:433
↓ 1 callersMethodserverConfig
serverConfig presents a certificate for the host gh names in its TLS handshake, or for fallback when it names none.
script/ghmock/tls.go:114
↓ 1 callersFunctionset
(flag: string, value: string)
evals/src/core/calls.ts:62
↓ 1 callersFunctionsetAtPath
setAtPath puts a JSON value at a dotted path inside a JSON body. Numeric segments index arrays. Missing objects along the way are created.
script/ghmock/set.go:369
↓ 1 callersMethodsetInstalled
(fullName string, installed bool)
pkg/cmd/extension/browse/model.go:429
↓ 1 callersFunctionsetPath
(node any, segments []string, val any, walked string)
script/ghmock/set.go:391
↓ 1 callersFunctionsetPrepareCmd
(fn func(*exec.Cmd) Runnable)
internal/run/stub.go:53
↓ 1 callersFunctionsetRefresher
(t *testing.T, c gh.Config, r gh.TokenRefresher)
pkg/cmd/auth/token/token_test.go:521
← previousnext →3,801–3,900 of 7,487, ranked by callers