MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 4 callersMethodappendMetadata
Appends the authentication token to the gRPC context
internal/codespaces/rpc/invoker.go:164
↓ 4 callersMethodask
(q survey.Prompt, response any, opts ...survey.AskOpt)
internal/prompter/prompter.go:578
↓ 4 callersFunctionblockRange
blockRange returns the byte range a block covers in the source.
internal/attachments/references.go:496
↓ 4 callersMethodbodyBytes
()
script/ghmock/store.go:27
↓ 4 callersMethodbuildMultiSelectWithSearchForm
(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSea
internal/prompter/huh_prompter.go:109
↓ 4 callersMethodcheck
(e loggedRequest, resp *response, validateVariables bool)
script/ghmock/checker.go:160
↓ 4 callersMethodcheck
Throws if the stream has printed malformed output, including output after the review that was awaited.
evals/src/suites/events/smoke-protocol.ts:120
↓ 4 callersMethodchooseVerifier
(issuer string)
pkg/cmd/attestation/verification/sigstore.go:206
↓ 4 callersMethodcleanExtensionUpdateDir
cleanExtensionUpdateDir deletes the extension-specific directory containing metadata used in checking for updates. Because extension names are not uni
pkg/cmd/extension/manager.go:878
↓ 4 callersMethodclone
()
pkg/cmd/pr/shared/editable.go:323
↓ 4 callersFunctioncloneEvent
(event ghtelemetry.Event)
internal/telemetry/telemetry.go:399
↓ 4 callersFunctioncmdRepo
(args []string, stdout io.Writer)
script/ghmock/gitcmd.go:43
↓ 4 callersMethodcollect
collect groups the fields a selection asks for on an object of type concrete by response key, in query order. Fields that share a key are merged into
script/ghmock/gqlscaffold.go:314
↓ 4 callersFunctioncomparableDestination
comparableDestination reduces a destination goldmark reported to the single form used to decide whether a run of source is the node it came from. Perc
internal/attachments/references.go:442
↓ 4 callersFunctioncontainCommand
containCommand gives a command and its Git children one process group so cancelling a run does not leave a transport or pack process behind. A PTY cre
script/ghmock/process_unix.go:16
↓ 4 callersFunctionconvertIntToUint16
convertIntToUint16 converts the given int to a uint16.
internal/codespaces/portforwarder/port_forwarder.go:415
↓ 4 callersFunctioncopyGitTree
copyGitTree preserves the index, untracked files and worktree metadata, which a clone would lose. It copies file contents, never hardlinks. Only Git's
script/ghmock/gitfixture.go:123
↓ 4 callersFunctioncreateCommand
(t *testing.T, exitStatus int, stdout, stderr string)
git/client_test.go:1720
↓ 4 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/issue/create/create.go:200
↓ 4 callersFunctiondeduplicateResults
deduplicateResults extracts unique (repo, namespace, skill name) triples from code search hits.
pkg/cmd/skills/search/search.go:780
↓ 4 callersFunctiondeleteRepo
(httpClient *http.Client, repo ghrepo.Interface)
pkg/cmd/repo/delete/http.go:46
↓ 4 callersFunctiondescribeSchemaType
describeSchemaType names the JSON a schema allows, such as "string or null" or "object (simple-user)".
script/ghmock/schemacmd.go:438
↓ 4 callersFunctiondigestContainerImageArtifact
(url string, client oci.Client)
pkg/cmd/attestation/artifact/image.go:10
↓ 4 callersFunctiondown
()
internal/prompter/huh_prompter_test.go:81
↓ 4 callersFunctiondownloadRun
(opts *DownloadOptions)
pkg/cmd/release/download/download.go:144
↓ 4 callersMethodensureGitFixture
()
script/ghmock/gitfixture.go:55
↓ 4 callersFunctionfetchLatestRelease
fetchLatestRelease finds the latest published release for a repository.
pkg/cmd/extension/http.go:113
↓ 4 callersFunctionfieldByName
(v reflect.Value, field string)
pkg/search/result.go:449
↓ 4 callersFunctionfile_codespace_codespace_host_service_v1_proto_rawDescGZIP
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:290
↓ 4 callersFunctionformatValuesForUsageDocs
(values []string)
pkg/cmdutil/flags.go:68
↓ 4 callersFunctiongetAttestations
(o *Options, a artifact.DigestedArtifact)
pkg/cmd/attestation/verify/attestation.go:13
↓ 4 callersFunctiongetPubKey
(client *api.Client, host string, path safeurl.SafeURL)
pkg/cmd/secret/set/http.go:34
↓ 4 callersMethodgetRepositoryMeta
getRepositoryMeta fetches the node ID, database ID, and discussion-enabled flag for a repository.
pkg/cmd/discussion/client/client.go:829
↓ 4 callersFunctiongetVariables
(client *http.Client, host string, u *safeurl.MutableSafeURL)
pkg/cmd/variable/list/list.go:237
↓ 4 callersFunctionghEnv
ghEnv builds gh's whole environment from scratch, so the caller's tokens, config and git settings never reach it. Every run gets fresh directories, so
script/ghmock/run.go:525
↓ 4 callersFunctiongitEnvironment
(env []string, scratch, world string)
script/ghmock/gitcmd.go:316
↓ 4 callersFunctiongitForTest
(t *testing.T, args ...string)
script/ghmock/gitcmd_test.go:367
↓ 4 callersFunctiongitRepoPath
(world, host, repo string)
script/ghmock/gitfixture.go:44
↓ 4 callersFunctionhttpResponseWithHeader
(status int, req *http.Request, body io.Reader, header http.Header)
pkg/httpmock/stub.go:274
↓ 4 callersFunctionindentProblems
indentProblems lists problems one per line. With a limit above zero, it shows at most that many and points to the log for the rest.
script/ghmock/report.go:183
↓ 4 callersMethodinfof
(format string, args ...any)
pkg/cmd/pr/merge/merge.go:559
↓ 4 callersFunctioninitialize
initialize generate slices over a range for test scenarios using the provided initializer.
pkg/search/searcher_test.go:1380
↓ 4 callersFunctionisAPIHost
isAPIHost reports whether gh sends REST and GraphQL calls to hostname, for github.com or, with --localhost, for github.localhost.
script/ghmock/request.go:47
↓ 4 callersFunctionisPathRedirect
(_ *Root, _ *os.Root, _ string, info os.FileInfo)
internal/safepaths/link_other.go:7
↓ 4 callersFunctionisolatedEnvironment
(home: string, path: string, modelToken: string)
evals/src/core/io.ts:40
↓ 4 callersFunctionissueList
(client *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/list.go:232
↓ 4 callersFunctionkeyFor
(hostname string)
pkg/cmd/auth/shared/gitcredentials/helper_config.go:114
↓ 4 callersFunctionlistPullRequests
(httpClient *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit i
pkg/cmd/pr/list/http.go:17
↓ 4 callersFunctionlistenRun
(ctx context.Context, opts *ListenOptions)
pkg/cmd/event/listen/listen.go:219
↓ 4 callersMethodloadManifest
()
pkg/cmd/extension/extension.go:224
↓ 4 callersMethodlocalPath
(name string)
internal/safepaths/root.go:268
↓ 4 callersMethodlog
(text: string)
evals/src/core/executor.ts:118
↓ 4 callersFunctionlogin
(t *testing.T, c gh.Config, hostname, username, token, gitProtocol string, secureStorage bool)
pkg/cmd/auth/token/token_test.go:488
↓ 4 callersFunctionloginRun
(opts *LoginOptions)
pkg/cmd/auth/login/login.go:200
↓ 4 callersFunctionmergeSelections
(fields []*ast.Field)
script/ghmock/gqlscaffold.go:388
↓ 4 callersFunctionnewAttachableMarkdown
newAttachableMarkdown scans markdown for the files it references, and refuses references that no asset URL can fix.
internal/attachments/references.go:70
↓ 4 callersFunctionnewCertAuthority
()
script/ghmock/tls.go:31
↓ 4 callersFunctionnewContentWriter
newContentWriter returns the writer to wire up as ContentOut. When sanitize is true it inserts an asciisanitizer in front of the underlying writer; ot
pkg/iostreams/iostreams.go:504
↓ 4 callersFunctionnewTestUploader
newTestUploader builds an uploader whose requests land in reg.
internal/attachments/client_test.go:45
↓ 4 callersFunctionnextPage
nextPage extracts the next page number from an API response's link header. if the provided link header is empty or there is no next page, zero is retu
pkg/search/searcher.go:349
↓ 4 callersFunctionobject
(value: unknown)
evals/src/suites/events/grading/observations.ts:7
↓ 4 callersMethodonce
(method: string, path: string, body?: unknown)
evals/src/core/github.ts:85
↓ 4 callersFunctionparseFields
(opts *ApiOptions)
pkg/cmd/api/fields.go:16
↓ 4 callersFunctionparseGitRepo
(name string)
script/ghmock/gitfixture.go:26
↓ 4 callersFunctionparseJournal
(value: unknown)
evals/src/core/sandbox.ts:35
↓ 4 callersMethodpath
path returns where an artifact's file goes: in Dir under its file name, or at Output. Like gh repo read-file --output, an existing directory, or a pat
pkg/cmd/issue/artifact/download/download.go:358
↓ 4 callersFunctionplural
(n int, noun string)
script/ghmock/report.go:271
↓ 4 callersFunctionprFromFixtures
hack for compatibility with old JSON fixture files
pkg/cmd/pr/view/view_test.go:213
↓ 4 callersFunctionprocessExitCode
(err error)
script/ghmock/gittransport.go:237
↓ 4 callersMethodproxyURL
proxyURL is the value gh gets for HTTP_PROXY and HTTPS_PROXY.
script/ghmock/server.go:90
↓ 4 callersFunctionpublishRun
(opts *PublishOptions)
pkg/cmd/skills/publish/publish.go:169
↓ 4 callersMethodpull
(repo: string, number: number)
evals/src/core/github.ts:109
↓ 4 callersFunctionputSecret
(client *api.Client, host string, path safeurl.SafeURL, payload any)
pkg/cmd/secret/set/http.go:75
↓ 4 callersMethodqualifiedName
qualifiedName returns the namespace-qualified skill name (e.g. "author/skill") or just the skill name if there is no namespace.
pkg/cmd/skills/search/search.go:178
↓ 4 callersFunctionquote
(s string)
pkg/search/query.go:286
↓ 4 callersFunctionrawBodySummary
(body []byte)
script/ghmock/log.go:151
↓ 4 callersMethodreadmeWidth
()
pkg/cmd/extension/browse/model.go:572
↓ 4 callersMethodrecord
(e loggedRequest)
script/ghmock/server.go:121
↓ 4 callersFunctionrecordCommandArgs
(t *testing.T, gotArgs *[]string)
git/client_test.go:1734
↓ 4 callersMethodreplace
(handle string)
pkg/cmd/pr/shared/params.go:354
↓ 4 callersFunctionrepoCreate
repoCreate creates a new GitHub repository
pkg/cmd/repo/create/http.go:77
↓ 4 callersFunctionrepoMetaResp
(id string, discussionsEnabled bool)
pkg/cmd/discussion/client/client_test.go:2343
↓ 4 callersFunctionrequireKeyWithValue
(t *testing.T, cfg *config.Config, keys []string, value string)
internal/config/migration/multi_account_test.go:234
↓ 4 callersFunctionrequiresUserCapabilityForScript
(file string)
acceptance/user_capability_test.go:43
↓ 4 callersFunctionretryAfter
retryAfter returns the delay requested by the Retry-After header of an HTTP error, or zero. The header holds either a number of seconds or an HTTP dat
pkg/cmd/event/listen/listen.go:529
↓ 4 callersFunctionrunCloneCommandWithConfig
(httpClient *http.Client, cfg gh.Config, cli string)
pkg/cmd/repo/clone/clone_test.go:118
↓ 4 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/reopen/reopen_test.go:27
↓ 4 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/reopen/reopen_test.go:20
↓ 4 callersFunctionrunCommand
(rt http.RoundTripper, prompter prompter.Prompter, isTTY bool, cli string)
pkg/cmd/pr/review/review_test.go:169
↓ 4 callersFunctionrunMarkTemplate
(config markTemplateConfig)
pkg/cmd/project/mark-template/mark_template.go:89
↓ 4 callersFunctionrunSendTelemetry
(ctx context.Context, opts *SendTelemetryOptions)
pkg/cmd/send-telemetry/send_telemetry.go:76
↓ 4 callersMethodsearch
search makes a single-page REST search request for code, commits, issues, prs, or repos, and returns the link header from response for further paginat
pkg/search/searcher.go:207
↓ 4 callersFunctionsearchRun
(opts *SearchOptions)
pkg/cmd/skills/search/search.go:207
↓ 4 callersFunctionserverHostname
serverHostname returns the hostname of a test server URL, so config can be keyed by host, as production config is, rather than host:port.
api/http_client_test.go:424
↓ 4 callersFunctionsetRefreshableKeyring
(t *testing.T, hostname, username string, credential gh.Credential)
internal/config/refreshable_test.go:30
↓ 4 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/variable/set/set.go:143
↓ 4 callersFunctionshellQuote
(s string)
script/ghmock/run.go:271
↓ 4 callersFunctionshortenQuery
(q string)
api/query_builder.go:19
↓ 4 callersFunctionsleep
sleep waits for d plus up to 50% jitter, so clients told to reconnect at the same time do not retry in lockstep.
pkg/cmd/event/listen/listen.go:583
↓ 4 callersFunctionstubGitRemote
stubGitRemote registers CommandStubber stubs for git remote detection.
pkg/cmd/skills/publish/publish_test.go:31
← previousnext →801–900 of 7,487, ranked by callers