MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 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:256
↓ 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
↓ 1 callersFunctionfilteredOutputAt
* 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 callersFunctionfindByNumber
(httpClient *http.Client, repo ghrepo.Interface, number int, fields []string)
pkg/cmd/pr/shared/finder.go:354
↓ 1 callersFunctionfindCommand
(cmd *cobra.Command, name string)
pkg/cmd/root/help.go:246
↓ 1 callersFunctionfindExistingLinkedBranchName
(branches []api.LinkedBranch, branchRepo ghrepo.Interface, branchName string)
pkg/cmd/issue/develop/develop.go:290
↓ 1 callersFunctionfindForRefs
(httpClient *http.Client, prRefs PRFindRefs, stateFilters, fields []string)
pkg/cmd/pr/shared/finder.go:384
↓ 1 callersFunctionfindGitHubMetadataKeys
findGitHubMetadataKeys returns metadata keys with the "github-" prefix.
pkg/cmd/skills/publish/publish.go:1125
↓ 1 callersFunctionfirstConfiguredKeyPair
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 callersFunctionfixture
()
evals/src/harness.test.ts:96
↓ 1 callersFunctionfixtureAttachmentArgs
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 callersFunctionfloatToString
(f float64, p uint8)
pkg/cmd/cache/list/list.go:164
↓ 1 callersFunctionfloatToString
render float to fixed precision using truncation instead of rounding
pkg/cmd/release/view/view.go:222
↓ 1 callersFunctionflockRefreshLock
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 callersFunctionfmtVisibility
(s shared.Variable)
pkg/cmd/variable/list/list.go:180
↓ 1 callersFunctionfmtVisibility
(s Secret)
pkg/cmd/secret/list/list.go:235
↓ 1 callersFunctionfollowLogs
(opts *CreateOptions, capiClient capi.CapiClient, sessionID string)
pkg/cmd/agent-task/create/create.go:263
↓ 1 callersFunctionformatAuthentic
(authentic bool, certIssuer string)
pkg/cmd/attestation/inspect/inspect.go:293
↓ 1 callersFunctionformatComment
(io *iostreams.IOStreams, comment Comment, newest bool)
pkg/cmd/pr/shared/comments.go:89
↓ 1 callersFunctionformatCommentStatus
(cs *iostreams.ColorScheme, status string)
pkg/cmd/pr/shared/comments.go:173
↓ 1 callersFunctionformatGitStatus
(codespace codespace)
pkg/cmd/codespace/view.go:114
↓ 1 callersFunctionformatGraphQLError
formatGraphQLError turns a parser or validator error into a short line.
script/ghmock/checker.go:224
↓ 1 callersFunctionformatHiddenComment
(comment Comment)
pkg/cmd/pr/shared/comments.go:197
↓ 1 callersFunctionformatLinkedIssueListWithTitle
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 callersFunctionformatLinkedIssueRefs
formatLinkedIssueRefs formats a comma-separated list of linked issue references without titles.
pkg/cmd/issue/view/view.go:369
↓ 1 callersFunctionformatNwo
(longUrl string)
pkg/cmd/attestation/inspect/inspect.go:284
↓ 1 callersFunctionformatPayloads
(payloads []requestPayload)
script/ghmock/report.go:467
↓ 1 callersFunctionformatRawComment
(comment Comment)
pkg/cmd/pr/shared/comments.go:38
↓ 1 callersFunctionformatRawCommentStatus
(status string)
pkg/cmd/pr/shared/comments.go:186
↓ 1 callersFunctionformatReactionGroup
(rg api.ReactionGroup)
pkg/cmd/pr/shared/reaction_groups.go:22
↓ 1 callersFunctionformatRetentionPeriodDays
(codespace codespace)
pkg/cmd/codespace/view.go:124
↓ 1 callersFunctionformatSpecialQualifiers
(qualifier string, vs []string, specialGroupsToOR [][]string)
pkg/search/query.go:188
↓ 1 callersFunctionformattedReviewerState
formattedReviewerState formats a reviewerState with state color
pkg/cmd/pr/view/view.go:336
↓ 1 callersMethodfragmentType
fragmentType finds the first fragment, in query order, on a possible type.
script/ghmock/gqlscaffold.go:283
↓ 1 callersFunctionfromAPISession
(s session)
pkg/cmd/agent-task/capi/sessions.go:556
↓ 1 callersMethodfromEnv
()
acceptance/acceptance_test.go:1307
↓ 1 callersFunctiongenMan
(cmd *cobra.Command, header *GenManHeader)
internal/docs/man.go:210
↓ 1 callersFunctiongenManTreeFromOpts
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 callersMethodgenerate
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 callersFunctiongenerateBranchURL
(r ghrepo.Interface, branch string)
pkg/cmd/repo/view/view.go:227
↓ 1 callersFunctiongenerateChangelog
(commits []logEntry)
pkg/cmd/release/create/create.go:654
↓ 1 callersFunctiongenerateCodespaceList
(start int, end int)
internal/codespaces/api/api_test.go:20
↓ 1 callersFunctiongenerateMissingBinaryIssueBody
(currentPlatform string)
pkg/cmd/extension/manager.go:391
↓ 1 callersFunctiongenerateMissingBinaryIssueCreateCommand
(repoOwner string, repoName string, currentPlatform string)
pkg/cmd/extension/manager.go:386
↓ 1 callersFunctiongeneratePreviewURL
(apiClient *api.Client, baseRepo ghrepo.Interface, tb prShared.IssueMetadataState, projectsV1Support gh.Projec
pkg/cmd/issue/create/create.go:494
↓ 1 callersFunctiongeneratePullRequestNodeID
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 callersFunctiongenerateUserNodeID
(userID int64)
pkg/cmd/agent-task/capi/sessions.go:552
↓ 1 callersFunctiongenerateWorkflows
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 callersFunctiongetAttestationDetail
(tenant string, attr api.Attestation)
pkg/cmd/attestation/inspect/bundle.go:77
↓ 1 callersFunctiongetAttestationsFor
(t *testing.T, bundlePath string)
pkg/cmd/attestation/verification/sigstore_integration_test.go:190
↓ 1 callersFunctiongetAttestationsFor
(t *testing.T, bundlePath string)
pkg/cmd/attestation/verify/attestation_integration_test.go:19
↓ 1 callersFunctiongetBundleIssuer
(b *bundle.Bundle)
pkg/cmd/attestation/verification/sigstore.go:188
↓ 1 callersFunctiongetColor
(x int)
pkg/cmd/repo/credits/credits.go:284
↓ 1 callersFunctiongetCustomHTTPReqHeaders
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 callersFunctiongetDevContainer
(ctx context.Context, apiClient apiClient, codespace *api.Codespace)
pkg/cmd/codespace/ports.go:189
↓ 1 callersFunctiongetEnvPubKey
(client *api.Client, repo ghrepo.Interface, envName string)
pkg/cmd/secret/set/http.go:67
↓ 1 callersFunctiongetEnvSecrets
(client *http.Client, repo ghrepo.Interface, envName string)
pkg/cmd/secret/list/list.go:302
↓ 1 callersFunctiongetEnvVariables
(client *http.Client, repo ghrepo.Interface, envName string)
pkg/cmd/variable/list/list.go:204
↓ 1 callersFunctiongetFilesToRemove
(gist gistToUpdate, filename string)
pkg/cmd/gist/edit/edit.go:438
↓ 1 callersFunctiongetLatestReleaseInfo
(ctx context.Context, client *http.Client, repo string)
internal/update/update.go:116
↓ 1 callersFunctiongetLog
(httpClient *http.Client, hostname string, logPath safeurl.SafeURL)
pkg/cmd/run/view/view.go:490
↓ 1 callersFunctiongetLowestCertInChain
(ca *root.FulcioCertificateAuthority)
pkg/cmd/attestation/verification/sigstore.go:235
↓ 1 callersFunctiongetMachineName
getMachineName prompts the user to select the machine type, or validates the machine if non-empty.
pkg/cmd/codespace/create.go:520
↓ 1 callersFunctiongetMergeText
(client *http.Client, repo ghrepo.Interface, prID string, mergeMethod PullRequestMergeMethod)
pkg/cmd/pr/merge/http.go:121
↓ 1 callersFunctiongetNonRefreshableTokenFromKeyring
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 callersFunctiongetOrCreateDeviceID
()
internal/telemetry/telemetry.go:38
↓ 1 callersFunctiongetOrgPublicKey
(client *api.Client, host, orgName string, app shared.App)
pkg/cmd/secret/set/http.go:43
↓ 1 callersFunctiongetOrgSecrets
(client *http.Client, host, orgName string, showSelectedRepoInfo bool, app shared.App)
pkg/cmd/secret/list/list.go:251
↓ 1 callersFunctiongetOrgVariables
(client *http.Client, host, orgName string, showSelectedRepoInfo bool)
pkg/cmd/variable/list/list.go:212
↓ 1 callersFunctiongetParams
(opts *EditOptions)
pkg/cmd/release/edit/edit.go:136
← previousnext →3,201–3,300 of 7,572, ranked by callers