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
stubStateDir
(dir string)
internal/telemetry/telemetry_test.go:17
↓ 1 callers
Function
stubTreeAndBlob
(reg *httpmock.Registry, treeSHA string)
internal/skills/installer/installer_test.go:316
↓ 1 callers
Function
sub
(n: number)
evals/src/github.test.ts:82
↓ 1 callers
Function
submitPR
(opts CreateOptions, ctx CreateContext, state shared.IssueMetadataState, projectV1Support gh.ProjectsV1Support
pkg/cmd/pr/create/create.go:1095
↓ 1 callers
Method
submitReview
(head: string, event: "REQUEST_CHANGES" | "APPROVE", body: string)
evals/src/suites/events/smoke-protocol.ts:3
↓ 1 callers
Method
subscribe
subscribe creates the subscription, retrying while the API is unavailable.
pkg/cmd/event/listen/listen.go:404
↓ 1 callers
Function
subscriptionCommand
(call: Call)
evals/src/suites/events/commands.ts:28
↓ 1 callers
Function
successStatus
successStatus picks the first documented 2xx status.
script/ghmock/restscaffold.go:86
↓ 1 callers
Function
suggestNextTag
suggestNextTag increments the patch version of a semver tag.
pkg/cmd/skills/publish/publish.go:944
↓ 1 callers
Function
supportedContentType
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 callers
Function
swapURLHost
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 callers
Function
symlinkTestFile
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 callers
Function
symlinkTestFile
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 callers
Function
symlinkTestFile
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 callers
Function
syncFork
(client *api.Client, repo ghrepo.Interface, branch, SHA string, force bool)
pkg/cmd/repo/sync/http.go:74
↓ 1 callers
Function
syncLocalRepo
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:99
↓ 1 callers
Function
syncRemoteRepo
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:168
↓ 1 callers
Function
task
()
evals/src/graders.test.ts:464
↓ 1 callers
Method
taskChecks
(evidence: Evidence)
evals/src/suites/events/scenarios/definition.ts:26
↓ 1 callers
Function
telemetryFlags
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:47
↓ 1 callers
Function
tempFilePath
()
internal/update/update_test.go:485
↓ 1 callers
Function
testArtifactZip
(t *testing.T)
pkg/cmd/run/download/http_test.go:160
↓ 1 callers
Function
testCloser
testCloser is a helper to fail the test if a Closer fails to close.
pkg/iostreams/iostreams_progress_indicator_test.go:249
↓ 1 callers
Function
testCloser
testCloser is a helper to fail the test if a Closer fails to close.
internal/prompter/accessible_prompter_test.go:953
↓ 1 callers
Function
testConfig
()
pkg/cmd/issue/comment/comment_test.go:955
↓ 1 callers
Function
testConfig
()
pkg/cmd/pr/comment/comment_test.go:910
↓ 1 callers
Function
testScriptParamsFor
(t *testing.T, tsEnv testScriptEnv, fixtureRepositories *fixtureRepositoryManager, command string)
acceptance/acceptance_test.go:807
↓ 1 callers
Function
testSelectApiMock
()
pkg/cmd/codespace/select_test.go:96
↓ 1 callers
Function
testViewApiMock
()
pkg/cmd/codespace/view_test.go:95
↓ 1 callers
Function
testingCodeApp
()
pkg/cmd/codespace/code_test.go:101
↓ 1 callers
Function
testingLogsApp
()
pkg/cmd/codespace/logs_test.go:24
↓ 1 callers
Function
testingRebuildApp
(mockCodespace api.Codespace)
pkg/cmd/codespace/rebuild_test.go:25
↓ 1 callers
Function
testingSSHApp
()
pkg/cmd/codespace/ssh_test.go:283
↓ 1 callers
Function
timestamp
timestamp returns t in RFC 3339 format, or an empty string for a null time.
pkg/cmd/issue/artifact/view/view.go:337
↓ 1 callers
Function
tlsFailures
tlsFailures lists, once each and in order, the hosts whose TLS handshake with ghmock failed, with the reason.
script/ghmock/report.go:119
↓ 1 callers
Function
toConfigEntry
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 callers
Function
toGitHubV4Strings
toGitHubV4Strings converts a string slice to a githubv4.String slice, optionally appending a suffix to each element.
api/queries_pr_review.go:705
↓ 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:220
↓ 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:496
↓ 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:509
↓ 1 callers
Function
updatePullRequestReviewsGraphQL
updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation. This mutation replaces the entire reviewer set (union: false).
pkg/cmd/pr/edit/edit.go:553
↓ 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:560
↓ 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:470
↓ 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
← previous
next →
4,001–4,100 of 7,572, ranked by callers