Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 2 callers
Method
lookupCommit
(ctx context.Context, sha, format string)
git/client.go:422
↓ 2 callers
Function
magicFieldValue
(v string, opts *ApiOptions)
pkg/cmd/api/fields.go:160
↓ 2 callers
Function
magicFieldValue
TODO MODIFIED copypasta from gh api
pkg/cmd/workflow/run/run.go:158
↓ 2 callers
Method
makePath
(name string)
pkg/cmd/release/download/download.go:408
↓ 2 callers
Function
makeTestReleaseAttestation
()
pkg/cmd/attestation/api/mock_client.go:9
↓ 2 callers
Function
malformedRequestError
malformedRequestError is used when the twirp server cannot unmarshal a request
internal/barista/observability/telemetry.twirp.go:891
↓ 2 callers
Function
mapReplyFromNode
mapReplyFromNode converts a discussionReplyNode into the domain DiscussionComment type.
pkg/cmd/discussion/client/client.go:462
↓ 2 callers
Function
maskToken
(token string)
pkg/cmd/auth/status/status.go:423
↓ 2 callers
Function
matchesAny
(name string, excludePatterns []string)
pkg/cmd/pr/diff/diff.go:410
↓ 2 callers
Function
mergeMethodSurvey
(p shared.Prompt, baseRepo *api.Repository)
pkg/cmd/pr/merge/merge.go:636
↓ 2 callers
Function
mightBeGHESUser
(cfg gh.Config)
internal/ghcmd/cmd.go:495
↓ 2 callers
Function
minimalNodes
minimalNodes returns count comma-separated minimal JSON discussion nodes.
pkg/cmd/discussion/client/client_test.go:61
↓ 2 callers
Function
mockIssueGet
(_ *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:1836
↓ 2 callers
Function
mockIssueNumberGet
(_ *testing.T, reg *httpmock.Registry, number int)
pkg/cmd/issue/edit/edit_test.go:1857
↓ 2 callers
Function
mockReviewerResponseForRepoWithCopilot
mockReviewerResponseForRepoWithCopilot generates a GraphQL response for SuggestedReviewerActorsForRepo tests. If copilotAvailable is true, includes Co
api/queries_pr_test.go:387
↓ 2 callers
Function
mockV2ProjectItems
mockV2ProjectItems registers GraphQL queries to report an issue on multiple v2 projects in various states - `NO_STATUS_ITEM`: emulates this issue is o
pkg/cmd/issue/view/view_test.go:626
↓ 2 callers
Function
multiSelectSurvey
(p EditPrompter, message string, defaults, options []string)
pkg/cmd/pr/shared/editable.go:628
↓ 2 callers
Function
multiSelectWithSearch
(p Prompter, prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) Mu
internal/prompter/prompter.go:372
↓ 2 callers
Function
mustParseAbsolute
(s string)
internal/safepaths/absolute_test.go:113
↓ 2 callers
Function
namedPipeWriteError
(path string)
internal/safepaths/root.go:469
↓ 2 callers
Function
namesPull
Whether a --resource value names the fixture PR, by web URL or by either REST API URL form the server accepts.
evals/src/suites/events/grading/observations.ts:77
↓ 2 callers
Function
needsComments
needsComments returns true when the command should fetch full comment data, either because --comments was set or because --json requested the comments
pkg/cmd/discussion/view/view.go:235
↓ 2 callers
Function
newCmdClone
(f *cmdutil.Factory, runF func(*cloneOptions) error)
pkg/cmd/label/clone.go:28
↓ 2 callers
Function
newCmdCreate
(f *cmdutil.Factory, runF func(*createOptions) error)
pkg/cmd/label/create.go:52
↓ 2 callers
Function
newCmdDelete
(f *cmdutil.Factory, runF func(*deleteOptions) error)
pkg/cmd/label/delete.go:29
↓ 2 callers
Function
newCmdEdit
(f *cmdutil.Factory, runF func(*editOptions) error)
pkg/cmd/label/edit.go:28
↓ 2 callers
Function
newCmdList
(f *cmdutil.Factory, runF func(*listOptions) error)
pkg/cmd/label/list.go:28
↓ 2 callers
Function
newCmdSendTelemetry
(f *cmdutil.Factory, runF func(*SendTelemetryOptions) error)
pkg/cmd/send-telemetry/send_telemetry.go:33
↓ 2 callers
Function
newCreateCmd
(app *App)
pkg/cmd/codespace/create.go:84
↓ 2 callers
Function
newEditCmd
(app *App)
pkg/cmd/codespace/edit.go:19
↓ 2 callers
Function
newEnforcementCriteria
(opts *Options)
pkg/cmd/attestation/verify/policy.go:66
↓ 2 callers
Function
newGitClient
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:297
↓ 2 callers
Function
newGitHubVerifierWithTrustedRoot
(trustedRoot *root.TrustedRoot)
pkg/cmd/attestation/verification/sigstore.go:362
↓ 2 callers
Function
newListCmd
(app *App)
pkg/cmd/codespace/list.go:23
↓ 2 callers
Function
newLiveFixtureRepositoryClientWithTransport
(tsEnv testScriptEnv, transport http.RoundTripper)
acceptance/fixture_repository_test.go:40
↓ 2 callers
Function
newProjectFromQueryBase
(source projectQueryBase)
pkg/cmd/project/shared/queries/queries.go:227
↓ 2 callers
Function
newPublicGoodVerifierWithTrustedRoot
(trustedRoot *root.TrustedRoot)
pkg/cmd/attestation/verification/sigstore.go:385
↓ 2 callers
Function
newRemoteNameToRepoFn
newRemoteNameToRepoFn takes a function that returns a list of remotes and returns a function that takes a remote name and returns the corresponding re
pkg/cmd/pr/shared/find_refs_resolution.go:228
↓ 2 callers
Function
newRequest
newRequest makes an http.Request from a client, adding common headers.
internal/barista/observability/telemetry.twirp.go:699
↓ 2 callers
Function
newSSHCommand
newSSHCommand populates an exec.Cmd to run a command (or if blank, an interactive shell) over ssh.
internal/codespaces/ssh.go:65
↓ 2 callers
Function
newSchemaFile
(source schemaSource, path string, data []byte)
script/ghmock/checker.go:45
↓ 2 callers
Function
newTestGitClient
newTestGitClient returns a git.Client with a fake git path to avoid real git resolution.
pkg/cmd/skills/publish/publish_test.go:26
↓ 2 callers
Function
newTestRepoWithMode
(t *testing.T, bare bool)
git/client_test.go:1565
↓ 2 callers
Function
newTestVirtualTerminal
(t *testing.T)
internal/prompter/accessible_prompter_test.go:839
↓ 2 callers
Function
newTestVirtualTerminalIOStreams
(t *testing.T, console *expect.Console)
internal/prompter/accessible_prompter_test.go:868
↓ 2 callers
Function
newViewCmd
(app *App)
pkg/cmd/codespace/view.go:25
↓ 2 callers
Method
noVerifierSet
()
pkg/cmd/attestation/verification/sigstore.go:394
↓ 2 callers
Function
normalizeHostname
(h string)
internal/ghrepo/repo.go:74
↓ 2 callers
Function
normalizeToUTC
normalizeToUTC returns a copy of the record with any expiration timestamps converted to UTC, so stored records use a single canonical timezone regardl
internal/config/refreshable.go:604
↓ 2 callers
Function
normalizeVerboseLog
(t string)
api/http_client_test.go:659
↓ 2 callers
Function
notFound
notFound is an error for a name that doesn't exist. It suggests close matches.
script/ghmock/schemacmd.go:621
↓ 2 callers
Method
notifyCodespaceOfClientActivity
(ctx context.Context, activity string)
internal/codespaces/rpc/invoker.go:300
↓ 2 callers
Function
observe
(calls: Call[], value: unknown, now: number)
evals/src/core/observer.ts:6
↓ 2 callers
Function
officialExtensionStubRun
(io *iostreams.IOStreams, p prompter.Prompter, em extensions.ExtensionManager, ext *extensions.OfficialExtensi
pkg/cmd/root/official_extension_stub.go:39
↓ 2 callers
Function
openUserFile
(fn string, stdin io.ReadCloser)
pkg/cmd/api/api.go:644
↓ 2 callers
Method
operationLabel
()
script/ghmock/request.go:32
↓ 2 callers
Function
operationVariables
(op *ast.OperationDefinition, raw json.RawMessage)
script/ghmock/gqlscaffold.go:72
↓ 2 callers
Function
outputForEnvironment
(output string)
acceptance/acceptance_test.go:219
↓ 2 callers
Method
pageSize
()
pkg/cmd/extension/browse/model.go:582
↓ 2 callers
Function
paginateAttributes
paginateAttributes is for paginating over the attributes of a project, such as items or fields firstKey and afterKey are the keys in the variables ma
pkg/cmd/project/shared/queries/queries.go:928
↓ 2 callers
Function
parseAgentName
parseAgentName validates and returns an AgentName from a raw string. Only alphanumeric characters, hyphens, and underscores are allowed.
internal/agents/detect.go:35
↓ 2 callers
Function
parseArgs
parseArgs parses arguments into two distinct slices of flags and command. Parsing stops as soon as a non-flag argument is found assuming the remaining
internal/codespaces/ssh.go:153
↓ 2 callers
Function
parseBranchConfig
(branchConfigLines []string)
git/client.go:461
↓ 2 callers
Function
parseCacheID
(arg string)
pkg/cmd/cache/delete/delete.go:236
↓ 2 callers
Function
parseCloneArgs
(extraArgs []string)
git/client.go:990
↓ 2 callers
Function
parseErrorResponse
(r io.Reader, statusCode int)
pkg/cmd/api/api.go:662
↓ 2 callers
Function
parseExportArgs
(args []string)
script/ghmock/export.go:22
↓ 2 callers
Function
parseField
TODO copypasta from gh api
pkg/cmd/workflow/run/run.go:149
↓ 2 callers
Function
parseFile
(opts BrowseOptions, f string)
pkg/cmd/browse/browse.go:302
↓ 2 callers
Function
parseGitArgs
(args []string)
script/ghmock/gitcmd.go:164
↓ 2 callers
Function
parseJournalFile
(path: string)
evals/src/core/sandbox.ts:45
↓ 2 callers
Function
parseLogArgs
(args []string)
script/ghmock/log.go:21
↓ 2 callers
Function
parsePushRevision
(revParseOut []byte)
git/client.go:643
↓ 2 callers
Function
parseRemoteURLOrName
(value string)
git/client.go:1038
↓ 2 callers
Function
parseRemotes
(remotesStr []string)
git/client.go:1000
↓ 2 callers
Function
parseRepoArgs
(args []string)
script/ghmock/gitcmd.go:24
↓ 2 callers
Function
parseRunArgs
(args []string)
script/ghmock/run.go:82
↓ 2 callers
Function
parseSCPArgs
(args []string)
internal/codespaces/ssh.go:146
↓ 2 callers
Function
parseScaffoldArgs
(args []string)
script/ghmock/scaffold.go:22
↓ 2 callers
Function
parseSchemaArgs
(args []string)
script/ghmock/schemacmd.go:30
↓ 2 callers
Function
parseScriptFilter
parseScriptFilter splits a comma-separated GH_ACCEPTANCE_SCRIPT value into individual script names, trimming whitespace and ignoring empty entries.
acceptance/scriptfilter_test.go:11
↓ 2 callers
Function
parseSetArgs
(args []string)
script/ghmock/set.go:36
↓ 2 callers
Function
parseTemplate
(tmpl string)
script/ghmock/restcheck.go:58
↓ 2 callers
Function
parseTrialEvidence
(value: unknown)
evals/src/suites/events/grading/evidence.ts:33
↓ 2 callers
Function
parseWorktrees
parseWorktrees parses the output of `git worktree list --porcelain` into a slice of Worktree. Each record begins with a "worktree <path>" line followe
git/client.go:299
↓ 2 callers
Function
parseWriteArgs
(args []string)
script/ghmock/gitcmd.go:105
↓ 2 callers
Function
partitionReviewersByType
partitionReviewersByType splits reviewer identifiers into users, bots, and teams. Team identifiers are in the form "org/slug" and are returned as-is.
pkg/cmd/pr/edit/edit.go:628
↓ 2 callers
Function
persistentWait
(call: Call)
evals/src/suites/events/commands.ts:40
↓ 2 callers
Function
pinRun
(opts *PinOptions)
pkg/cmd/issue/pin/pin.go:82
↓ 2 callers
Function
plainHttpClientFunc
(ios *iostreams.IOStreams, appVersion string, invokingAgent string, telemetryDisabler ghtelemetry.Disabler)
pkg/cmd/factory/default.go:245
↓ 2 callers
Function
possibleTypeNames
(schema *ast.Schema, def *ast.Definition)
script/ghmock/graphqlcheck.go:453
↓ 2 callers
Function
prAssigneeList
(pr api.PullRequest)
pkg/cmd/pr/view/view.go:425
↓ 2 callers
Function
prLabelList
(pr api.PullRequest, cs *iostreams.ColorScheme)
pkg/cmd/pr/view/view.go:442
↓ 2 callers
Function
prProjectList
(pr api.PullRequest)
pkg/cmd/pr/view/view.go:464
↓ 2 callers
Function
prReviewerList
prReviewerList generates a reviewer list with their last state
pkg/cmd/pr/view/view.go:354
↓ 2 callers
Function
preciseAgo
(now time.Time, createdAt time.Time)
pkg/cmd/run/shared/shared.go:684
↓ 2 callers
Method
preload
preload loads both schemas before gh starts, so a first-time download doesn't happen while gh waits for a response.
script/ghmock/checker.go:102
↓ 2 callers
Function
previewNamesToMIMETypes
(names []string)
pkg/cmd/api/api.go:735
↓ 2 callers
Function
printArgs
(w io.Writer, args []string)
internal/run/run.go:90
↓ 2 callers
Function
printAuthWarnings
printAuthWarnings writes each warning recorded by authCfg to w, prefixed with a warning icon.
internal/ghcmd/cmd.go:324
← previous
next →
2,001–2,100 of 7,487, ranked by callers