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
fetchContent
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 callers
Function
fetchDescriptions
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 callers
Function
fetchDiff
(httpClient *http.Client, baseRepo ghrepo.Interface, prNumber int, asPatch bool)
pkg/cmd/pr/diff/diff.go:212
↓ 1 callers
Function
fetchDraftIssueByID
(config editItemConfig, draftIssueID string)
pkg/cmd/project/item-edit/item_edit.go:328
↓ 1 callers
Function
fetchDraftRelease
fetchDraftRelease returns the first draft release that has tagName as its pending tag.
pkg/cmd/release/shared/fetch.go:237
↓ 1 callers
Function
fetchFile
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 callers
Function
fetchForkInfo
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 callers
Function
fetchJobSessionURL
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 callers
Function
fetchJobWithBackoff
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 callers
Function
fetchPrimaryPages
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 callers
Function
fetchRawFile
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 callers
Function
fetchReleases
(httpClient *http.Client, repo ghrepo.Interface, limit int, excludeDrafts bool, excludePreReleases bool, order
pkg/cmd/release/list/http.go:41
↓ 1 callers
Function
fetchReleasesWithoutImmutableReleases
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 callers
Function
fetchRepoStars
fetchRepoStars fetches stargazer counts for each unique repository in the result set, using bounded concurrency.
pkg/cmd/skills/search/search.go:892
↓ 1 callers
Function
fetchTags
fetchTags returns the most recent tags from the repo.
pkg/cmd/skills/publish/publish.go:460
↓ 1 callers
Function
fetchTree
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 callers
Function
fieldValueForItem
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:256
↓ 1 callers
Function
fields
()
pkg/cmd/issue/lock/lock.go:88
↓ 1 callers
Function
fileContent
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 callers
Method
fileContent
Reads a text file from a repository at a ref.
evals/src/core/github.ts:124
↓ 1 callers
Function
fileContentResponse
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 callers
Function
fileExt
(fn string)
pkg/cmd/release/shared/upload.go:103
↓ 1 callers
Function
filePrepender
(filename string)
cmd/gen-docs/main.go:79
↓ 1 callers
Function
file_codespace_codespace_host_service_v1_proto_init
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:317
↓ 1 callers
Function
file_jupyter_jupyter_server_host_service_v1_proto_init
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:194
↓ 1 callers
Function
file_observability_v1_telemetry_proto_init
()
internal/barista/observability/telemetry.pb.go:268
↓ 1 callers
Function
file_ssh_ssh_server_host_service_v1_proto_init
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:204
↓ 1 callers
Method
fill
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 callers
Function
fillHeader
(header *GenManHeader, name string)
internal/docs/man.go:107
↓ 1 callers
Function
filterProjects
(nodes queries.Projects, config listConfig)
pkg/cmd/project/list/list.go:141
↓ 1 callers
Method
filterView
()
pkg/cmd/extension/browse/model.go:692
↓ 1 callers
Function
filtered
(...args: string[])
evals/src/graders.test.ts:208
↓ 1 callers
Function
filteredOutputAt
* Output reshaped by --jq or --template cannot be matched to an event, so any output counts when the listener was * bound to the fixture PR and the e
evals/src/suites/events/grading/observations.ts:121
↓ 1 callers
Function
findByNumber
(httpClient *http.Client, repo ghrepo.Interface, number int, fields []string)
pkg/cmd/pr/shared/finder.go:354
↓ 1 callers
Function
findCommand
(cmd *cobra.Command, name string)
pkg/cmd/root/help.go:246
↓ 1 callers
Function
findExistingLinkedBranchName
(branches []api.LinkedBranch, branchRepo ghrepo.Interface, branchName string)
pkg/cmd/issue/develop/develop.go:290
↓ 1 callers
Function
findForRefs
(httpClient *http.Client, prRefs PRFindRefs, stateFilters, fields []string)
pkg/cmd/pr/shared/finder.go:384
↓ 1 callers
Function
findGitHubMetadataKeys
findGitHubMetadataKeys returns metadata keys with the "github-" prefix.
pkg/cmd/skills/publish/publish.go:1125
↓ 1 callers
Function
firstConfiguredKeyPair
firstConfiguredKeyPair reads the effective configuration for a localhost connection and returns the first valid key pair which would be tried for auth
pkg/cmd/codespace/ssh.go:472
↓ 1 callers
Function
fixture
()
evals/src/harness.test.ts:96
↓ 1 callers
Function
fixtureAttachmentArgs
fixtureAttachmentArgs is the set of attached files testdata/references_input.md is written against. Every asset URL is recognisable on sight so the ex
internal/attachments/references_fixture_test.go:17
↓ 1 callers
Function
floatToString
(f float64, p uint8)
pkg/cmd/cache/list/list.go:164
↓ 1 callers
Function
floatToString
render float to fixed precision using truncation instead of rounding
pkg/cmd/release/view/view.go:222
↓ 1 callers
Function
flockRefreshLock
flockRefreshLock acquires the cross-process refresh lock with flock, creating the lock file's directory first. It is the production implementation use
internal/config/refreshable.go:57
↓ 1 callers
Function
fmtVisibility
(s shared.Variable)
pkg/cmd/variable/list/list.go:180
↓ 1 callers
Function
fmtVisibility
(s Secret)
pkg/cmd/secret/list/list.go:235
↓ 1 callers
Function
followLogs
(opts *CreateOptions, capiClient capi.CapiClient, sessionID string)
pkg/cmd/agent-task/create/create.go:263
↓ 1 callers
Function
formatAuthentic
(authentic bool, certIssuer string)
pkg/cmd/attestation/inspect/inspect.go:293
↓ 1 callers
Function
formatComment
(io *iostreams.IOStreams, comment Comment, newest bool)
pkg/cmd/pr/shared/comments.go:89
↓ 1 callers
Function
formatCommentStatus
(cs *iostreams.ColorScheme, status string)
pkg/cmd/pr/shared/comments.go:173
↓ 1 callers
Function
formatGitStatus
(codespace codespace)
pkg/cmd/codespace/view.go:114
↓ 1 callers
Function
formatGraphQLError
formatGraphQLError turns a parser or validator error into a short line.
script/ghmock/checker.go:224
↓ 1 callers
Function
formatHiddenComment
(comment Comment)
pkg/cmd/pr/shared/comments.go:197
↓ 1 callers
Function
formatLinkedIssueListWithTitle
formatLinkedIssueListWithTitle formats a comma-separated list of linked issue references with each title appended after the reference.
pkg/cmd/issue/view/view.go:375
↓ 1 callers
Function
formatLinkedIssueRefs
formatLinkedIssueRefs formats a comma-separated list of linked issue references without titles.
pkg/cmd/issue/view/view.go:369
↓ 1 callers
Function
formatNwo
(longUrl string)
pkg/cmd/attestation/inspect/inspect.go:284
↓ 1 callers
Function
formatPayloads
(payloads []requestPayload)
script/ghmock/report.go:467
↓ 1 callers
Function
formatRawComment
(comment Comment)
pkg/cmd/pr/shared/comments.go:38
↓ 1 callers
Function
formatRawCommentStatus
(status string)
pkg/cmd/pr/shared/comments.go:186
↓ 1 callers
Function
formatReactionGroup
(rg api.ReactionGroup)
pkg/cmd/pr/shared/reaction_groups.go:22
↓ 1 callers
Function
formatRetentionPeriodDays
(codespace codespace)
pkg/cmd/codespace/view.go:124
↓ 1 callers
Function
formatSpecialQualifiers
(qualifier string, vs []string, specialGroupsToOR [][]string)
pkg/search/query.go:188
↓ 1 callers
Function
formattedReviewerState
formattedReviewerState formats a reviewerState with state color
pkg/cmd/pr/view/view.go:336
↓ 1 callers
Method
fragmentType
fragmentType finds the first fragment, in query order, on a possible type.
script/ghmock/gqlscaffold.go:283
↓ 1 callers
Function
fromAPISession
(s session)
pkg/cmd/agent-task/capi/sessions.go:556
↓ 1 callers
Method
fromEnv
()
acceptance/acceptance_test.go:1307
↓ 1 callers
Function
genMan
(cmd *cobra.Command, header *GenManHeader)
internal/docs/man.go:210
↓ 1 callers
Function
genManTreeFromOpts
genManTreeFromOpts generates a man page for the command and all descendants. The pages are written to the opts.Path directory.
internal/docs/man.go:41
↓ 1 callers
Method
generate
generate makes a placeholder value of a type. parent is the type of the object that holds the field.
script/ghmock/gqlscaffold.go:164
↓ 1 callers
Function
generateBranchURL
(r ghrepo.Interface, branch string)
pkg/cmd/repo/view/view.go:227
↓ 1 callers
Function
generateChangelog
(commits []logEntry)
pkg/cmd/release/create/create.go:654
↓ 1 callers
Function
generateCodespaceList
(start int, end int)
internal/codespaces/api/api_test.go:20
↓ 1 callers
Function
generateMissingBinaryIssueBody
(currentPlatform string)
pkg/cmd/extension/manager.go:391
↓ 1 callers
Function
generateMissingBinaryIssueCreateCommand
(repoOwner string, repoName string, currentPlatform string)
pkg/cmd/extension/manager.go:386
↓ 1 callers
Function
generatePreviewURL
(apiClient *api.Client, baseRepo ghrepo.Interface, tb prShared.IssueMetadataState, projectsV1Support gh.Projec
pkg/cmd/issue/create/create.go:494
↓ 1 callers
Function
generatePullRequestNodeID
generatePullRequestNodeID converts an int64 databaseID and repoID to a GraphQL Node ID format with the "PR_" prefix for pull requests
pkg/cmd/agent-task/capi/sessions.go:548
↓ 1 callers
Function
generateUserNodeID
(userID int64)
pkg/cmd/agent-task/capi/sessions.go:552
↓ 1 callers
Function
generateWorkflows
generateWorkflows returns a slice of workflows with the given count, labeled with the page number of testing pagination. The page number is used to ge
pkg/cmd/workflow/shared/shared_test.go:412
↓ 1 callers
Function
getAttestationDetail
(tenant string, attr api.Attestation)
pkg/cmd/attestation/inspect/bundle.go:77
↓ 1 callers
Function
getAttestationsFor
(t *testing.T, bundlePath string)
pkg/cmd/attestation/verification/sigstore_integration_test.go:190
↓ 1 callers
Function
getAttestationsFor
(t *testing.T, bundlePath string)
pkg/cmd/attestation/verify/attestation_integration_test.go:19
↓ 1 callers
Function
getBundleIssuer
(b *bundle.Bundle)
pkg/cmd/attestation/verification/sigstore.go:188
↓ 1 callers
Function
getColor
(x int)
pkg/cmd/repo/credits/credits.go:284
↓ 1 callers
Function
getCustomHTTPReqHeaders
getCustomHTTPReqHeaders retrieves a copy of any headers that are set in a context through the twirp.WithHTTPRequestHeaders function. If there are no h
internal/barista/observability/telemetry.twirp.go:681
↓ 1 callers
Function
getDevContainer
(ctx context.Context, apiClient apiClient, codespace *api.Codespace)
pkg/cmd/codespace/ports.go:189
↓ 1 callers
Function
getEnvPubKey
(client *api.Client, repo ghrepo.Interface, envName string)
pkg/cmd/secret/set/http.go:67
↓ 1 callers
Function
getEnvSecrets
(client *http.Client, repo ghrepo.Interface, envName string)
pkg/cmd/secret/list/list.go:302
↓ 1 callers
Function
getEnvVariables
(client *http.Client, repo ghrepo.Interface, envName string)
pkg/cmd/variable/list/list.go:204
↓ 1 callers
Function
getFilesToRemove
(gist gistToUpdate, filename string)
pkg/cmd/gist/edit/edit.go:438
↓ 1 callers
Function
getLatestReleaseInfo
(ctx context.Context, client *http.Client, repo string)
internal/update/update.go:116
↓ 1 callers
Function
getLog
(httpClient *http.Client, hostname string, logPath safeurl.SafeURL)
pkg/cmd/run/view/view.go:490
↓ 1 callers
Function
getLowestCertInChain
(ca *root.FulcioCertificateAuthority)
pkg/cmd/attestation/verification/sigstore.go:235
↓ 1 callers
Function
getMachineName
getMachineName prompts the user to select the machine type, or validates the machine if non-empty.
pkg/cmd/codespace/create.go:520
↓ 1 callers
Function
getMergeText
(client *http.Client, repo ghrepo.Interface, prID string, mergeMethod PullRequestMergeMethod)
pkg/cmd/pr/merge/http.go:121
↓ 1 callers
Function
getNonRefreshableTokenFromKeyring
getNonRefreshableTokenFromKeyring reads the token straight from secure storage for the hostname and optional username, consulting no environment varia
pkg/cmd/auth/token/token.go:204
↓ 1 callers
Function
getOrCreateDeviceID
()
internal/telemetry/telemetry.go:38
↓ 1 callers
Function
getOrgPublicKey
(client *api.Client, host, orgName string, app shared.App)
pkg/cmd/secret/set/http.go:43
↓ 1 callers
Function
getOrgSecrets
(client *http.Client, host, orgName string, showSelectedRepoInfo bool, app shared.App)
pkg/cmd/secret/list/list.go:251
↓ 1 callers
Function
getOrgVariables
(client *http.Client, host, orgName string, showSelectedRepoInfo bool)
pkg/cmd/variable/list/list.go:212
↓ 1 callers
Function
getParams
(opts *EditOptions)
pkg/cmd/release/edit/edit.go:136
← previous
next →
3,201–3,300 of 7,572, ranked by callers