MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 1 callersFunctiondiscoverSkills
(opts *InstallOptions, client *api.Client, hostname string, resolved *discovery.ResolvedRef)
pkg/cmd/skills/install/install.go:634
↓ 1 callersFunctiondisplayIssueResults
(io *iostreams.IOStreams, now time.Time, et EntityType, results search.IssuesResult)
pkg/cmd/search/shared/shared.go:99
↓ 1 callersFunctiondisplayLogSegments
(w io.Writer, segments []logSegment)
pkg/cmd/run/view/view.go:576
↓ 1 callersFunctiondisplayOrDash
(value string)
pkg/cmd/skills/list/list.go:525
↓ 1 callersFunctiondisplayRemoteRepoName
(remote *context.Remote)
pkg/cmd/repo/setdefault/setdefault.go:259
↓ 1 callersFunctiondisplayResults
(io *iostreams.IOStreams, now time.Time, results search.CommitsResult)
pkg/cmd/search/commits/commits.go:158
↓ 1 callersFunctiondisplayResults
(io *iostreams.IOStreams, now time.Time, results search.RepositoriesResult)
pkg/cmd/search/repos/repos.go:164
↓ 1 callersFunctiondisplayResults
(io *iostreams.IOStreams, results search.CodeResult)
pkg/cmd/search/code/code.go:163
↓ 1 callersFunctiondisplayScopes
(scopes string)
pkg/cmd/auth/status/status.go:432
↓ 1 callersFunctiondoJSONRequest
doJSONRequest makes a JSON request to the remote Twirp service.
internal/barista/observability/telemetry.twirp.go:976
↓ 1 callersFunctiondoProtobufRequest
doProtobufRequest makes a Protobuf request to the remote Twirp service.
internal/barista/observability/telemetry.twirp.go:927
↓ 1 callersFunctiondone
()
evals/src/suites/events/suite.ts:45
↓ 1 callersFunctiondownloadArtifact
downloadArtifact writes one artifact's file and prints its result line. It reports false when the artifact failed.
pkg/cmd/issue/artifact/download/download.go:220
↓ 1 callersFunctiondownloadArtifact
(httpClient *http.Client, hostname string, url safeurl.SafeURL, openDestination func() (*safepaths.Root, error
pkg/cmd/run/download/http.go:31
↓ 1 callersFunctiondownloadAssets
(dest *destinationWriter, httpClient *http.Client, toDownload []downloadTarget, numWorkers int, isArchive bool
pkg/cmd/release/download/download.go:265
↓ 1 callersMethoddownloadError
(err error)
script/ghmock/schemafiles.go:161
↓ 1 callersFunctiondummyRemoteToRepoResolver
()
pkg/cmd/pr/shared/find_refs_resolution_test.go:494
↓ 1 callersFunctiondumpSignedTimestamps
(entity *bundle.Bundle)
pkg/cmd/attestation/inspect/inspect.go:325
↓ 1 callersFunctiondumpTlogs
(entity *bundle.Bundle)
pkg/cmd/attestation/inspect/inspect.go:305
↓ 1 callersFunctioneditArgs
(config editConfig)
pkg/cmd/project/edit/edit.go:119
↓ 1 callersFunctioneditDistance
(a, b string)
script/ghmock/schemacmd.go:665
↓ 1 callersFunctionenableAccessiblePrompterConfig
()
internal/ghcmd/cmd_test.go:607
↓ 1 callersFunctionenableColorLabelsConfig
()
internal/ghcmd/cmd_test.go:627
↓ 1 callersFunctionenableImmutableReleases
enableImmutableReleases enables immutable releases for the repo.
pkg/cmd/skills/publish/publish.go:748
↓ 1 callersFunctionenableSpinnersConfig
()
internal/ghcmd/cmd_test.go:619
↓ 1 callersFunctionencodeContent
encodeContent fixes file contents in GitHub's examples, which say they're base64 but hold plain text such as "encoded content ...". gh decodes them, s
script/ghmock/restscaffold.go:302
↓ 1 callersFunctionendFrame
(outcome, reason string)
pkg/cmd/event/listen/listen_test.go:183
↓ 1 callersFunctionendReason
(reason: string | undefined)
evals/src/graders/review.ts:11
↓ 1 callersFunctionenrichSkills
enrichSkills fetches descriptions and star counts concurrently. Each function collects results into a map; merges happen after both complete to avoid
pkg/cmd/skills/search/search.go:381
↓ 1 callersMethodensureRoot
()
pkg/cmd/release/download/download.go:391
↓ 1 callersFunctionensureWorktreePathEmpty
(path string)
pkg/cmd/pr/shared/worktree.go:131
↓ 1 callersFunctionensureWorktreePathSafe
(path string)
pkg/cmd/pr/shared/worktree.go:116
↓ 1 callersFunctionerrFromPanic
errFromPanic returns the typed error if the recovered panic is an error, otherwise formats as error.
internal/barista/observability/telemetry.twirp.go:866
↓ 1 callersFunctionerrorResponse
(status int, message string)
pkg/cmd/event/client/client_test.go:47
↓ 1 callersFunctionescapeGlob
(p string)
git/client.go:1078
↓ 1 callersFunctionescapePath
escapePath URL-encodes special characters but leaves slashes unchanged
pkg/cmd/browse/browse.go:298
↓ 1 callersMethodeventLimit
eventLimit returns the number of events to print before exiting, or zero to keep listening.
pkg/cmd/event/listen/listen.go:489
↓ 1 callersFunctioneventMatchesPull
(call: GhCall, pull: Evidence["snapshot"]["pr"], apiUrl: string, action: Action)
evals/src/suites/events/grading/observations.ts:86
↓ 1 callersFunctionexampleDiscussionWithComments
()
pkg/cmd/discussion/view/view_test.go:1090
↓ 1 callersFunctionexampleDiscussionWithReplies
(nextCursor string, newest bool)
pkg/cmd/discussion/view/view_test.go:1132
↓ 1 callersFunctionexampleUnanswerableDiscussion
()
pkg/cmd/discussion/view/view_test.go:1205
↓ 1 callersFunctionexclusiveTypeConflict
(schema *ast.Schema, doc *ast.QueryDocument, problem *gqlerror.Error)
script/ghmock/graphqlcheck.go:68
↓ 1 callersFunctionexecuteCmds
(client *git.Client, credentialPattern git.CredentialPattern, cmdQueue [][]string)
pkg/cmd/pr/checkout/checkout.go:356
↓ 1 callersFunctionexecuteParentHook
executeParentHook re-runs the nearest ancestor's persistent pre-run hook, which the hook installed by EnableRepoOverride would otherwise shadow. By de
pkg/cmdutil/repo_override.go:27
↓ 1 callersFunctionexecuteRemoteRepoSync
ExecuteRemoteRepoSync will take several steps to sync the source and destination repositories. First it will try to use the merge-upstream API endpoin
pkg/cmd/repo/sync/sync.go:291
↓ 1 callersFunctionexistingSkillPrompt
(targetDir string, incoming discovery.Skill)
pkg/cmd/skills/install/install.go:1082
↓ 1 callersFunctionexitLabel
(res runResult)
script/ghmock/report.go:406
↓ 1 callersFunctionexpandToGitHubURLRegex
(tenant, ownerOrRepo string)
pkg/cmd/attestation/verify/policy.go:61
↓ 1 callersFunctionexpect
(args: string[])
evals/src/suites/events/smoke-protocol.ts:42
↓ 1 callersFunctionexpectScopes
TODO: this matches a token prefix itself. It could ask gh.AuthConfig.ActiveTokenType instead.
pkg/cmd/auth/status/status.go:445
↓ 1 callersFunctionexpectedFilePath
(tempDir string, digestWithAlg string)
pkg/cmd/attestation/download/download_test.go:27
↓ 1 callersFunctionexpiredRefresher
expiredRefresher returns a mock whose refresh token is rejected by the server, recorded via gh.ErrRefreshTokenInvalid, and records its calls.
pkg/cmd/auth/token/token_test.go:551
↓ 1 callersMethodexportData
(v reflect.Value)
pkg/cmdutil/json_flags.go:259
↓ 1 callersFunctionextensionManager
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:329
↓ 1 callersFunctionexternalHttpClientFunc
(ios *iostreams.IOStreams, appVersion string)
pkg/cmd/factory/default.go:287
↓ 1 callersFunctionextractAttestationDetail
(tenant, builderSignerURI string)
pkg/cmd/attestation/verify/verify.go:360
↓ 1 callersFunctionextractFileName
(section string)
pkg/cmd/pr/diff/diff.go:402
↓ 1 callersFunctionextractScriptName
(vars []string)
acceptance/acceptance_test.go:1269
↓ 1 callersFunctionextractZipFile
(zf *zip.File, dest *safepaths.Root)
internal/zip/zip.go:33
↓ 1 callersFunctionfailOnExpectError
failOnExpectError adds an observer that will fail the test in a standardised way if any expectation on the command output fails, without requiring an
pkg/iostreams/iostreams_progress_indicator_test.go:205
↓ 1 callersFunctionfailOnExpectError
failOnExpectError adds an observer that will fail the test in a standardised way if any expectation on the command output fails, without requiring an
internal/prompter/accessible_prompter_test.go:909
↓ 1 callersFunctionfailOnSendError
failOnSendError adds an observer that will fail the test in a standardised way if any sending of input fails, without requiring an explicit assertion.
pkg/iostreams/iostreams_progress_indicator_test.go:232
↓ 1 callersFunctionfailOnSendError
failOnSendError adds an observer that will fail the test in a standardised way if any sending of input fails, without requiring an explicit assertion.
internal/prompter/accessible_prompter_test.go:936
↓ 1 callersFunctionfailingRefresher
failingRefresher always fails to renew, simulating a transient refresh error.
pkg/cmd/auth/refresh/refresh_test.go:1042
↓ 1 callersFunctionfailingRefresher
failingRefresher returns a mock that always fails to refresh and records its calls.
pkg/cmd/auth/token/token_test.go:541
↓ 1 callersFunctionfakeGH
fakeGH implements the few commands the run tests need.
script/ghmock/run_test.go:86
↓ 1 callersFunctionfakeGet
fakeGet prints the status and body of a GET. It fails for an error or a status of 300 or more.
script/ghmock/run_test.go:253
↓ 1 callersMethodfetch
()
pkg/cmd/pr/shared/templates.go:240
↓ 1 callersFunctionfetchContent
fetchContent retrieves the raw Contents API response for a single path. It requests the unified object media type so directories, files, symlinks, an
pkg/cmd/repo/read-file/http.go:84
↓ 1 callersFunctionfetchDescriptions
fetchDescriptions fetches SKILL.md frontmatter descriptions concurrently for all search results. Each result may come from a different repo.
pkg/cmd/skills/search/search.go:832
↓ 1 callersFunctionfetchDiff
(httpClient *http.Client, baseRepo ghrepo.Interface, prNumber int, asPatch bool)
pkg/cmd/pr/diff/diff.go:212
↓ 1 callersFunctionfetchDraftIssueByID
(config editItemConfig, draftIssueID string)
pkg/cmd/project/item-edit/item_edit.go:328
↓ 1 callersFunctionfetchDraftRelease
fetchDraftRelease returns the first draft release that has tagName as its pending tag.
pkg/cmd/release/shared/fetch.go:237
↓ 1 callersFunctionfetchFile
fetchFile retrieves a single path's metadata and inline content via the REST Contents API. It returns a typed error when the path is a directory, sym
pkg/cmd/repo/read-file/http.go:121
↓ 1 callersFunctionfetchForkInfo
fetchForkInfo uses REST rather than GraphQL so that a missing or moved repository fails with the same error the DELETE would have returned.
pkg/cmd/repo/delete/http.go:23
↓ 1 callersFunctionfetchJobSessionURL
fetchJobSessionURL tries to return the agent session URL for a job. If the pull request is not yet available, ("", nil) is returned.
pkg/cmd/agent-task/create/create.go:209
↓ 1 callersFunctionfetchJobWithBackoff
fetchJobWithBackoff polls the job resource until a PR number is present or the overall timeout elapses. It returns the updated Job on success, (nil, n
pkg/cmd/agent-task/create/create.go:235
↓ 1 callersFunctionfetchPrimaryPages
fetchPrimaryPages fetches enough API pages from GitHub Code Search to cover the requested display page, accounting for filtering losses.
pkg/cmd/skills/search/search.go:747
↓ 1 callersFunctionfetchRawFile
fetchRawFile retrieves the raw bytes of a file, used for files larger than the 1 MB inline content limit of the Contents API.
pkg/cmd/repo/read-file/http.go:169
↓ 1 callersFunctionfetchReleases
(httpClient *http.Client, repo ghrepo.Interface, limit int, excludeDrafts bool, excludePreReleases bool, order
pkg/cmd/release/list/http.go:41
↓ 1 callersFunctionfetchReleasesWithoutImmutableReleases
TODO: immutableReleaseFullSupport This is a temporary workaround until all supported GHES versions fully support immutable releases, which would be wh
pkg/cmd/release/list/http.go:122
↓ 1 callersFunctionfetchRepoStars
fetchRepoStars fetches stargazer counts for each unique repository in the result set, using bounded concurrency.
pkg/cmd/skills/search/search.go:892
↓ 1 callersFunctionfetchTags
fetchTags returns the most recent tags from the repo.
pkg/cmd/skills/publish/publish.go:460
↓ 1 callersFunctionfetchTree
fetchTree resolves a directory listing for dirPath at ref. It uses the repository.object(expression) field, which returns a Tree for a directory, a B
pkg/cmd/repo/read-dir/http.go:129
↓ 1 callersFunctionfieldValueForItem
fieldValueForItem returns the display value of the field identified by fieldID on item i, or an empty string when the item has no value for that field
pkg/cmd/project/item-list/item_list.go:257
↓ 1 callersFunctionfields
()
pkg/cmd/issue/lock/lock.go:88
↓ 1 callersFunctionfileContent
fileContent returns what an artifact's file holds: a document's body as it is, or an Internet Shortcut for a link. gh never writes a shortcut for anyt
pkg/cmd/issue/artifact/download/download.go:470
↓ 1 callersMethodfileContent
Reads a text file from a repository at a ref.
evals/src/core/github.ts:124
↓ 1 callersFunctionfileContentResponse
fileContentResponse builds a Contents API object response for a regular file with base64-encoded inline content.
pkg/cmd/repo/read-file/read_file_test.go:1035
↓ 1 callersFunctionfileExt
(fn string)
pkg/cmd/release/shared/upload.go:103
↓ 1 callersFunctionfilePrepender
(filename string)
cmd/gen-docs/main.go:79
↓ 1 callersFunctionfile_codespace_codespace_host_service_v1_proto_init
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:317
↓ 1 callersFunctionfile_jupyter_jupyter_server_host_service_v1_proto_init
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:194
↓ 1 callersFunctionfile_observability_v1_telemetry_proto_init
()
internal/barista/observability/telemetry.pb.go:268
↓ 1 callersFunctionfile_ssh_ssh_server_host_service_v1_proto_init
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:204
↓ 1 callersMethodfill
fill walks a value that's already there, adding missing fields inside it. null stays null, because that can be what the response is testing.
script/ghmock/gqlscaffold.go:135
↓ 1 callersFunctionfillHeader
(header *GenManHeader, name string)
internal/docs/man.go:107
↓ 1 callersFunctionfilterProjects
(nodes queries.Projects, config listConfig)
pkg/cmd/project/list/list.go:141
↓ 1 callersMethodfilterView
()
pkg/cmd/extension/browse/model.go:692
↓ 1 callersFunctionfiltered
(...args: string[])
evals/src/graders.test.ts:208
← previousnext →3,101–3,200 of 7,487, ranked by callers