MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 2 callersMethodbuildMarkdownEditorForm
(prompt string, blankAllowed bool)
internal/prompter/huh_prompter.go:251
↓ 2 callersMethodbuildMultiSelectForm
(prompt string, defaults []string, options []string)
internal/prompter/huh_prompter.go:73
↓ 2 callersMethodbuildPasswordForm
(prompt string)
internal/prompter/huh_prompter.go:142
↓ 2 callersFunctionbuildPolicy
(t *testing.T, artifact artifact.DigestedArtifact)
pkg/cmd/attestation/verification/sigstore_integration_test.go:181
↓ 2 callersFunctionbuildTree
buildTree constructs a tree structure from flat file paths.
pkg/cmd/skills/preview/preview.go:501
↓ 2 callersFunctionbuiltinSkillNames
()
evals/src/core/io.ts:22
↓ 2 callersMethodcachePath
()
script/ghmock/schemafiles.go:88
↓ 2 callersFunctioncallClientError
(ctx context.Context, h *twirp.ClientHooks, err twirp.Error)
internal/barista/observability/telemetry.twirp.go:1085
↓ 2 callersFunctioncallClientRequestPrepared
(ctx context.Context, h *twirp.ClientHooks, req *http.Request)
internal/barista/observability/telemetry.twirp.go:1078
↓ 2 callersFunctioncallClientResponseReceived
(ctx context.Context, h *twirp.ClientHooks)
internal/barista/observability/telemetry.twirp.go:1071
↓ 2 callersFunctioncallRequestRouted
Call twirp.ServerHooks.RequestRouted if the hook is available
internal/barista/observability/telemetry.twirp.go:1040
↓ 2 callersFunctioncallResponsePrepared
Call twirp.ServerHooks.ResponsePrepared if the hook is available
internal/barista/observability/telemetry.twirp.go:1048
↓ 2 callersFunctioncamelCase
camelCase converts a string to camelCase, which is useful for turning Go field names to JSON keys.
pkg/cmd/project/shared/queries/queries.go:1830
↓ 2 callersFunctioncamelToKebab
CamelToKebab returns a copy of the string s that is converted from camel case form to '-' separated form.
pkg/search/query.go:354
↓ 2 callersFunctionchangedFilesNames
(w io.Writer, r io.Reader)
pkg/cmd/pr/diff/diff.go:319
↓ 2 callersFunctionchangelogURL
(version string)
pkg/cmd/version/version.go:48
↓ 2 callersMethodcheck
(fp string)
pkg/cmd/release/download/download.go:439
↓ 2 callersFunctioncheckGraphQLQuery
checkGraphQLQuery parses gh's query and validates it against the schema. It returns a usable operation even when validation finds non-cyclic problems,
script/ghmock/graphqlcheck.go:30
↓ 2 callersFunctioncheckHost
checkHost rejects a host that cannot serve the upload endpoint. IsEnterprise is false for ghe.com tenants, so data residency keeps working.
internal/attachments/client.go:59
↓ 2 callersFunctioncheckMaxSize
checkMaxSize rejects a file over the limit for its kind. The limit is inclusive, so the message says at most rather than under.
internal/attachments/userasset.go:162
↓ 2 callersMethodcheckObject
(path string, obj map[string]any, def *ast.Definition, sel ast.SelectionSet, required bool)
script/ghmock/graphqlcheck.go:316
↓ 2 callersFunctioncheckParseResult
(t *testing.T, tcase parseTestCase, gotArgs, gotCmd []string, gotErr error)
internal/codespaces/ssh_test.go:126
↓ 2 callersMethodcheckResponse
Response-only saves reconstruct query text, not the original variable payload.
script/ghmock/checker.go:156
↓ 2 callersFunctioncheckRun
(opts *CheckOptions)
pkg/cmd/ruleset/check/check.go:105
↓ 2 callersFunctioncheckTraversal
checkTraversal returns an error if any component is exactly "..". Such a component survives percent-encoding as a real path segment and would traverse
internal/safeurl/safeurl.go:75
↓ 2 callersFunctioncheckoutRun
(opts *CheckoutOptions)
pkg/cmd/pr/checkout/checkout.go:112
↓ 2 callersFunctionchecksRun
(opts *ChecksOptions)
pkg/cmd/pr/checks/checks.go:148
↓ 2 callersFunctionchecksRunWebMode
(opts *ChecksOptions)
pkg/cmd/pr/checks/checks.go:128
↓ 2 callersMethodchooseCodespace
(ctx context.Context, codespaces []*api.Codespace)
pkg/cmd/codespace/codespace_selector.go:119
↓ 2 callersFunctionclassifyWindowsPathRedirect
(info os.FileInfo, readlink func() error)
internal/safepaths/link_windows.go:22
↓ 2 callersMethodcleanup
* Removes every live resource the journal records, including the sandbox repository. Suites that create nothing * beyond the sandbox can omit it; `
evals/src/core/suite.ts:84
↓ 2 callersFunctioncleanupSandbox
( github: GitHub, journal: Journal, journalPath: string, beforeDelete?: () => Promise<void>, )
evals/src/core/sandbox.ts:88
↓ 2 callersFunctionclearCacheRun
(opts *ClearCacheOptions)
pkg/cmd/config/clear-cache/clear_cache.go:44
↓ 2 callersFunctionclearConfigEnv
clearConfigEnv unsets the debug variables for the test, so cases expecting no override are not affected by the environment running the tests. t.Setenv
internal/debug/config_test.go:104
↓ 2 callersFunctioncloneJSON
(v any)
script/ghmock/restscaffold.go:360
↓ 2 callersFunctioncloneRun
(opts *cloneOptions)
pkg/cmd/label/clone.go:76
↓ 2 callersFunctioncloneWithRetry
(opts *CreateOptions, remoteURL, branch string)
pkg/cmd/repo/create/create.go:710
↓ 2 callersFunctioncloseRun
(opts *CloseOptions)
pkg/cmd/issue/close/close.go:91
↓ 2 callersFunctioncmdManualPath
(c *cobra.Command)
internal/docs/markdown.go:212
↓ 2 callersFunctioncmdScaffold
(args []string, stdout, stderr io.Writer)
script/ghmock/scaffold.go:47
↓ 2 callersFunctioncmdSchema
(args []string, stdout, stderr io.Writer)
script/ghmock/schemacmd.go:60
↓ 2 callersFunctioncmdSchemas
cmdSchemas runs ghmock schemas update, which downloads both schema files again, to the files ghmock uses.
script/ghmock/schemacmd.go:687
↓ 2 callersFunctioncodeRun
(opts *CodeOptions)
pkg/cmd/search/code/code.go:113
↓ 2 callersMethodcollectFields
collectFields lists the fields a selection set asks for on an object of type concrete. concrete is nil when the object's type isn't known, which happe
script/ghmock/graphqlcheck.go:231
↓ 2 callersFunctioncolorDiffLines
(w io.Writer, r io.Reader)
pkg/cmd/pr/diff/diff.go:247
↓ 2 callersFunctioncommentRun
(opts *CommentOptions)
pkg/cmd/discussion/comment/comment.go:142
↓ 2 callersFunctioncommitsRun
(opts *CommitsOptions)
pkg/cmd/search/commits/commits.go:128
↓ 2 callersMethodcompleteLogin
completeLogin sets the host git protocol, ensures the user entry is persisted, and activates the user. It is shared by Login and LoginRefreshable once
internal/config/config.go:572
↓ 2 callersFunctionconfigWithTokenRefresher
configWithTokenRefresher returns a config accessor that injects the OAuth token refresher into the AuthConfig the first time the configuration is reso
pkg/cmd/factory/default.go:283
↓ 2 callersFunctionconfigureStoreCredentialHelper
(t *testing.T)
pkg/cmd/auth/shared/gitcredentials/updater_test.go:17
↓ 2 callersFunctionconfirmSubmission
(p Prompt, allowPreview, allowMetadata, allowDraft, isDraft bool)
pkg/cmd/pr/shared/survey.go:55
↓ 2 callersFunctioncontainsCommit
(workDir: string, env: NodeJS.ProcessEnv, sha: string)
evals/src/core/io.ts:68
↓ 2 callersFunctioncontamination
(value: unknown, hiddenPaths: string[])
evals/src/core/observer.ts:165
↓ 2 callersFunctioncontent
(embedFS fs.ReadFileFS, rootDir string)
internal/licenses/licenses.go:17
↓ 2 callersMethodcontentType
()
script/ghmock/store.go:34
↓ 2 callersFunctioncopilotBinaryPath
()
pkg/cmd/copilot/copilot.go:203
↓ 2 callersFunctioncopilotReviewer
( createClient: (options: CopilotClientOptions) => ReviewClient = options => new CopilotClient(options), )
evals/src/graders/copilot-review.ts:17
↓ 2 callersFunctioncouldBeOwner
couldBeOwner returns true if s looks like a valid GitHub username/org. GitHub usernames: 1-39 chars, alphanumeric or hyphen, no leading/trailing hyphe
pkg/cmd/skills/search/search.go:682
↓ 2 callersMethodcreate
(name string)
acceptance/fixture_repository_test.go:27
↓ 2 callersFunctioncreateFakeListEndpointServer
(t *testing.T, initialTotal int, finalTotal int)
internal/codespaces/api/api_test.go:30
↓ 2 callersFunctioncreateGist
(client *http.Client, hostname, description string, public bool, files map[string]*shared.GistFile)
pkg/cmd/gist/create/create.go:261
↓ 2 callersMethodcreateJSONLinesFileName
(artifact string)
pkg/cmd/attestation/download/metadata.go:32
↓ 2 callersFunctioncreateLabel
(client *http.Client, repo ghrepo.Interface, opts *createOptions)
pkg/cmd/label/create.go:129
↓ 2 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/discussion/create/create.go:98
↓ 2 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/agent-task/create/create.go:123
↓ 2 callersFunctioncreateRun
(opts *createOptions)
pkg/cmd/label/create.go:94
↓ 2 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/issue/artifact/create/create.go:285
↓ 2 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/gist/create/create.go:107
↓ 2 callersFunctioncreateRun
(opts *createOptions)
pkg/cmd/repo/autolink/create/create.go:93
↓ 2 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/repo/create/create.go:264
↓ 2 callersMethodcreateSession
(config: SessionConfig)
evals/src/graders/copilot-review.ts:12
↓ 2 callersFunctioncreateTarGzBuffer
createTarGzBuffer creates a tar.gz archive in memory with the given files.
pkg/cmd/copilot/copilot_test.go:174
↓ 2 callersFunctioncreateZipBuffer
createZipBuffer creates a zip archive in memory with the given files.
pkg/cmd/copilot/copilot_test.go:197
↓ 2 callersFunctioncreateZipReader
(t *testing.T, files map[string]string)
pkg/cmd/run/view/logs_test.go:517
↓ 2 callersMethodcredential
credential projects the stored record onto the universal gh.Credential shape, tagging it with the given source (the access token becomes Token). Refre
internal/config/refreshable.go:741
↓ 2 callersFunctioncredentialFromRefreshable
credentialFromRefreshable projects a renewed RefreshableCredential onto the universal gh.Credential shape, tagging it with the given source. Timestamp
internal/config/refreshable.go:396
↓ 2 callersFunctioncreditsRun
(opts *CreditsOptions)
pkg/cmd/repo/credits/credits.go:115
↓ 2 callersFunctiondecodeJSON
(data []byte, v any)
script/ghmock/set.go:434
↓ 2 callersFunctiondeduplicateByName
deduplicateByName caps the number of results with the same qualified skill name. Since results are pre-sorted by relevance score, the first occurrence
pkg/cmd/skills/search/search.go:425
↓ 2 callersFunctiondefaultConfig
()
pkg/cmd/factory/default_test.go:541
↓ 2 callersFunctiondeleteAsset
(httpClient *http.Client, host string, assetURL safeurl.SafeURL)
pkg/cmd/release/delete-asset/delete_asset.go:115
↓ 2 callersFunctiondeleteAssetRun
(opts *DeleteAssetOptions)
pkg/cmd/release/delete-asset/delete_asset.go:60
↓ 2 callersFunctiondeleteDeployKey
(httpClient *http.Client, repo ghrepo.Interface, id string)
pkg/cmd/repo/deploy-key/delete/http.go:11
↓ 2 callersFunctiondeleteGPGKey
(httpClient *http.Client, host, id string)
pkg/cmd/gpg-key/delete/http.go:15
↓ 2 callersFunctiondeleteGist
(apiClient *api.Client, hostname string, gistID string)
pkg/cmd/gist/delete/delete.go:145
↓ 2 callersFunctiondeleteRelease
(httpClient *http.Client, host string, releaseURL safeurl.SafeURL)
pkg/cmd/release/delete/delete.go:124
↓ 2 callersFunctiondeleteRelease
(httpClient *http.Client, host string, releaseURL safeurl.SafeURL)
pkg/cmd/release/create/http.go:208
↓ 2 callersMethoddeleteRemoteBranch
Delete the remote branch if requested and if allowed.
pkg/cmd/pr/merge/merge.go:517
↓ 2 callersMethoddeleteRepository
(name string)
acceptance/fixture_repository_test.go:156
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/cache/delete/delete.go:119
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/release/delete/delete.go:67
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/gpg-key/delete/delete.go:57
↓ 2 callersFunctiondeleteRun
(opts *deleteOptions)
pkg/cmd/label/delete.go:63
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/issue/artifact/delete/delete.go:96
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/alias/delete/delete.go:53
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/gist/delete/delete.go:79
↓ 2 callersFunctiondeleteRun
(opts *deleteOptions)
pkg/cmd/repo/autolink/delete/delete.go:72
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/repo/delete/delete.go:103
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/repo/deploy-key/delete/delete.go:45
↓ 2 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/ssh-key/delete/delete.go:58
← previousnext →1,701–1,800 of 7,572, ranked by callers