MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 2 callersMethodSys
()
internal/safepaths/link_windows_test.go:170
↓ 2 callersFunctionSystem
()
pkg/iostreams/iostreams.go:511
↓ 2 callersMethodTeamsToIDs
(names []string)
api/queries_repo.go:790
↓ 2 callersFunctionTestRunWithWorkflowAndCommit
(workflowId, runId int64, s Status, c Conclusion, commit string)
pkg/cmd/run/shared/test.go:25
↓ 2 callersMethodTitle
Title is the title of the project item.
pkg/cmd/project/shared/queries/queries.go:609
↓ 2 callersFunctionTitleSurvey
(p Prompt, io *iostreams.IOStreams, state *IssueMetadataState)
pkg/cmd/pr/shared/survey.go:116
↓ 2 callersFunctionTitledEditSurvey
(editor Editor)
pkg/cmd/pr/shared/survey.go:411
↓ 2 callersMethodTokenForUser
TokenForUser retrieves the credential for the given user and hostname. Like ActiveToken it returns the last stored token as-is, including the current
internal/config/config.go:714
↓ 2 callersFunctionTranslateRemotes
(gitRemotes git.RemoteSet, translator Translator)
context/remote.go:105
↓ 2 callersMethodURL
URL is the URL of the project item. Note the draft issues do not have URLs
pkg/cmd/project/shared/queries/queries.go:663
↓ 2 callersFunctionUniqueProjectDirs
UniqueProjectDirs returns the deduplicated set of project-scope skill directories from the Agents list, preserving insertion order.
internal/skills/registry/registry.go:394
↓ 2 callersMethodUpdate
Update updates the git credentials for a given hostname, first by rejecting any existing credentials and then approving the new credentials.
pkg/cmd/auth/shared/gitcredentials/updater.go:36
↓ 2 callersMethodUpdateComment
UpdateComment updates the body of an existing discussion comment or reply.
pkg/cmd/discussion/client/client.go:47
↓ 2 callersMethodUpdatePortVisibility
(ctx context.Context, remotePort int, visibility string)
internal/codespaces/portforwarder/port_forwarder.go:49
↓ 2 callersMethodUploadTarget
UploadTarget is IsPullRequest for a command that uploads files with --attach. Its one lookup also returns what an upload needs to know about repo.
pkg/cmd/issue/artifact/client/client.go:29
↓ 2 callersMethodUploadTargetCalls
UploadTargetCalls gets all the calls that were made to UploadTarget. Check the length with: len(mockedArtifactClient.UploadTargetCalls())
pkg/cmd/issue/artifact/client/client_mock.go:429
↓ 2 callersFunctionUserAssetUploadPrefix
UserAssetUploadPrefix returns the URL prefix for user asset uploads. GHES does not support this endpoint.
internal/ghinstance/host.go:95
↓ 2 callersFunctionUserSigningKeys
(httpClient *http.Client, host, userHandle string)
pkg/cmd/ssh-key/shared/user_keys.go:50
↓ 2 callersMethodValidate
()
pkg/cmd/attestation/api/client.go:42
↓ 2 callersFunctionValidateKey
(key string)
pkg/cmd/config/set/set.go:95
↓ 2 callersFunctionValidateValue
(key, value string)
pkg/cmd/config/set/set.go:130
↓ 2 callersMethodVerify
(attestations []*api.Attestation, policy verify.PolicyBuilder)
pkg/cmd/attestation/verification/sigstore.go:281
↓ 2 callersMethodVerifyAttestation
VerifyAttestation verifies the attestation for a given artifact
pkg/cmd/release/shared/attestation.go:22
↓ 2 callersFunctionVerifyCertExtensions
VerifyCertExtensions allows us to perform case insensitive comparisons of certificate extensions
pkg/cmd/attestation/verification/extensions.go:17
↓ 2 callersMethodVersion
()
internal/config/config.go:203
↓ 2 callersMethodViewCodespace
(ctx context.Context, opts *viewOptions)
pkg/cmd/codespace/view.go:55
↓ 2 callersMethodWarnings
Warnings returns the deduplicated warnings recorded so far in this process, such as a skipped token refresh, in the order they were first recorded. Ca
internal/gh/gh.go:234
↓ 2 callersFunctionWithAdditionalCommonDimensions
WithAdditionalCommonDimensions allows setting additional common dimensions that will be included with every telemetry event recorded by the service.
internal/telemetry/telemetry.go:155
↓ 2 callersFunctionWithStderr
(stderr io.Writer)
git/command.go:73
↓ 2 callersMethodWithWidth
(width int)
internal/prompter/multi_select_with_search.go:443
↓ 2 callersFunctionWithoutIndentation
()
pkg/markdown/markdown.go:11
↓ 2 callersFunctionWorktreeCheckoutCommands
WorktreeCheckoutCommands returns the commands needed to place branch in target. startPoint must be a remote branch suitable for --track.
pkg/cmd/pr/shared/worktree.go:45
↓ 2 callersMethodWorktreePrune
WorktreePrune removes administrative files for worktrees that no longer exist on disk.
git/client.go:287
↓ 2 callersMethodWorktreeRemove
WorktreeRemove removes the worktree at the given path via `git worktree remove <path>`.
git/client.go:276
↓ 2 callersMethodWrite
()
internal/config/config.go:115
↓ 2 callersMethodWriteCalls
WriteCalls gets all the calls that were made to Write. Check the length with: len(mockedConfig.WriteCalls())
internal/gh/mock/config.go:961
↓ 2 callersFunctionWriteDelims
WriteDelims writes delims in color and with the appropriate indent based on the stack size returned from an io.Writer that implements JsonWriter.Prefa
pkg/jsoncolor/jsoncolor.go:109
↓ 2 callersFunctionWriteFile
WriteFile writes a complete file without traversing symbolic links. Creation permissions follow [OpenFile].
internal/safepaths/root.go:100
↓ 2 callersFunction_stubPR
(repo, prHead string, number int, title string, state string, isDraft bool)
pkg/cmd/pr/checkout/checkout_test.go:126
↓ 2 callersFunctionacceptanceScriptCandidates
(tsEnv testScriptEnv, command string)
acceptance/acceptance_test.go:848
↓ 2 callersFunctionactions
()
evals/src/cleanup.test.ts:11
↓ 2 callersMethodactiveStyles
()
internal/prompter/multi_select_with_search.go:370
↓ 2 callersFunctionactorsToSearchResult
(actors []api.AssignableActor, totalCount int)
pkg/cmd/pr/shared/editable.go:685
↓ 2 callersMethodaddAuthError
(msg, ssoURL string)
pkg/cmd/status/status.go:611
↓ 2 callersFunctionaddAuthHeaderRoundTripper
addAuthHeaderRoundTripper wraps rt so each request receives the token returned by tokenForHost for its (normalized) host, unless the Authorization hea
api/http_client.go:230
↓ 2 callersFunctionaddJqFlag
(f *pflag.FlagSet, shorthand string)
pkg/cmdutil/json_flags.go:47
↓ 2 callersFunctionaddJsonFlag
(f *pflag.FlagSet)
pkg/cmdutil/json_flags.go:44
↓ 2 callersFunctionaddPerPage
(p string, perPage int, params map[string]any)
pkg/cmd/api/pagination.go:94
↓ 2 callersFunctionaddRun
(opts *AddOptions)
pkg/cmd/repo/deploy-key/add/add.go:64
↓ 2 callersFunctionaddTemplateFlag
(f *pflag.FlagSet, shorthand string)
pkg/cmdutil/json_flags.go:50
↓ 2 callersFunctionafterSuccessfulTool
(config: SessionConfig, action: () => Promise<void>)
evals/src/core/session.ts:4
↓ 2 callersFunctionallowsNull
(s *openapi3.Schema)
script/ghmock/restscaffold.go:382
↓ 2 callersFunctionalternatives
(s *openapi3.Schema)
script/ghmock/restscaffold.go:372
↓ 2 callersFunctionanalyse
(evidence: Evidence)
evals/src/suites/events/grading/analysis.ts:24
↓ 2 callersFunctionannounce
(args ...string)
script/build.go:230
↓ 2 callersFunctionappendNew
appendNew appends number to numbers, refusing a number already there.
pkg/cmd/issue/artifact/shared/shared.go:194
↓ 2 callersFunctionappendParagraph
appendParagraph joins two pieces of markdown as separate paragraphs.
internal/attachments/attach.go:261
↓ 2 callersMethodapplySearchResult
applySearchResult processes a completed search and rebuilds the option list.
internal/prompter/multi_select_with_search.go:127
↓ 2 callersFunctionapplySet
applySet changes one stored response and returns its position.
script/ghmock/set.go:300
↓ 2 callersFunctionarchiveRun
(opts *ArchiveOptions)
pkg/cmd/repo/archive/archive.go:68
↓ 2 callersMethodartifactType
artifactType returns the type of the source's artifact: link for a link, or for a document, the type from --type when typeFlag is set. Without it, a .
pkg/cmd/issue/artifact/create/create.go:86
↓ 2 callersFunctionaskedForHelp
askedForHelp reports whether args include a help flag. Commands that take no flags use it, since only a flag set returns flag.ErrHelp on its own.
script/ghmock/main.go:190
↓ 2 callersFunctionattachedSince
(call: Call)
evals/src/suites/events/commands.ts:70
↓ 2 callersFunctionauthRecoveryCommand
(cfg gh.Config, httpErr api.HTTPError)
internal/ghcmd/cmd.go:309
↓ 2 callersFunctionauthResultFromToken
authResultFromToken projects the OAuth flow's access token and the resolved username onto an AuthResult. A refresh token is present only when the serv
internal/authflow/refresh.go:121
↓ 2 callersFunctionauthenticatedCommand
authenticatedCommand builds an authenticated git command, transparently handling a leading -C <path> prefix. AuthenticatedCommand prepends credential-
pkg/cmd/pr/checkout/checkout.go:388
↓ 2 callersFunctionautomaticPrivateKeyPath
(sshContext ssh.Context)
pkg/cmd/codespace/ssh.go:695
↓ 2 callersFunctionbadRouteError
badRouteError is used when the twirp server cannot route a request
internal/barista/observability/telemetry.twirp.go:896
↓ 2 callersFunctionbodyForWrite
bodyForWrite uploads the assets and reports whether the body it produced is worth writing. A failed upload that produced nothing writes nothing, since
pkg/cmd/pr/shared/commentable.go:348
↓ 2 callersMethodbuildAuthTokenForm
()
internal/prompter/huh_prompter.go:185
↓ 2 callersMethodbuildConfirmDeletionForm
(requiredValue string)
internal/prompter/huh_prompter.go:210
↓ 2 callersMethodbuildConfirmForm
(prompt string, defaultValue bool)
internal/prompter/huh_prompter.go:164
↓ 2 callersFunctionbuildDisplayName
buildDisplayName returns display name to be used in the machine survey prompt. prebuildAvailability will be migrated to use enum values: "none", "read
pkg/cmd/codespace/create.go:597
↓ 2 callersMethodbuildInputForm
(prompt, defaultValue string)
internal/prompter/huh_prompter.go:124
↓ 2 callersMethodbuildInputHostnameForm
()
internal/prompter/huh_prompter.go:229
↓ 2 callersFunctionbuildInstallPlans
(opts *InstallOptions, selectedSkills []discovery.Skill, selectedHosts []*registry.AgentHost, scope registry.S
pkg/cmd/skills/install/install.go:986
↓ 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
← previousnext →1,601–1,700 of 7,487, ranked by callers