MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctiondeleteCacheByKey
deleteCacheByKey deletes cache entries by given key (and optional ref) and returns the number of deleted entries. Note that a key/ref combination doe
pkg/cmd/cache/delete/delete.go:218
↓ 1 callersFunctiondeleteCaches
(opts *DeleteOptions, client *api.Client, repo ghrepo.Interface, toDelete []string)
pkg/cmd/cache/delete/delete.go:159
↓ 1 callersFunctiondeleteComment
(commentable Commentable, opts *CommentableOptions)
pkg/cmd/pr/shared/commentable.go:360
↓ 1 callersFunctiondeleteFieldArgs
(config deleteFieldConfig)
pkg/cmd/project/field-delete/field_delete.go:79
↓ 1 callersFunctiondeleteItemArgs
(config deleteConfig)
pkg/cmd/project/delete/delete.go:106
↓ 1 callersFunctiondeleteItemArgs
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:110
↓ 1 callersFunctiondeleteLabel
(client *http.Client, repo ghrepo.Interface, name string)
pkg/cmd/label/delete.go:96
↓ 1 callersMethoddeleteLocalBranch
Delete local branch if requested and if allowed.
pkg/cmd/pr/merge/merge.go:380
↓ 1 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/issue/delete/delete.go:76
↓ 1 callersFunctiondeleteWorkflowRun
(client *api.Client, repo ghrepo.Interface, runID string)
pkg/cmd/run/delete/delete.go:139
↓ 1 callersMethoddescribe
A one-line progress message for an action the actor took.
evals/src/core/suite.ts:50
↓ 1 callersFunctiondescribeGraphQL
describeGraphQL writes what GitHub's GraphQL schema says about a type or a field.
script/ghmock/schemacmd.go:82
↓ 1 callersFunctiondescribeREST
describeREST writes what GitHub's REST description says about a request and the body of one of its responses.
script/ghmock/schemacmd.go:261
↓ 1 callersFunctiondescribeResponse
(name string, list []response, pos int)
script/ghmock/set.go:460
↓ 1 callersFunctiondetachAttrs
detachAttrs returns SysProcAttr configured to place the child in its own process group so that terminal signals delivered to the parent's group (SIGIN
internal/telemetry/detach_unix.go:10
↓ 1 callersFunctiondetectCodeAndManifests
detectCodeAndManifests walks the skill directories looking for code files and dependency manifests.
pkg/cmd/skills/publish/publish.go:867
↓ 1 callersFunctiondetectDefaultBranch
detectDefaultBranch returns the default branch of the remote repo via the API.
pkg/cmd/skills/publish/publish.go:686
↓ 1 callersFunctiondetectMissingRepoDiagnostic
detectMissingRepoDiagnostic explains why remote checks were skipped.
pkg/cmd/skills/publish/publish.go:1016
↓ 1 callersFunctiondetectPreviousTag
(client *git.Client, headRef string)
pkg/cmd/release/create/create.go:608
↓ 1 callersFunctiondeterminePageSize
(numRequestedItems int)
pkg/cmd/label/http.go:129
↓ 1 callersFunctiondevelopRunCreate
(opts *DevelopOptions, apiClient *api.Client, issueRepo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/develop/develop.go:201
↓ 1 callersFunctiondevelopRunList
(opts *DevelopOptions, apiClient *api.Client, issueRepo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/develop/develop.go:319
↓ 1 callersFunctiondirectoryWriteError
(path string)
internal/safepaths/root.go:465
↓ 1 callersFunctiondirtyExcludingLabels
(e Editable)
pkg/cmd/pr/shared/editable_http.go:142
↓ 1 callersFunctiondisableAccessiblePrompterConfig
()
internal/ghcmd/cmd_test.go:611
↓ 1 callersFunctiondisableAutoMerge
(client *http.Client, repo ghrepo.Interface, prID string)
pkg/cmd/pr/merge/http.go:106
↓ 1 callersMethoddisableAutoMerge
Attempt to disable auto merge on the pull request.
pkg/cmd/pr/merge/merge.go:206
↓ 1 callersFunctiondisableColorLabelsConfig
()
internal/ghcmd/cmd_test.go:623
↓ 1 callersFunctiondisablePromptConfig
()
internal/ghcmd/cmd_test.go:603
↓ 1 callersFunctiondisableSpinnersConfig
()
internal/ghcmd/cmd_test.go:615
↓ 1 callersMethoddiscard
discard forgets the requests and response positions recorded so far, such as anything gh did while printing its version.
script/ghmock/server.go:114
↓ 1 callersFunctiondiscoverSkills
(opts *InstallOptions, client *api.Client, hostname string, resolved *discovery.ResolvedRef)
pkg/cmd/skills/install/install.go:621
↓ 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:579
↓ 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:492
↓ 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:1069
↓ 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 callersFunctionexpiredRefreshableCredential
(secure bool)
pkg/cmd/auth/logout/logout_test.go:1324
↓ 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:343
↓ 1 callersFunctionexternalHttpClientFunc
(ios *iostreams.IOStreams, appVersion string)
pkg/cmd/factory/default.go:301
↓ 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:239
← previousnext →3,101–3,200 of 7,572, ranked by callers