MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 3 callersFunctionaddQuery
(path string, params map[string]any)
pkg/cmd/api/http.go:114
↓ 3 callersMethodarguments
arguments evaluates a field's arguments, filling in defaults.
script/ghmock/gqlscaffold.go:369
↓ 3 callersFunctionattachAssetsToMarkdown
attachAssetsToMarkdown points every rewritable markdown reference to an attached file at that file's asset URL. It reports one replacement per success
internal/attachments/references.go:97
↓ 3 callersFunctionattachCmd
attachCmd builds a command shaped like the ones that take --attach.
internal/attachments/flags_test.go:19
↓ 3 callersFunctionattachments
(call: Call)
evals/src/suites/events/commands.ts:48
↓ 3 callersFunctionauthTokenWriteable
(src string)
pkg/cmd/auth/status/status.go:532
↓ 3 callersFunctionbaseServicePath
baseServicePath composes the path prefix for the service (without <Method>). e.g.: baseServicePath("/twirp", "my.pkg", "MyService") returns => "/twi
internal/barista/observability/telemetry.twirp.go:656
↓ 3 callersMethodbranchWithGitStatus
branchWithGitStatus returns the branch with a star if the branch is currently being worked on.
pkg/cmd/codespace/common.go:216
↓ 3 callersMethodbuildSelectForm
(prompt, defaultValue string, options []string)
internal/prompter/huh_prompter.go:41
↓ 3 callersFunctioncallError
Call twirp.ServerHooks.Error if the hook is available
internal/barista/observability/telemetry.twirp.go:1064
↓ 3 callersFunctioncallResponseSent
Call twirp.ServerHooks.ResponseSent if the hook is available
internal/barista/observability/telemetry.twirp.go:1056
↓ 3 callersMethodcheckRequest
checkRequest checks a request gh made and the response ghmock gave. resp is nil when no response was stored. Off-schema responses aren't checked, but
script/ghmock/checker.go:151
↓ 3 callersFunctioncheckValidExtension
(rootCmd *cobra.Command, m extensions.ExtensionManager, extName, extOwner string)
pkg/cmd/extension/command.go:694
↓ 3 callersFunctionchooseCodespaceFromList
chooseCodespaceFromList returns the codespace that the user has interactively selected from the list, or an error if there are no codespaces.
pkg/cmd/codespace/common.go:93
↓ 3 callersFunctioncleanupSuite
( suite: Suite, journal: Journal, journalPath: string, credentials: CleanupCredentials, )
evals/src/core/suite.ts:88
↓ 3 callersFunctioncleanupTrial
(actions: CleanupActions, primary: unknown, journalPath: string)
evals/src/core/trial-cleanup.ts:14
↓ 3 callersFunctioncloneTime
cloneTime returns a pointer to a copy of t, or nil when t is nil, so callers moving timestamps between the record and gh.Credential never share the un
internal/config/refreshable.go:595
↓ 3 callersMethodclose
close stops the server and returns the requests it saw, in order. It waits for TLS handshakes still under way, so a rejected certificate is logged.
script/ghmock/server.go:96
↓ 3 callersFunctioncmdExport
cmdExport writes everything needed to check a result to a folder or archive: each run's command, output and report, every request with the response gh
script/ghmock/export.go:47
↓ 3 callersFunctioncmdGit
(args []string, stdout, stderr io.Writer)
script/ghmock/gitcmd.go:238
↓ 3 callersFunctioncmdLog
(args []string, stdout io.Writer)
script/ghmock/log.go:37
↓ 3 callersFunctioncmdReset
(args []string, stdout io.Writer)
script/ghmock/log.go:155
↓ 3 callersFunctioncmdSet
(args []string, stdout, stderr io.Writer)
script/ghmock/set.go:152
↓ 3 callersFunctioncollectWorkflowRunDiagnostics
(exec workflowRunDiagnosticExecutor, runListArgs []string)
acceptance/acceptance_test.go:94
↓ 3 callersFunctionconfigFromEnv
configFromEnv builds a DebugConfig from the environment, panicking on invalid values. It is not build-gated so its parsing is tested in regular builds
internal/debug/config.go:32
↓ 3 callersFunctioncontentsAPIPath
contentsAPIPath builds the Contents API path for a path and optional ref, relative to the host's REST endpoint.
pkg/cmd/repo/read-file/http.go:190
↓ 3 callersFunctioncopilotInstallDir
()
pkg/cmd/copilot/copilot.go:199
↓ 3 callersFunctioncopyConfigTree
copyConfigTree copies fixture bytes without following contained symlinks. Each destination is new and private; no caller configuration is copied impli
script/ghmock/configfixture.go:29
↓ 3 callersFunctioncreateFakeCreateEndpointServer
(t *testing.T, wantStatus int)
internal/codespaces/api/api_test.go:75
↓ 3 callersMethodcreateJSONLinesFilePath
(artifact string)
pkg/cmd/attestation/download/metadata.go:24
↓ 3 callersFunctioncreateRelease
(httpClient *http.Client, repo ghrepo.Interface, params map[string]any)
pkg/cmd/release/create/http.go:140
↓ 3 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/release/create/create.go:231
↓ 3 callersFunctioncreateRun
(ctx context.Context, opts *CreateOptions)
pkg/cmd/event/subscription/create/create.go:84
↓ 3 callersFunctioncreateZipArchive
(t *testing.T, files map[string]string)
pkg/cmd/run/view/logs_test.go:526
↓ 3 callersFunctiondecodeBody
decodeBody decodes a JSON body, keeping numbers exact.
script/ghmock/checker.go:232
↓ 3 callersFunctiondefaultPromptConfig
survey doesn't expose this
pkg/surveyext/editor_test.go:151
↓ 3 callersFunctiondeprecationReason
(dirs ast.DirectiveList)
script/ghmock/introspection.go:397
↓ 3 callersFunctiondetectFrontmatter
(c []byte)
pkg/githubtemplate/github_template.go:130
↓ 3 callersMethodeditDiscussionLabels
editDiscussionLabels adds and removes labels on a discussion. Removals are applied before additions. Either slice may be nil or empty to skip that ste
pkg/cmd/discussion/client/client.go:898
↓ 3 callersFunctioneditRelease
(httpClient *http.Client, repo ghrepo.Interface, releaseID int64, params map[string]any)
pkg/cmd/release/edit/http.go:17
↓ 3 callersFunctioneditRun
(ctx context.Context, opts *EditOptions)
pkg/cmd/repo/edit/edit.go:235
↓ 3 callersFunctioneditRun
(opts *EditOptions)
pkg/cmd/pr/edit/edit.go:285
↓ 3 callersFunctioneffectiveAgentBudget
( override: string | undefined, configured: number | undefined, timeout: number, )
evals/src/core/executor.ts:33
↓ 3 callersFunctionevidence
()
evals/src/graders.test.ts:39
↓ 3 callersFunctionexampleAnswerableDiscussion
()
pkg/cmd/discussion/view/view_test.go:1181
↓ 3 callersFunctionexecutable
Finds the location of the executable for the current process as it's found in PATH, respecting symlinks. If the process couldn't determine its locatio
internal/ghcmd/cmd.go:457
↓ 3 callersMethodexport
()
pkg/cmd/issue/artifact/client/types.go:163
↓ 3 callersFunctionfallbackConfig
()
internal/config/config.go:779
↓ 3 callersMethodfetchCodespaces
(ctx context.Context)
pkg/cmd/codespace/codespace_selector.go:83
↓ 3 callersFunctionfetchReleasePath
(ctx context.Context, httpClient *http.Client, host string, path safeurl.SafeURL)
pkg/cmd/release/shared/fetch.go:272
↓ 3 callersFunctionfieldByName
(v reflect.Value, field string)
pkg/cmdutil/json_flags.go:325
↓ 3 callersFunctionfieldByName
(v reflect.Value, field string)
api/export_pr.go:252
↓ 3 callersFunctionfileNames
(files []os.DirEntry)
pkg/cmd/extension/manager_test.go:1507
↓ 3 callersFunctionfile_observability_v1_telemetry_proto_rawDescGZIP
()
internal/barista/observability/telemetry.pb.go:239
↓ 3 callersMethodfilepath
(key string)
pkg/cmd/run/view/view.go:76
↓ 3 callersMethodfillObject
fillObject adds the fields that sel asks for and obj lacks. With record set, it remembers where it added them, so they can be reported.
script/ghmock/gqlscaffold.go:97
↓ 3 callersFunctionfillPlaceholders
fillPlaceholders replaces placeholders with values from the current repository
pkg/cmd/api/api.go:585
↓ 3 callersFunctionfindNextPage
(linkValue string)
internal/codespaces/api/api.go:476
↓ 3 callersFunctionformat
(version, buildDate string, debugBuild bool)
pkg/cmd/version/version.go:32
↓ 3 callersFunctionformatLinkedIssueRef
formatLinkedIssueRef formats an issue reference as owner/repo#N.
pkg/cmd/issue/view/view.go:364
↓ 3 callersFunctionformatPlanHosts
(hosts []*registry.AgentHost)
pkg/cmd/skills/install/install.go:1030
↓ 3 callersFunctionformatStars
formatStars formats a star count for display (e.g. 1700 > "1.7k"). TODO kw: Could be swapped for go-humanize.
pkg/cmd/skills/search/search.go:878
↓ 3 callersFunctionfriendlyDir
(dir string)
pkg/cmd/skills/install/install.go:1126
↓ 3 callersFunctiongenerateReleaseNotes
(httpClient *http.Client, repo ghrepo.Interface, tagName, target, previousTagName string)
pkg/cmd/release/create/http.go:75
↓ 3 callersFunctiongetBody
(opts *SetOptions)
pkg/cmd/variable/set/set.go:265
↓ 3 callersFunctiongetBody
(opts *SetOptions)
pkg/cmd/secret/set/set.go:413
↓ 3 callersFunctiongetJobNameForLogFilename
(name string)
pkg/cmd/run/view/logs.go:244
↓ 3 callersFunctiongetStateEntry
(stateFilePath string)
internal/update/update.go:149
↓ 3 callersFunctiongh
evals/src/smoke.test.ts:83
↓ 3 callersFunctionghIds
(s *[]string)
pkg/cmd/pr/shared/editable_http.go:209
↓ 3 callersFunctiongitWorkDir
(world, in string)
script/ghmock/gitfixture.go:86
↓ 3 callersMethodgreeting
(repo: string, ref: string)
evals/src/suites/events/github.ts:85
↓ 3 callersFunctionguessGistName
(files map[string]*shared.GistFile)
pkg/cmd/gist/create/create.go:242
↓ 3 callersFunctionhandleError
(err error)
pkg/cmd/project/shared/queries/queries.go:1703
↓ 3 callersFunctionhelperCategory
(helper gitcredentials.Helper)
pkg/cmd/auth/shared/git_credential.go:164
↓ 3 callersFunctionhideDirectory
(text, scratch, replacement string)
script/ghmock/run.go:509
↓ 3 callersFunctionhighlightMatch
(s string, filter *regexp.Regexp, matched *bool, color, highlight func(string) string)
pkg/cmd/gist/list/list.go:272
↓ 3 callersFunctionhttpError
(status int, message string, headers http.Header)
pkg/cmd/event/listen/listen_test.go:171
↓ 3 callersMethodhydrateSessionPullRequestsAndUsers
hydrateSessionPullRequestsAndUsers hydrates pull request and user information in sessions
pkg/cmd/agent-task/capi/sessions.go:426
↓ 3 callersMethodinstallBin
(repo ghrepo.Interface, target string)
pkg/cmd/extension/manager.go:283
↓ 3 callersFunctioninteractiveRepoInfo
name, description, and visibility
pkg/cmd/repo/create/create.go:895
↓ 3 callersFunctionisA
isA reports whether an object of type concrete is also of type name, which can be the same type, an interface it implements or a union it belongs to.
script/ghmock/graphqlcheck.go:300
↓ 3 callersFunctionisEscaped
isEscaped reports whether the byte at i is preceded by an odd number of backslashes, which is what makes it a literal rather than markup.
internal/attachments/references.go:733
↓ 3 callersFunctionisGarage
(h string)
internal/ghinstance/host.go:32
↓ 3 callersFunctionisKeyNotFound
(err error)
internal/config/refreshable.go:640
↓ 3 callersFunctionisObjectSchema
(s *openapi3.Schema)
script/ghmock/restscaffold.go:386
↓ 3 callersFunctionisSpace
isSpace reports whether c is ASCII whitespace, which is what ends an unbracketed markdown destination.
internal/attachments/references.go:750
↓ 3 callersFunctionjsonExporter
(fields ...string)
pkg/cmd/discussion/view/view_test.go:1237
↓ 3 callersFunctionjsonMedia
jsonMedia picks the JSON content of a documented response.
script/ghmock/restcheck.go:216
↓ 3 callersFunctionjsonText
(v any)
script/ghmock/graphqlcheck.go:469
↓ 3 callersFunctionlistIssues
(client *api.Client, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:15
↓ 3 callersFunctionlistLabels
listLabels lists the labels in the given repo. Pass -1 for limit to list all labels; otherwise, only that number of labels is returned for any number
pkg/cmd/label/http.go:68
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/issue/list/list.go:134
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/variable/list/list.go:79
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/secret/list/list.go:107
↓ 3 callersFunctionlistRun
(ctx context.Context, opts *ListOptions)
pkg/cmd/event/subscription/list/list.go:68
↓ 3 callersMethodlistWidth
()
pkg/cmd/extension/browse/model.go:565
↓ 3 callersMethodlisten
(path: string)
evals/src/core/observer.ts:80
↓ 3 callersFunctionloadBundlesFromJSONLinesFile
(path string)
pkg/cmd/attestation/verification/attestation.go:57
↓ 3 callersMethodloadSelectedReadme
()
pkg/cmd/extension/browse/model.go:606
← previousnext →1,101–1,200 of 7,487, ranked by callers