MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionstubStateDir
(dir string)
internal/telemetry/telemetry_test.go:17
↓ 1 callersFunctionstubTreeAndBlob
(reg *httpmock.Registry, treeSHA string)
internal/skills/installer/installer_test.go:316
↓ 1 callersFunctionsub
(n: number)
evals/src/github.test.ts:82
↓ 1 callersFunctionsubmitPR
(opts CreateOptions, ctx CreateContext, state shared.IssueMetadataState, projectV1Support gh.ProjectsV1Support
pkg/cmd/pr/create/create.go:1095
↓ 1 callersMethodsubmitReview
(head: string, event: "REQUEST_CHANGES" | "APPROVE", body: string)
evals/src/suites/events/smoke-protocol.ts:3
↓ 1 callersMethodsubscribe
subscribe creates the subscription, retrying while the API is unavailable.
pkg/cmd/event/listen/listen.go:404
↓ 1 callersFunctionsubscriptionCommand
(call: Call)
evals/src/suites/events/commands.ts:28
↓ 1 callersFunctionsuccessStatus
successStatus picks the first documented 2xx status.
script/ghmock/restscaffold.go:86
↓ 1 callersFunctionsuggestNextTag
suggestNextTag increments the patch version of a semver tag.
pkg/cmd/skills/publish/publish.go:944
↓ 1 callersFunctionsupportedContentType
supportedContentType maps a file extension to the content type the endpoint expects. The extension is all gh checks, since the endpoint accepts mislab
internal/attachments/userasset.go:172
↓ 1 callersFunctionswapURLHost
swapURLHost replaces the host component of rawURL with newHost, preserving scheme, port (if already present in rawURL), path, and query unchanged.
pkg/cmd/api/http.go:164
↓ 1 callersFunctionsymlinkTestFile
symlinkTestFile creates a symlink, or skips the test where that needs a privilege the system doesn't grant, as on Windows by default.
pkg/cmd/issue/artifact/create/create_test.go:1589
↓ 1 callersFunctionsymlinkTestFile
symlinkTestFile creates a symlink, or skips the test where that needs a privilege the system doesn't grant, as on Windows by default.
pkg/cmd/issue/artifact/download/download_test.go:1537
↓ 1 callersFunctionsymlinkTestFile
symlinkTestFile creates a symlink, or skips the test where that needs a privilege the system doesn't grant, as on Windows by default.
pkg/cmd/issue/artifact/edit/edit_test.go:1763
↓ 1 callersFunctionsyncFork
(client *api.Client, repo ghrepo.Interface, branch, SHA string, force bool)
pkg/cmd/repo/sync/http.go:74
↓ 1 callersFunctionsyncLocalRepo
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:99
↓ 1 callersFunctionsyncRemoteRepo
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:168
↓ 1 callersFunctiontask
()
evals/src/graders.test.ts:464
↓ 1 callersMethodtaskChecks
(evidence: Evidence)
evals/src/suites/events/scenarios/definition.ts:26
↓ 1 callersFunctiontelemetryFlags
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:47
↓ 1 callersFunctiontempFilePath
()
internal/update/update_test.go:485
↓ 1 callersFunctiontestArtifactZip
(t *testing.T)
pkg/cmd/run/download/http_test.go:160
↓ 1 callersFunctiontestCloser
testCloser is a helper to fail the test if a Closer fails to close.
pkg/iostreams/iostreams_progress_indicator_test.go:249
↓ 1 callersFunctiontestCloser
testCloser is a helper to fail the test if a Closer fails to close.
internal/prompter/accessible_prompter_test.go:953
↓ 1 callersFunctiontestConfig
()
pkg/cmd/issue/comment/comment_test.go:955
↓ 1 callersFunctiontestConfig
()
pkg/cmd/pr/comment/comment_test.go:910
↓ 1 callersFunctiontestScriptParamsFor
(t *testing.T, tsEnv testScriptEnv, fixtureRepositories *fixtureRepositoryManager, command string)
acceptance/acceptance_test.go:807
↓ 1 callersFunctiontestSelectApiMock
()
pkg/cmd/codespace/select_test.go:96
↓ 1 callersFunctiontestViewApiMock
()
pkg/cmd/codespace/view_test.go:95
↓ 1 callersFunctiontestingCodeApp
()
pkg/cmd/codespace/code_test.go:101
↓ 1 callersFunctiontestingLogsApp
()
pkg/cmd/codespace/logs_test.go:24
↓ 1 callersFunctiontestingRebuildApp
(mockCodespace api.Codespace)
pkg/cmd/codespace/rebuild_test.go:25
↓ 1 callersFunctiontestingSSHApp
()
pkg/cmd/codespace/ssh_test.go:283
↓ 1 callersFunctiontimestamp
timestamp returns t in RFC 3339 format, or an empty string for a null time.
pkg/cmd/issue/artifact/view/view.go:337
↓ 1 callersFunctiontlsFailures
tlsFailures lists, once each and in order, the hosts whose TLS handshake with ghmock failed, with the reason.
script/ghmock/report.go:119
↓ 1 callersFunctiontoConfigEntry
toConfigEntry is a helper function to convert a string value to a ConfigEntry with a given source. It's a bit of FP style but it allows us to map an
internal/config/config.go:99
↓ 1 callersFunctiontoGitHubV4Strings
toGitHubV4Strings converts a string slice to a githubv4.String slice, optionally appending a suffix to each element.
api/queries_pr_review.go:705
↓ 1 callersFunctiontoOrderByAndDirection
(sort, order string)
pkg/cmd/discussion/list/list.go:165
↓ 1 callersFunctiontoken
(t: TestContext)
evals/src/review.test.ts:7
↓ 1 callersFunctiontotalApprovals
(pr *api.PullRequest)
pkg/cmd/pr/status/status.go:220
↓ 1 callersFunctiontrajectory
(id: string)
evals/src/replay.ts:17
↓ 1 callersFunctiontransferRun
(opts *TransferOptions)
pkg/cmd/issue/transfer/transfer.go:69
↓ 1 callersMethodtransient
Whether an API error is transient for this route beyond the generic idempotent-retry rule. Subclasses add * rules for APIs that document extra retr
evals/src/core/github.ts:51
↓ 1 callersFunctiontransportCode
(error: unknown)
evals/src/core/github.ts:29
↓ 1 callersFunctiontrial
()
evals/src/cleanup.test.ts:37
↓ 1 callersMethodtrial
(stimulus: Stimulus, options: ExecutorOptions)
evals/src/core/executor.ts:108
↓ 1 callersMethodtrigger
The running call the actor may act during, if any.
evals/src/core/suite.ts:45
↓ 1 callersFunctiontriggerUpstreamMerge
(client *api.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/sync/http.go:42
↓ 1 callersFunctiontrimAngles
(s string)
internal/attachments/references.go:455
↓ 1 callersFunctiontrimGraphQL
trimGraphQL removes the fields that a query didn't ask for from a stored GraphQL response, because GitHub only sends what's asked for. One stored resp
script/ghmock/trim.go:21
↓ 1 callersFunctiontrimTrailingPathSeparators
(path string)
pkg/cmd/repo/read-file/read_file.go:311
↓ 1 callersFunctiontrimTrailingSeparators
trimTrailingSeparators drops the separators that end path, but keeps a root such as / or C:\ whole.
pkg/cmd/issue/artifact/download/download.go:378
↓ 1 callersFunctiontruncateAsUTF16
* If you're reading this comment by necessity, I'm sorry and if you're reading it for fun, you're welcome, you weirdo. What is the length of this str
pkg/cmd/run/view/logs.go:340
↓ 1 callersFunctiontruncateForProcessing
truncateForProcessing caps the working set before expensive enrichment. Each skill in the working set triggers a blob fetch (description) and potentia
pkg/cmd/skills/search/search.go:370
↓ 1 callersFunctiontruncateLines
(content string, width int)
pkg/cmd/extension/browse/model.go:670
↓ 1 callersFunctiontryDetermineDefaultPushTarget
tryDetermineDefaultPushTarget uses git configuration to make a best guess about where a branch is pushed to, and where it would be pushed to if the us
pkg/cmd/pr/shared/find_refs_resolution.go:317
↓ 1 callersFunctiontryParseIssueFromURL
tryParseIssueFromURL tries to parse an issue number and repo from a URL.
pkg/cmd/issue/shared/lookup.go:76
↓ 1 callersMethodtunnel
tunnel answers a CONNECT as the host gh asked for: it completes the TLS handshake with a certificate from ghmock's authority, then hands the connectio
script/ghmock/server.go:272
↓ 1 callersFunctiontwinkle
(starLine string)
pkg/cmd/repo/credits/credits.go:275
↓ 1 callersFunctiontwirpErrorFromIntermediary
twirpErrorFromIntermediary maps HTTP errors from non-twirp sources to twirp errors. The mapping is similar to gRPC: https://github.com/grpc/grpc/blob/
internal/barista/observability/telemetry.twirp.go:791
↓ 1 callersFunctiontypeMatches
typeMatches reports whether a decoded JSON value has one of a schema's types.
script/ghmock/restscaffold.go:391
↓ 1 callersFunctionunarchiveItemArgs
(config archiveItemConfig, itemID string)
pkg/cmd/project/item-archive/item_archive.go:139
↓ 1 callersFunctionunarchiveRepo
(client *http.Client, repo *api.Repository)
pkg/cmd/repo/unarchive/http.go:10
↓ 1 callersFunctionunexpectedSkills
(events: unknown[], expected: string[])
evals/src/core/observer.ts:171
↓ 1 callersFunctionunionNames
unionNames lists request names from both runs, in the order first seen.
script/ghmock/report.go:422
↓ 1 callersFunctionunlinkRepo
(c *api.Client, config unlinkConfig)
pkg/cmd/project/unlink/unlink.go:196
↓ 1 callersFunctionunlinkTeam
(c *api.Client, config unlinkConfig)
pkg/cmd/project/unlink/unlink.go:211
↓ 1 callersFunctionunmarkTemplateArgs
(config markTemplateConfig)
pkg/cmd/project/mark-template/mark_template.go:141
↓ 1 callersFunctionunpinIssue
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/unpin/unpin.go:116
↓ 1 callersFunctionunreferencedError
unreferencedError explains attached files that no document references, when there are several documents and none to append them to.
pkg/cmd/issue/artifact/create/create.go:482
↓ 1 callersFunctionunsafeInFileName
(r rune)
pkg/cmd/issue/artifact/download/download.go:322
↓ 1 callersFunctionunsetEnv
(t *testing.T, name string)
git/test.go:66
↓ 1 callersFunctionupdateComment
(commentable Commentable, opts *CommentableOptions, uploader *attachments.Uploader)
pkg/cmd/pr/shared/commentable.go:270
↓ 1 callersFunctionupdateDraftIssue
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:443
↓ 1 callersFunctionupdateGist
(apiClient *api.Client, hostname string, gist *shared.Gist)
pkg/cmd/gist/rename/rename.go:117
↓ 1 callersFunctionupdateGist
(apiClient *api.Client, hostname string, gist gistToUpdate)
pkg/cmd/gist/edit/edit.go:399
↓ 1 callersFunctionupdateIssue
(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdateIssueInput)
pkg/cmd/pr/shared/editable_http.go:186
↓ 1 callersFunctionupdateItemValues
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:472
↓ 1 callersMethodupdatePath
updatePath is where ghmock schemas update writes the file: the path in the environment variable if it's set, because that's the file ghmock uses, and
script/ghmock/schemafiles.go:99
↓ 1 callersFunctionupdatePullRequest
(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestInput)
pkg/cmd/pr/shared/editable_http.go:197
↓ 1 callersFunctionupdatePullRequest
(httpClient *http.Client, repo ghrepo.Interface, id string, number int, editable shared.Editable)
pkg/cmd/pr/edit/edit.go:496
↓ 1 callersFunctionupdatePullRequestBranch
updatePullRequestBranch calls the GraphQL API endpoint to update the given PR branch with latest changes of its base.
pkg/cmd/pr/update-branch/update_branch.go:140
↓ 1 callersFunctionupdatePullRequestReviews
(httpClient *http.Client, repo ghrepo.Interface, prID string, number int, editable shared.Editable)
pkg/cmd/pr/edit/edit.go:509
↓ 1 callersFunctionupdatePullRequestReviewsGraphQL
updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation. This mutation replaces the entire reviewer set (union: false).
pkg/cmd/pr/edit/edit.go:553
↓ 1 callersFunctionupdatePullRequestReviewsREST
updatePullRequestReviewsREST uses the REST API to add/remove reviewers. This is the legacy path for GHES compatibility.
pkg/cmd/pr/edit/edit.go:560
↓ 1 callersFunctionupdateRemote
(repo ghrepo.Interface, renamed ghrepo.Interface, opts *RenameOptions)
pkg/cmd/repo/rename/rename.go:173
↓ 1 callersMethodupdateSearch
(msg tea.KeyPressMsg)
internal/prompter/multi_select_with_search.go:252
↓ 1 callersMethodupdateSelect
(msg tea.KeyPressMsg)
internal/prompter/multi_select_with_search.go:276
↓ 1 callersFunctionupdateSkillInPlace
updateSkillInPlace installs the resolved update into a staging directory alongside the existing skill directory and, on success, atomically swaps the
pkg/cmd/skills/update/update.go:470
↓ 1 callersMethodupgradeBinExtension
(ext *Extension)
pkg/cmd/extension/manager.go:571
↓ 1 callersMethodupgradeGitExtension
(ext *Extension, force bool)
pkg/cmd/extension/manager.go:552
↓ 1 callersFunctionuploadAsset
(ctx context.Context, httpClient *http.Client, uploadURL safeurl.SafeURL, asset AssetForUpload)
pkg/cmd/release/shared/upload.go:157
↓ 1 callersFunctionuploadRun
(opts *UploadOptions)
pkg/cmd/release/upload/upload.go:78
↓ 1 callersMethoduseVariables
useVariables sets the variables gh sent, which @include and @skip read.
script/ghmock/gqlscaffold.go:66
↓ 1 callersFunctionuserAssetsFromArgs
(args []string)
internal/attachments/flags.go:60
↓ 1 callersMethoduserOrgLogins
userOrgLogins gets all the logins of the viewer and the organizations the viewer is a member of.
pkg/cmd/project/shared/queries/queries.go:1361
↓ 1 callersMethodv1ProjectNameToID
We use the word "titles" when referring to v1 and v2 projects. In reality, v1 projects really have "names", so there is a bit of a mismatch we just ne
api/queries_repo.go:855
↓ 1 callersMethodv2ProjectTitleToID
(title string)
api/queries_repo.go:865
↓ 1 callersFunctionvalidateAcceptanceScripts
(t *testing.T, tsEnv testScriptEnv, groups []string)
acceptance/acceptance_test.go:640
↓ 1 callersFunctionvalidateRepoOrTeamFlag
(opts *linkOpts)
pkg/cmd/project/link/link.go:112
← previousnext →4,001–4,100 of 7,572, ranked by callers