Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
↓ 1 callers
Function
deleteCacheByKey
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 callers
Function
deleteCaches
(opts *DeleteOptions, client *api.Client, repo ghrepo.Interface, toDelete []string)
pkg/cmd/cache/delete/delete.go:159
↓ 1 callers
Function
deleteComment
(commentable Commentable, opts *CommentableOptions)
pkg/cmd/pr/shared/commentable.go:360
↓ 1 callers
Function
deleteFieldArgs
(config deleteFieldConfig)
pkg/cmd/project/field-delete/field_delete.go:79
↓ 1 callers
Function
deleteItemArgs
(config deleteConfig)
pkg/cmd/project/delete/delete.go:106
↓ 1 callers
Function
deleteItemArgs
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:110
↓ 1 callers
Function
deleteLabel
(client *http.Client, repo ghrepo.Interface, name string)
pkg/cmd/label/delete.go:96
↓ 1 callers
Method
deleteLocalBranch
Delete local branch if requested and if allowed.
pkg/cmd/pr/merge/merge.go:380
↓ 1 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/issue/delete/delete.go:76
↓ 1 callers
Function
deleteWorkflowRun
(client *api.Client, repo ghrepo.Interface, runID string)
pkg/cmd/run/delete/delete.go:139
↓ 1 callers
Method
describe
A one-line progress message for an action the actor took.
evals/src/core/suite.ts:50
↓ 1 callers
Function
describeGraphQL
describeGraphQL writes what GitHub's GraphQL schema says about a type or a field.
script/ghmock/schemacmd.go:82
↓ 1 callers
Function
describeREST
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 callers
Function
describeResponse
(name string, list []response, pos int)
script/ghmock/set.go:460
↓ 1 callers
Function
detachAttrs
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 callers
Function
detectCodeAndManifests
detectCodeAndManifests walks the skill directories looking for code files and dependency manifests.
pkg/cmd/skills/publish/publish.go:867
↓ 1 callers
Function
detectDefaultBranch
detectDefaultBranch returns the default branch of the remote repo via the API.
pkg/cmd/skills/publish/publish.go:686
↓ 1 callers
Function
detectMissingRepoDiagnostic
detectMissingRepoDiagnostic explains why remote checks were skipped.
pkg/cmd/skills/publish/publish.go:1016
↓ 1 callers
Function
detectPreviousTag
(client *git.Client, headRef string)
pkg/cmd/release/create/create.go:608
↓ 1 callers
Function
determinePageSize
(numRequestedItems int)
pkg/cmd/label/http.go:129
↓ 1 callers
Function
developRunCreate
(opts *DevelopOptions, apiClient *api.Client, issueRepo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/develop/develop.go:201
↓ 1 callers
Function
developRunList
(opts *DevelopOptions, apiClient *api.Client, issueRepo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/develop/develop.go:319
↓ 1 callers
Function
directoryWriteError
(path string)
internal/safepaths/root.go:465
↓ 1 callers
Function
dirtyExcludingLabels
(e Editable)
pkg/cmd/pr/shared/editable_http.go:142
↓ 1 callers
Function
disableAccessiblePrompterConfig
()
internal/ghcmd/cmd_test.go:611
↓ 1 callers
Function
disableAutoMerge
(client *http.Client, repo ghrepo.Interface, prID string)
pkg/cmd/pr/merge/http.go:106
↓ 1 callers
Method
disableAutoMerge
Attempt to disable auto merge on the pull request.
pkg/cmd/pr/merge/merge.go:206
↓ 1 callers
Function
disableColorLabelsConfig
()
internal/ghcmd/cmd_test.go:623
↓ 1 callers
Function
disablePromptConfig
()
internal/ghcmd/cmd_test.go:603
↓ 1 callers
Function
disableSpinnersConfig
()
internal/ghcmd/cmd_test.go:615
↓ 1 callers
Method
discard
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 callers
Function
discoverSkills
(opts *InstallOptions, client *api.Client, hostname string, resolved *discovery.ResolvedRef)
pkg/cmd/skills/install/install.go:621
↓ 1 callers
Function
displayIssueResults
(io *iostreams.IOStreams, now time.Time, et EntityType, results search.IssuesResult)
pkg/cmd/search/shared/shared.go:99
↓ 1 callers
Function
displayLogSegments
(w io.Writer, segments []logSegment)
pkg/cmd/run/view/view.go:579
↓ 1 callers
Function
displayOrDash
(value string)
pkg/cmd/skills/list/list.go:525
↓ 1 callers
Function
displayRemoteRepoName
(remote *context.Remote)
pkg/cmd/repo/setdefault/setdefault.go:259
↓ 1 callers
Function
displayResults
(io *iostreams.IOStreams, now time.Time, results search.CommitsResult)
pkg/cmd/search/commits/commits.go:158
↓ 1 callers
Function
displayResults
(io *iostreams.IOStreams, now time.Time, results search.RepositoriesResult)
pkg/cmd/search/repos/repos.go:164
↓ 1 callers
Function
displayResults
(io *iostreams.IOStreams, results search.CodeResult)
pkg/cmd/search/code/code.go:163
↓ 1 callers
Function
displayScopes
(scopes string)
pkg/cmd/auth/status/status.go:432
↓ 1 callers
Function
doJSONRequest
doJSONRequest makes a JSON request to the remote Twirp service.
internal/barista/observability/telemetry.twirp.go:976
↓ 1 callers
Function
doProtobufRequest
doProtobufRequest makes a Protobuf request to the remote Twirp service.
internal/barista/observability/telemetry.twirp.go:927
↓ 1 callers
Function
done
()
evals/src/suites/events/suite.ts:45
↓ 1 callers
Function
downloadArtifact
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 callers
Function
downloadArtifact
(httpClient *http.Client, hostname string, url safeurl.SafeURL, openDestination func() (*safepaths.Root, error
pkg/cmd/run/download/http.go:31
↓ 1 callers
Function
downloadAssets
(dest *destinationWriter, httpClient *http.Client, toDownload []downloadTarget, numWorkers int, isArchive bool
pkg/cmd/release/download/download.go:265
↓ 1 callers
Method
downloadError
(err error)
script/ghmock/schemafiles.go:161
↓ 1 callers
Function
dummyRemoteToRepoResolver
()
pkg/cmd/pr/shared/find_refs_resolution_test.go:494
↓ 1 callers
Function
dumpSignedTimestamps
(entity *bundle.Bundle)
pkg/cmd/attestation/inspect/inspect.go:325
↓ 1 callers
Function
dumpTlogs
(entity *bundle.Bundle)
pkg/cmd/attestation/inspect/inspect.go:305
↓ 1 callers
Function
editArgs
(config editConfig)
pkg/cmd/project/edit/edit.go:119
↓ 1 callers
Function
editDistance
(a, b string)
script/ghmock/schemacmd.go:665
↓ 1 callers
Function
enableAccessiblePrompterConfig
()
internal/ghcmd/cmd_test.go:607
↓ 1 callers
Function
enableColorLabelsConfig
()
internal/ghcmd/cmd_test.go:627
↓ 1 callers
Function
enableImmutableReleases
enableImmutableReleases enables immutable releases for the repo.
pkg/cmd/skills/publish/publish.go:748
↓ 1 callers
Function
enableSpinnersConfig
()
internal/ghcmd/cmd_test.go:619
↓ 1 callers
Function
encodeContent
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 callers
Function
endFrame
(outcome, reason string)
pkg/cmd/event/listen/listen_test.go:183
↓ 1 callers
Function
endReason
(reason: string | undefined)
evals/src/graders/review.ts:11
↓ 1 callers
Function
enrichSkills
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 callers
Method
ensureRoot
()
pkg/cmd/release/download/download.go:391
↓ 1 callers
Function
ensureWorktreePathEmpty
(path string)
pkg/cmd/pr/shared/worktree.go:131
↓ 1 callers
Function
ensureWorktreePathSafe
(path string)
pkg/cmd/pr/shared/worktree.go:116
↓ 1 callers
Function
errFromPanic
errFromPanic returns the typed error if the recovered panic is an error, otherwise formats as error.
internal/barista/observability/telemetry.twirp.go:866
↓ 1 callers
Function
errorResponse
(status int, message string)
pkg/cmd/event/client/client_test.go:47
↓ 1 callers
Function
escapeGlob
(p string)
git/client.go:1078
↓ 1 callers
Function
escapePath
escapePath URL-encodes special characters but leaves slashes unchanged
pkg/cmd/browse/browse.go:298
↓ 1 callers
Method
eventLimit
eventLimit returns the number of events to print before exiting, or zero to keep listening.
pkg/cmd/event/listen/listen.go:492
↓ 1 callers
Function
eventMatchesPull
(call: GhCall, pull: Evidence["snapshot"]["pr"], apiUrl: string, action: Action)
evals/src/suites/events/grading/observations.ts:86
↓ 1 callers
Function
exampleDiscussionWithComments
()
pkg/cmd/discussion/view/view_test.go:1090
↓ 1 callers
Function
exampleDiscussionWithReplies
(nextCursor string, newest bool)
pkg/cmd/discussion/view/view_test.go:1132
↓ 1 callers
Function
exampleUnanswerableDiscussion
()
pkg/cmd/discussion/view/view_test.go:1205
↓ 1 callers
Function
exclusiveTypeConflict
(schema *ast.Schema, doc *ast.QueryDocument, problem *gqlerror.Error)
script/ghmock/graphqlcheck.go:68
↓ 1 callers
Function
executeCmds
(client *git.Client, credentialPattern git.CredentialPattern, cmdQueue [][]string)
pkg/cmd/pr/checkout/checkout.go:356
↓ 1 callers
Function
executeParentHook
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 callers
Function
executeRemoteRepoSync
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 callers
Function
existingSkillPrompt
(targetDir string, incoming discovery.Skill)
pkg/cmd/skills/install/install.go:1069
↓ 1 callers
Function
exitLabel
(res runResult)
script/ghmock/report.go:406
↓ 1 callers
Function
expandToGitHubURLRegex
(tenant, ownerOrRepo string)
pkg/cmd/attestation/verify/policy.go:61
↓ 1 callers
Function
expect
(args: string[])
evals/src/suites/events/smoke-protocol.ts:42
↓ 1 callers
Function
expectScopes
TODO: this matches a token prefix itself. It could ask gh.AuthConfig.ActiveTokenType instead.
pkg/cmd/auth/status/status.go:445
↓ 1 callers
Function
expectedFilePath
(tempDir string, digestWithAlg string)
pkg/cmd/attestation/download/download_test.go:27
↓ 1 callers
Function
expiredRefreshableCredential
(secure bool)
pkg/cmd/auth/logout/logout_test.go:1324
↓ 1 callers
Function
expiredRefresher
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 callers
Method
exportData
(v reflect.Value)
pkg/cmdutil/json_flags.go:259
↓ 1 callers
Function
extensionManager
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:343
↓ 1 callers
Function
externalHttpClientFunc
(ios *iostreams.IOStreams, appVersion string)
pkg/cmd/factory/default.go:301
↓ 1 callers
Function
extractAttestationDetail
(tenant, builderSignerURI string)
pkg/cmd/attestation/verify/verify.go:360
↓ 1 callers
Function
extractFileName
(section string)
pkg/cmd/pr/diff/diff.go:402
↓ 1 callers
Function
extractScriptName
(vars []string)
acceptance/acceptance_test.go:1269
↓ 1 callers
Function
extractZipFile
(zf *zip.File, dest *safepaths.Root)
internal/zip/zip.go:33
↓ 1 callers
Function
failOnExpectError
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 callers
Function
failOnExpectError
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 callers
Function
failOnSendError
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 callers
Function
failOnSendError
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 callers
Function
failingRefresher
failingRefresher always fails to renew, simulating a transient refresh error.
pkg/cmd/auth/refresh/refresh_test.go:1042
↓ 1 callers
Function
failingRefresher
failingRefresher returns a mock that always fails to refresh and records its calls.
pkg/cmd/auth/token/token_test.go:541
↓ 1 callers
Function
fakeGH
fakeGH implements the few commands the run tests need.
script/ghmock/run_test.go:86
↓ 1 callers
Function
fakeGet
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 callers
Method
fetch
()
pkg/cmd/pr/shared/templates.go:239
← previous
next →
3,101–3,200 of 7,572, ranked by callers