Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 1 callers
Function
toOrderByAndDirection
(sort, order string)
pkg/cmd/discussion/list/list.go:165
↓ 1 callers
Function
token
(t: TestContext)
evals/src/review.test.ts:7
↓ 1 callers
Function
totalApprovals
(pr *api.PullRequest)
pkg/cmd/pr/status/status.go:221
↓ 1 callers
Function
trajectory
(id: string)
evals/src/replay.ts:17
↓ 1 callers
Function
transferRun
(opts *TransferOptions)
pkg/cmd/issue/transfer/transfer.go:69
↓ 1 callers
Method
transient
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 callers
Function
transportCode
(error: unknown)
evals/src/core/github.ts:29
↓ 1 callers
Function
trial
()
evals/src/cleanup.test.ts:37
↓ 1 callers
Method
trial
(stimulus: Stimulus, options: ExecutorOptions)
evals/src/core/executor.ts:108
↓ 1 callers
Method
trigger
The running call the actor may act during, if any.
evals/src/core/suite.ts:45
↓ 1 callers
Function
triggerUpstreamMerge
(client *api.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/sync/http.go:42
↓ 1 callers
Function
trimAngles
(s string)
internal/attachments/references.go:455
↓ 1 callers
Function
trimGraphQL
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 callers
Function
trimTrailingPathSeparators
(path string)
pkg/cmd/repo/read-file/read_file.go:311
↓ 1 callers
Function
trimTrailingSeparators
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 callers
Function
truncateAsUTF16
* 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 callers
Function
truncateForProcessing
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 callers
Function
truncateLines
(content string, width int)
pkg/cmd/extension/browse/model.go:670
↓ 1 callers
Function
tryDetermineDefaultPushTarget
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 callers
Function
tryParseIssueFromURL
tryParseIssueFromURL tries to parse an issue number and repo from a URL.
pkg/cmd/issue/shared/lookup.go:76
↓ 1 callers
Method
tunnel
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 callers
Function
twinkle
(starLine string)
pkg/cmd/repo/credits/credits.go:275
↓ 1 callers
Function
twirpErrorFromIntermediary
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 callers
Function
typeMatches
typeMatches reports whether a decoded JSON value has one of a schema's types.
script/ghmock/restscaffold.go:391
↓ 1 callers
Function
unarchiveItemArgs
(config archiveItemConfig, itemID string)
pkg/cmd/project/item-archive/item_archive.go:139
↓ 1 callers
Function
unarchiveRepo
(client *http.Client, repo *api.Repository)
pkg/cmd/repo/unarchive/http.go:10
↓ 1 callers
Function
unexpectedSkills
(events: unknown[], expected: string[])
evals/src/core/observer.ts:171
↓ 1 callers
Function
unionNames
unionNames lists request names from both runs, in the order first seen.
script/ghmock/report.go:422
↓ 1 callers
Function
unlinkRepo
(c *api.Client, config unlinkConfig)
pkg/cmd/project/unlink/unlink.go:196
↓ 1 callers
Function
unlinkTeam
(c *api.Client, config unlinkConfig)
pkg/cmd/project/unlink/unlink.go:211
↓ 1 callers
Function
unmarkTemplateArgs
(config markTemplateConfig)
pkg/cmd/project/mark-template/mark_template.go:141
↓ 1 callers
Function
unpinIssue
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/unpin/unpin.go:116
↓ 1 callers
Function
unreferencedError
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 callers
Function
unsafeInFileName
(r rune)
pkg/cmd/issue/artifact/download/download.go:322
↓ 1 callers
Function
unsetEnv
(t *testing.T, name string)
git/test.go:66
↓ 1 callers
Function
updateComment
(commentable Commentable, opts *CommentableOptions, uploader *attachments.Uploader)
pkg/cmd/pr/shared/commentable.go:270
↓ 1 callers
Function
updateDraftIssue
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:443
↓ 1 callers
Function
updateGist
(apiClient *api.Client, hostname string, gist *shared.Gist)
pkg/cmd/gist/rename/rename.go:117
↓ 1 callers
Function
updateGist
(apiClient *api.Client, hostname string, gist gistToUpdate)
pkg/cmd/gist/edit/edit.go:399
↓ 1 callers
Function
updateIssue
(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdateIssueInput)
pkg/cmd/pr/shared/editable_http.go:186
↓ 1 callers
Function
updateItemValues
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:472
↓ 1 callers
Method
updatePath
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 callers
Function
updatePullRequest
(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestInput)
pkg/cmd/pr/shared/editable_http.go:197
↓ 1 callers
Function
updatePullRequest
(httpClient *http.Client, repo ghrepo.Interface, id string, number int, editable shared.Editable)
pkg/cmd/pr/edit/edit.go:497
↓ 1 callers
Function
updatePullRequestBranch
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 callers
Function
updatePullRequestReviews
(httpClient *http.Client, repo ghrepo.Interface, prID string, number int, editable shared.Editable)
pkg/cmd/pr/edit/edit.go:510
↓ 1 callers
Function
updatePullRequestReviewsGraphQL
updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation. This mutation replaces the entire reviewer set (union: false).
pkg/cmd/pr/edit/edit.go:554
↓ 1 callers
Function
updatePullRequestReviewsREST
updatePullRequestReviewsREST uses the REST API to add/remove reviewers. This is the legacy path for GHES compatibility.
pkg/cmd/pr/edit/edit.go:561
↓ 1 callers
Function
updateRemote
(repo ghrepo.Interface, renamed ghrepo.Interface, opts *RenameOptions)
pkg/cmd/repo/rename/rename.go:173
↓ 1 callers
Method
updateSearch
(msg tea.KeyPressMsg)
internal/prompter/multi_select_with_search.go:252
↓ 1 callers
Method
updateSelect
(msg tea.KeyPressMsg)
internal/prompter/multi_select_with_search.go:276
↓ 1 callers
Function
updateSkillInPlace
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:418
↓ 1 callers
Method
upgradeBinExtension
(ext *Extension)
pkg/cmd/extension/manager.go:571
↓ 1 callers
Method
upgradeGitExtension
(ext *Extension, force bool)
pkg/cmd/extension/manager.go:552
↓ 1 callers
Function
uploadAsset
(ctx context.Context, httpClient *http.Client, uploadURL safeurl.SafeURL, asset AssetForUpload)
pkg/cmd/release/shared/upload.go:157
↓ 1 callers
Function
uploadRun
(opts *UploadOptions)
pkg/cmd/release/upload/upload.go:78
↓ 1 callers
Method
useVariables
useVariables sets the variables gh sent, which @include and @skip read.
script/ghmock/gqlscaffold.go:66
↓ 1 callers
Function
userAssetsFromArgs
(args []string)
internal/attachments/flags.go:60
↓ 1 callers
Method
userOrgLogins
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 callers
Method
v1ProjectNameToID
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 callers
Method
v2ProjectTitleToID
(title string)
api/queries_repo.go:865
↓ 1 callers
Function
validateAcceptanceScripts
(t *testing.T, tsEnv testScriptEnv, groups []string)
acceptance/acceptance_test.go:640
↓ 1 callers
Function
validateRepoOrTeamFlag
(opts *linkOpts)
pkg/cmd/project/link/link.go:112
↓ 1 callers
Function
validateRepoOrTeamFlag
(opts *unlinkOpts)
pkg/cmd/project/unlink/unlink.go:112
↓ 1 callers
Method
value
(v any, sel ast.SelectionSet)
script/ghmock/trim.go:92
↓ 1 callers
Method
verify
(attestation *api.Attestation, policy verify.PolicyBuilder)
pkg/cmd/attestation/verification/sigstore.go:245
↓ 1 callers
Function
verifyCertExtensions
(given, expected certificate.Summary)
pkg/cmd/attestation/verification/extensions.go:43
↓ 1 callers
Function
versionGreaterThan
(v, w string)
internal/update/update.go:180
↓ 1 callers
Function
viewOrgRuleset
(httpClient *http.Client, orgLogin string, databaseId string, host string)
pkg/cmd/ruleset/view/http.go:20
↓ 1 callers
Function
viewRepoRuleset
(httpClient *http.Client, repo ghrepo.Interface, databaseId string)
pkg/cmd/ruleset/view/http.go:12
↓ 1 callers
Function
viewWorkflowContent
(opts *ViewOptions, client *api.Client, repo ghrepo.Interface, workflow *shared.Workflow, ref string)
pkg/cmd/workflow/view/view.go:159
↓ 1 callers
Function
viewWorkflowInfo
(opts *ViewOptions, client *api.Client, repo ghrepo.Interface, workflow *shared.Workflow)
pkg/cmd/workflow/view/view.go:205
↓ 1 callers
Function
visibilityLabel
(repo search.Repository)
pkg/cmd/search/repos/repos.go:196
↓ 1 callers
Function
visibilityLabel
(repo api.Repository)
pkg/cmd/repo/list/list.go:249
↓ 1 callers
Function
visibilityToAccessControlEntries
visibilityToAccessControlEntries converts the given visibility to access control entries that can be used by Dev Tunnels.
internal/codespaces/portforwarder/port_forwarder.go:375
↓ 1 callers
Function
visit
(directory: string, depth: number)
evals/src/core/sandbox.ts:125
↓ 1 callers
Function
vscodeProtocolURL
(codespaceName string, useInsiders bool)
pkg/cmd/codespace/code.go:64
↓ 1 callers
Method
wait
(id: number, timeoutMs: number)
evals/src/suites/events/smoke-protocol.ts:100
↓ 1 callers
Function
waitFor
waitFor waits until gh exits, the context ends or ready returns true. It reports whether gh exited, storing cmd.Wait's error in waitErr.
script/ghmock/terminal.go:107
↓ 1 callers
Function
waitForEchoDisabled
waitForEchoDisabled polls the TTY until echo mode is disabled or the timeout is reached. This is used in password and auth token tests to ensure that
internal/prompter/accessible_prompter_test.go:963
↓ 1 callers
Function
waitForEnter
(r io.Reader)
pkg/cmd/pr/shared/commentable.go:448
↓ 1 callers
Function
waitForEnter
(r io.Reader)
internal/authflow/flow.go:160
↓ 1 callers
Function
waitForExit
(child: ChildProcess)
evals/src/smoke.ts:56
↓ 1 callers
Method
waitForReview
(id: number)
evals/src/suites/events/smoke-protocol.ts:4
↓ 1 callers
Function
waitForSearch
waitForSearch returns an interactionStep that blocks until the field's current async search completes. It wires a one-shot callback into the field's o
internal/prompter/huh_prompter_test.go:122
↓ 1 callers
Method
warnIfDiverged
Warn if the pull request and the remote branch have diverged.
pkg/cmd/pr/merge/merge.go:224
↓ 1 callers
Method
watchIdle
watchIdle closes body when it delivers no data, not even a heartbeat, for the idle timeout, so a connection that died without being closed is detected
pkg/cmd/event/listen/listen.go:428
↓ 1 callers
Function
withAccessToken
(accessToken string)
internal/codespaces/connection/tunnels_api_server_mock.go:276
↓ 1 callers
Function
withQuery
(e loggedRequest, query string)
script/ghmock/run_test.go:1676
↓ 1 callers
Function
withSeq
(e loggedRequest, seq int)
script/ghmock/run_test.go:1671
↓ 1 callers
Function
within
within reports whether i falls inside any of ranges.
internal/attachments/references.go:590
↓ 1 callers
Function
withoutAllOf
(s *openapi3.Schema)
script/ghmock/restscaffold.go:376
↓ 1 callers
Function
withoutPath
withoutPath drops the path from a file system error about the file itself, since the result line already names it. Such an error can name the file by
pkg/cmd/issue/artifact/download/download.go:485
↓ 1 callers
Function
words
(text: string)
evals/src/suites/events/grading/observations.ts:48
↓ 1 callers
Function
workingDirFiles
workingDirFiles returns everything in the working directory, with slash-separated paths: a file's content, "" for a directory, whose path ends in "/",
pkg/cmd/issue/artifact/download/download_test.go:1547
↓ 1 callers
Function
wrapFooter
(footer string, width int)
pkg/cmd/extension/browse/model.go:502
↓ 1 callers
Method
write
write writes an artifact's file at path, and reports whether it skipped path instead. It checks path first, as gh release download does before downloa
pkg/cmd/issue/artifact/download/download.go:399
↓ 1 callers
Method
write
Records stream output. Malformed output fails the current and later waits instead of throwing, because this * runs in a stream callback, where a th
evals/src/suites/events/smoke-protocol.ts:73
↓ 1 callers
Function
writeConfigFixture
(t *testing.T, directory string, files map[string][]byte)
script/ghmock/run_test.go:1216
↓ 1 callers
Method
writeEvent
writeEvent prints a compact JSON event as one line, or formatted with --jq or --template.
pkg/cmd/event/listen/listen.go:501
← previous
next →
4,001–4,100 of 7,487, ranked by callers