MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 2 callersMethodlookupCommit
(ctx context.Context, sha, format string)
git/client.go:422
↓ 2 callersFunctionmagicFieldValue
(v string, opts *ApiOptions)
pkg/cmd/api/fields.go:160
↓ 2 callersFunctionmagicFieldValue
TODO MODIFIED copypasta from gh api
pkg/cmd/workflow/run/run.go:158
↓ 2 callersMethodmakePath
(name string)
pkg/cmd/release/download/download.go:408
↓ 2 callersFunctionmakeTestReleaseAttestation
()
pkg/cmd/attestation/api/mock_client.go:9
↓ 2 callersFunctionmalformedRequestError
malformedRequestError is used when the twirp server cannot unmarshal a request
internal/barista/observability/telemetry.twirp.go:891
↓ 2 callersFunctionmapReplyFromNode
mapReplyFromNode converts a discussionReplyNode into the domain DiscussionComment type.
pkg/cmd/discussion/client/client.go:462
↓ 2 callersFunctionmaskToken
(token string)
pkg/cmd/auth/status/status.go:423
↓ 2 callersFunctionmatchesAny
(name string, excludePatterns []string)
pkg/cmd/pr/diff/diff.go:410
↓ 2 callersFunctionmergeMethodSurvey
(p shared.Prompt, baseRepo *api.Repository)
pkg/cmd/pr/merge/merge.go:636
↓ 2 callersFunctionmightBeGHESUser
(cfg gh.Config)
internal/ghcmd/cmd.go:495
↓ 2 callersFunctionminimalNodes
minimalNodes returns count comma-separated minimal JSON discussion nodes.
pkg/cmd/discussion/client/client_test.go:61
↓ 2 callersFunctionmockIssueGet
(_ *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:1836
↓ 2 callersFunctionmockIssueNumberGet
(_ *testing.T, reg *httpmock.Registry, number int)
pkg/cmd/issue/edit/edit_test.go:1857
↓ 2 callersFunctionmockReviewerResponseForRepoWithCopilot
mockReviewerResponseForRepoWithCopilot generates a GraphQL response for SuggestedReviewerActorsForRepo tests. If copilotAvailable is true, includes Co
api/queries_pr_test.go:387
↓ 2 callersFunctionmockV2ProjectItems
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 callersFunctionmultiSelectSurvey
(p EditPrompter, message string, defaults, options []string)
pkg/cmd/pr/shared/editable.go:628
↓ 2 callersFunctionmultiSelectWithSearch
(p Prompter, prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) Mu
internal/prompter/prompter.go:372
↓ 2 callersFunctionmustParseAbsolute
(s string)
internal/safepaths/absolute_test.go:113
↓ 2 callersFunctionnamedPipeWriteError
(path string)
internal/safepaths/root.go:469
↓ 2 callersFunctionnamesPull
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 callersFunctionneedsComments
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 callersFunctionnewCmdClone
(f *cmdutil.Factory, runF func(*cloneOptions) error)
pkg/cmd/label/clone.go:28
↓ 2 callersFunctionnewCmdCreate
(f *cmdutil.Factory, runF func(*createOptions) error)
pkg/cmd/label/create.go:52
↓ 2 callersFunctionnewCmdDelete
(f *cmdutil.Factory, runF func(*deleteOptions) error)
pkg/cmd/label/delete.go:29
↓ 2 callersFunctionnewCmdEdit
(f *cmdutil.Factory, runF func(*editOptions) error)
pkg/cmd/label/edit.go:28
↓ 2 callersFunctionnewCmdList
(f *cmdutil.Factory, runF func(*listOptions) error)
pkg/cmd/label/list.go:28
↓ 2 callersFunctionnewCmdSendTelemetry
(f *cmdutil.Factory, runF func(*SendTelemetryOptions) error)
pkg/cmd/send-telemetry/send_telemetry.go:33
↓ 2 callersFunctionnewCreateCmd
(app *App)
pkg/cmd/codespace/create.go:84
↓ 2 callersFunctionnewEditCmd
(app *App)
pkg/cmd/codespace/edit.go:19
↓ 2 callersFunctionnewEnforcementCriteria
(opts *Options)
pkg/cmd/attestation/verify/policy.go:66
↓ 2 callersFunctionnewGitClient
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:297
↓ 2 callersFunctionnewGitHubVerifierWithTrustedRoot
(trustedRoot *root.TrustedRoot)
pkg/cmd/attestation/verification/sigstore.go:362
↓ 2 callersFunctionnewListCmd
(app *App)
pkg/cmd/codespace/list.go:23
↓ 2 callersFunctionnewLiveFixtureRepositoryClientWithTransport
(tsEnv testScriptEnv, transport http.RoundTripper)
acceptance/fixture_repository_test.go:40
↓ 2 callersFunctionnewProjectFromQueryBase
(source projectQueryBase)
pkg/cmd/project/shared/queries/queries.go:227
↓ 2 callersFunctionnewPublicGoodVerifierWithTrustedRoot
(trustedRoot *root.TrustedRoot)
pkg/cmd/attestation/verification/sigstore.go:385
↓ 2 callersFunctionnewRemoteNameToRepoFn
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 callersFunctionnewRequest
newRequest makes an http.Request from a client, adding common headers.
internal/barista/observability/telemetry.twirp.go:699
↓ 2 callersFunctionnewSSHCommand
newSSHCommand populates an exec.Cmd to run a command (or if blank, an interactive shell) over ssh.
internal/codespaces/ssh.go:65
↓ 2 callersFunctionnewSchemaFile
(source schemaSource, path string, data []byte)
script/ghmock/checker.go:45
↓ 2 callersFunctionnewTestGitClient
newTestGitClient returns a git.Client with a fake git path to avoid real git resolution.
pkg/cmd/skills/publish/publish_test.go:26
↓ 2 callersFunctionnewTestRepoWithMode
(t *testing.T, bare bool)
git/client_test.go:1565
↓ 2 callersFunctionnewTestVirtualTerminal
(t *testing.T)
internal/prompter/accessible_prompter_test.go:839
↓ 2 callersFunctionnewTestVirtualTerminalIOStreams
(t *testing.T, console *expect.Console)
internal/prompter/accessible_prompter_test.go:868
↓ 2 callersFunctionnewViewCmd
(app *App)
pkg/cmd/codespace/view.go:25
↓ 2 callersMethodnoVerifierSet
()
pkg/cmd/attestation/verification/sigstore.go:394
↓ 2 callersFunctionnormalizeHostname
(h string)
internal/ghrepo/repo.go:74
↓ 2 callersFunctionnormalizeToUTC
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 callersFunctionnormalizeVerboseLog
(t string)
api/http_client_test.go:659
↓ 2 callersFunctionnotFound
notFound is an error for a name that doesn't exist. It suggests close matches.
script/ghmock/schemacmd.go:621
↓ 2 callersMethodnotifyCodespaceOfClientActivity
(ctx context.Context, activity string)
internal/codespaces/rpc/invoker.go:300
↓ 2 callersFunctionobserve
(calls: Call[], value: unknown, now: number)
evals/src/core/observer.ts:6
↓ 2 callersFunctionofficialExtensionStubRun
(io *iostreams.IOStreams, p prompter.Prompter, em extensions.ExtensionManager, ext *extensions.OfficialExtensi
pkg/cmd/root/official_extension_stub.go:39
↓ 2 callersFunctionopenUserFile
(fn string, stdin io.ReadCloser)
pkg/cmd/api/api.go:644
↓ 2 callersMethodoperationLabel
()
script/ghmock/request.go:32
↓ 2 callersFunctionoperationVariables
(op *ast.OperationDefinition, raw json.RawMessage)
script/ghmock/gqlscaffold.go:72
↓ 2 callersFunctionoutputForEnvironment
(output string)
acceptance/acceptance_test.go:219
↓ 2 callersMethodpageSize
()
pkg/cmd/extension/browse/model.go:582
↓ 2 callersFunctionpaginateAttributes
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 callersFunctionparseAgentName
parseAgentName validates and returns an AgentName from a raw string. Only alphanumeric characters, hyphens, and underscores are allowed.
internal/agents/detect.go:35
↓ 2 callersFunctionparseArgs
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 callersFunctionparseBranchConfig
(branchConfigLines []string)
git/client.go:461
↓ 2 callersFunctionparseCacheID
(arg string)
pkg/cmd/cache/delete/delete.go:236
↓ 2 callersFunctionparseCloneArgs
(extraArgs []string)
git/client.go:990
↓ 2 callersFunctionparseErrorResponse
(r io.Reader, statusCode int)
pkg/cmd/api/api.go:662
↓ 2 callersFunctionparseExportArgs
(args []string)
script/ghmock/export.go:22
↓ 2 callersFunctionparseField
TODO copypasta from gh api
pkg/cmd/workflow/run/run.go:149
↓ 2 callersFunctionparseFile
(opts BrowseOptions, f string)
pkg/cmd/browse/browse.go:302
↓ 2 callersFunctionparseGitArgs
(args []string)
script/ghmock/gitcmd.go:164
↓ 2 callersFunctionparseJournalFile
(path: string)
evals/src/core/sandbox.ts:45
↓ 2 callersFunctionparseLogArgs
(args []string)
script/ghmock/log.go:21
↓ 2 callersFunctionparsePushRevision
(revParseOut []byte)
git/client.go:643
↓ 2 callersFunctionparseRemoteURLOrName
(value string)
git/client.go:1038
↓ 2 callersFunctionparseRemotes
(remotesStr []string)
git/client.go:1000
↓ 2 callersFunctionparseRepoArgs
(args []string)
script/ghmock/gitcmd.go:24
↓ 2 callersFunctionparseRunArgs
(args []string)
script/ghmock/run.go:82
↓ 2 callersFunctionparseSCPArgs
(args []string)
internal/codespaces/ssh.go:146
↓ 2 callersFunctionparseScaffoldArgs
(args []string)
script/ghmock/scaffold.go:22
↓ 2 callersFunctionparseSchemaArgs
(args []string)
script/ghmock/schemacmd.go:30
↓ 2 callersFunctionparseScriptFilter
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 callersFunctionparseSetArgs
(args []string)
script/ghmock/set.go:36
↓ 2 callersFunctionparseTemplate
(tmpl string)
script/ghmock/restcheck.go:58
↓ 2 callersFunctionparseTrialEvidence
(value: unknown)
evals/src/suites/events/grading/evidence.ts:33
↓ 2 callersFunctionparseWorktrees
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 callersFunctionparseWriteArgs
(args []string)
script/ghmock/gitcmd.go:105
↓ 2 callersFunctionpartitionReviewersByType
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 callersFunctionpersistentWait
(call: Call)
evals/src/suites/events/commands.ts:40
↓ 2 callersFunctionpinRun
(opts *PinOptions)
pkg/cmd/issue/pin/pin.go:82
↓ 2 callersFunctionplainHttpClientFunc
(ios *iostreams.IOStreams, appVersion string, invokingAgent string, telemetryDisabler ghtelemetry.Disabler)
pkg/cmd/factory/default.go:245
↓ 2 callersFunctionpossibleTypeNames
(schema *ast.Schema, def *ast.Definition)
script/ghmock/graphqlcheck.go:453
↓ 2 callersFunctionprAssigneeList
(pr api.PullRequest)
pkg/cmd/pr/view/view.go:425
↓ 2 callersFunctionprLabelList
(pr api.PullRequest, cs *iostreams.ColorScheme)
pkg/cmd/pr/view/view.go:442
↓ 2 callersFunctionprProjectList
(pr api.PullRequest)
pkg/cmd/pr/view/view.go:464
↓ 2 callersFunctionprReviewerList
prReviewerList generates a reviewer list with their last state
pkg/cmd/pr/view/view.go:354
↓ 2 callersFunctionpreciseAgo
(now time.Time, createdAt time.Time)
pkg/cmd/run/shared/shared.go:684
↓ 2 callersMethodpreload
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 callersFunctionpreviewNamesToMIMETypes
(names []string)
pkg/cmd/api/api.go:735
↓ 2 callersFunctionprintArgs
(w io.Writer, args []string)
internal/run/run.go:90
↓ 2 callersFunctionprintAuthWarnings
printAuthWarnings writes each warning recorded by authCfg to w, prefixed with a warning icon.
internal/ghcmd/cmd.go:324
← previousnext →2,001–2,100 of 7,487, ranked by callers