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
↓ 2 callers
Function
truncate
(s string, n int)
script/ghmock/report.go:554
↓ 2 callers
Function
typeForFilename
(fn string)
pkg/cmd/release/shared/upload.go:75
↓ 2 callers
Method
typeName
()
script/ghmock/introspection.go:14
↓ 2 callers
Function
unarchiveRun
(opts *UnarchiveOptions)
pkg/cmd/repo/unarchive/unarchive.go:67
↓ 2 callers
Method
unavailable
unavailable describes each schema that couldn't be loaded.
script/ghmock/checker.go:129
↓ 2 callers
Function
unescapePunctuation
unescapePunctuation drops the backslash from every backslash-escaped ASCII punctuation character, which is how markdown spells a literal one.
internal/attachments/references.go:464
↓ 2 callers
Function
unfinishedJournals
(root: string)
evals/src/core/sandbox.ts:121
↓ 2 callers
Function
unlockLockable
unlockLockable will unlock an issue or pull request
pkg/cmd/issue/lock/lock.go:329
↓ 2 callers
Function
unpinRun
(opts *UnpinOptions)
pkg/cmd/issue/unpin/unpin.go:83
↓ 2 callers
Function
updateBranchRun
(opts *UpdateBranchOptions)
pkg/cmd/pr/update-branch/update_branch.go:79
↓ 2 callers
Function
updateLabel
(apiClient *api.Client, repo ghrepo.Interface, opts *editOptions)
pkg/cmd/label/create.go:162
↓ 2 callers
Function
updateRun
(opts *UpdateOptions)
pkg/cmd/skills/update/update.go:153
↓ 2 callers
Function
uploadDeployKey
(httpClient *http.Client, repo ghrepo.Interface, keyFile io.Reader, title string, isWritable bool)
pkg/cmd/repo/deploy-key/add/http.go:14
↓ 2 callers
Function
uploadMatcher
(repositoryID int64, name string)
internal/attachments/test.go:81
↓ 2 callers
Function
uploadWithDelete
(ctx context.Context, httpClient *http.Client, hostname string, uploadURL safeurl.SafeURL, a AssetForUpload)
pkg/cmd/release/shared/upload.go:141
↓ 2 callers
Function
useCacheDir
useCacheDir gives a test its own cache folder and returns ghmock's folder inside it.
script/ghmock/schemafiles_test.go:42
↓ 2 callers
Function
userAndOrgs
Returns the current username and any orgs that user is a member of.
pkg/cmd/repo/create/http.go:358
↓ 2 callers
Function
v1Projects
v1Projects retrieves set of RepoProjects relevant to given repository: - Projects for repository - Projects for repository organization, if it belongs
api/queries_repo.go:1517
↓ 2 callers
Function
v2Projects
v2Projects retrieves set of ProjectV2 relevant to given repository: - ProjectsV2 owned by current user - ProjectsV2 linked to repository - ProjectsV2
api/queries_repo.go:1557
↓ 2 callers
Function
validateChildPath
(name string)
internal/safepaths/root.go:283
↓ 2 callers
Function
validateNWO
validateNWO returns an error if nwo is not a valid "owner/repo" repository reference.
pkg/cmd/codespace/common.go:256
↓ 2 callers
Method
validateName
(name string)
pkg/cmd/release/download/download.go:432
↓ 2 callers
Function
validateScope
(key, hostname string)
pkg/cmd/config/set/set.go:105
↓ 2 callers
Function
validateSquashMergeCommitMsg
(value string)
pkg/cmd/repo/edit/edit.go:693
↓ 2 callers
Function
verifyAttestations
(art artifact.DigestedArtifact, att []*api.Attestation, sgVerifier verification.SigstoreVerifier, ec verificat
pkg/cmd/attestation/verify/attestation.go:74
↓ 2 callers
Function
version
()
script/build.go:151
↓ 2 callers
Function
viewRuleset
(httpClient *http.Client, hostname string, path safeurl.SafeURL)
pkg/cmd/ruleset/view/http.go:28
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/discussion/view/view.go:239
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/ruleset/view/view.go:110
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/release/view/view.go:75
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/agent-task/view/view.go:134
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/issue/artifact/view/view.go:113
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/gist/view/view.go:81
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/repo/license/view/view.go:75
↓ 2 callers
Function
viewRun
(opts *viewOptions)
pkg/cmd/repo/autolink/view/view.go:62
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/repo/gitignore/view/view.go:67
↓ 2 callers
Function
viewRun
(ctx context.Context, opts *ViewOptions)
pkg/cmd/event/subscription/view/view.go:64
↓ 2 callers
Method
wait
(timeoutMs: number)
evals/src/suites/events/smoke-protocol.ts:139
↓ 2 callers
Function
waitForOptions
waitForOptions adds extra delay to let the bubbletea event loop settle after switching modes when no async search is triggered.
internal/prompter/huh_prompter_test.go:111
↓ 2 callers
Function
waitForWorkflowRun
(list func() (string, error), sleep func(time.Duration))
acceptance/acceptance_test.go:55
↓ 2 callers
Function
walkTree
walkTree enumerates files by fetching each tree level individually, avoiding the truncation limit of the recursive tree API. Recursion depth is bounde
internal/skills/discovery/discovery.go:910
↓ 2 callers
Function
where
where names a position in the body for error messages.
script/ghmock/set.go:427
↓ 2 callers
Function
withProblems
withProblems adds schema problems to a GraphQL request for report tests.
script/ghmock/log_test.go:328
↓ 2 callers
Method
withRetry
withRetry takes a generic function that sends an http request and retries only when the returned response has a >=500 status code.
internal/codespaces/api/api.go:1299
↓ 2 callers
Function
withoutRedirects
withoutRedirects makes sure that the POST request can not be redirected. The standard library will, by default, redirect requests (including POSTs) if
internal/barista/observability/telemetry.twirp.go:912
↓ 2 callers
Function
workflowRunIDFromOutput
(output string)
acceptance/acceptance_test.go:71
↓ 2 callers
Method
write
(chunk: string)
evals/src/suites/events/smoke-protocol.ts:130
↓ 2 callers
Function
writeJSONL
(w io.Writer, items []T)
script/ghmock/store.go:239
↓ 2 callers
Function
writeTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/create/create_test.go:1581
↓ 2 callers
Function
writeTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/edit/edit_test.go:1755
↓ 2 callers
Function
writeToOutput
writeToOutput writes file content to a local path and returns the final destination. Symlink output paths are refused. A directory target receives the
pkg/cmd/repo/read-file/read_file.go:262
↓ 1 callers
Method
AccessibleColors
(hostname string)
internal/config/config.go:136
↓ 1 callers
Method
AccessibleColors
AccessibleColors returns the configured accessible_colors setting, optionally scoped by host.
internal/gh/gh.go:44
↓ 1 callers
Method
AccessiblePrompter
(hostname string)
internal/config/config.go:141
↓ 1 callers
Method
ActiveTokenType
ActiveTokenType reports what kind of credential the active token for the hostname is, so a caller can decide whether it will do without handling the t
internal/gh/gh.go:246
↓ 1 callers
Method
ActiveTokenWithRefresh
(hostname string)
pkg/cmd/agent-task/capi/client.go:35
↓ 1 callers
Method
ActiveTokenWithRefresh
(string)
api/http_client.go:33
↓ 1 callers
Method
ActualMention
(commentURL safeurl.SafeURL)
pkg/cmd/status/status.go:233
↓ 1 callers
Method
Add
(value string)
pkg/set/string_set.go:17
↓ 1 callers
Function
AddBlockedBy
AddBlockedBy marks an issue as blocked by another issue.
api/queries_issue.go:590
↓ 1 callers
Function
AddCacheTTLHeader
AddCacheTTLHeader adds a header to the request telling the cache that the request should be cached for a specified amount of time.
api/http_client.go:221
↓ 1 callers
Function
AddMetadataToIssueParams
(client *api.Client, baseRepo ghrepo.Interface, params map[string]any, tb *IssueMetadataState, projectV1Suppor
pkg/cmd/pr/shared/params.go:59
↓ 1 callers
Function
AddPullRequestReviews
AddPullRequestReviews adds the given user and team reviewers to a pull request using the REST API. Team identifiers can be in "org/slug" format.
api/queries_pr_review.go:278
↓ 1 callers
Function
AddReview
(client *Client, repo ghrepo.Interface, pr *PullRequest, input *PullRequestReviewInput)
api/queries_pr_review.go:249
↓ 1 callers
Function
AddSubIssue
AddSubIssue adds a sub-issue to a parent issue.
api/queries_issue.go:538
↓ 1 callers
Function
AgentHelpList
AgentHelpList returns a newline-separated bulleted list of agents for help text.
internal/skills/registry/registry.go:381
↓ 1 callers
Function
AgentNames
AgentNames returns the display names of all agents for prompting.
internal/skills/registry/registry.go:390
↓ 1 callers
Function
AnnotationSymbol
(cs *iostreams.ColorScheme, a Annotation)
pkg/cmd/run/shared/shared.go:259
↓ 1 callers
Function
AssertOptions
(t *testing.T, expected, actual []string)
internal/prompter/test.go:146
↓ 1 callers
Method
AssigneeIds
(client *api.Client, repo ghrepo.Interface)
pkg/cmd/pr/shared/editable.go:106
↓ 1 callers
Method
AssigneeLogins
AssigneeLogins computes the final list of assignee logins from the current defaults plus any Add/Remove operations. Unlike AssigneeIds, this does not
pkg/cmd/pr/shared/editable.go:156
↓ 1 callers
Function
AssigneeSearchFunc
AssigneeSearchFunc returns a search function for MultiSelectWithSearch that dynamically fetches assignable actors for the given assignable (Issue/PR)
pkg/cmd/pr/shared/editable.go:662
↓ 1 callers
Function
AuthFlow
AuthFlow initiates an OAuth device or web application flow to acquire a token. The provided HTTP client should be a plain client that does not set aut
internal/authflow/flow.go:42
↓ 1 callers
Method
AuthToken
gh specific prompts AuthToken prompts the user to enter an authentication token.
internal/prompter/prompter.go:43
↓ 1 callers
Method
Begin
Begin captures initial facts and returns a handle for subsequent updates.
internal/telemetry/fake.go:25
↓ 1 callers
Method
Begin
Begin returns an inert handle without retaining the event.
internal/telemetry/telemetry.go:502
↓ 1 callers
Function
BodySurvey
(p Prompt, state *IssueMetadataState, templateContent string)
pkg/cmd/pr/shared/survey.go:92
↓ 1 callers
Method
BodyValue
()
pkg/cmd/pr/shared/editable.go:99
↓ 1 callers
Method
Browse
(string)
internal/browser/browser.go:10
↓ 1 callers
Method
Browser
(hostname string)
internal/config/config.go:146
↓ 1 callers
Method
Browser
Browser returns the configured browser, optionally scoped by host.
internal/gh/gh.go:48
↓ 1 callers
Method
BuildPolicyInformation
()
pkg/cmd/attestation/verification/policy.go:54
↓ 1 callers
Method
CacheDir
()
internal/config/config.go:239
↓ 1 callers
Function
CheckLinkedBranchFeature
(client *Client, host string)
api/queries_branch_issue_reference.go:92
↓ 1 callers
Method
Clean
Clean cleans the file path option values
pkg/cmd/attestation/inspect/options.go:26
↓ 1 callers
Method
Clipboard
()
internal/config/config.go:151
↓ 1 callers
Method
Close
Close closes the directory the writer opened, if any.
pkg/cmd/issue/artifact/download/download.go:345
↓ 1 callers
Method
Close
Close closes the underlying tunnel client SSH connection.
internal/codespaces/connection/connection.go:111
↓ 1 callers
Method
ColorLabels
(hostname string)
internal/config/config.go:156
↓ 1 callers
Method
ColorSupport256
()
pkg/iostreams/iostreams.go:108
↓ 1 callers
Function
CommentCreate
(client *Client, repoHost string, params CommentCreateInput)
api/queries_comments.go:56
↓ 1 callers
Function
CommentDelete
(client *Client, repoHost string, params CommentDeleteInput)
api/queries_comments.go:106
↓ 1 callers
Function
CommentList
(io *iostreams.IOStreams, comments api.Comments, reviews api.PullRequestReviews, preview bool)
pkg/cmd/pr/shared/comments.go:53
↓ 1 callers
Function
CommentUpdate
(client *Client, repoHost string, params CommentUpdateInput)
api/queries_comments.go:82
↓ 1 callers
Function
CommentableConfirmDeleteLastComment
(p Prompt)
pkg/cmd/pr/shared/commentable.go:442
↓ 1 callers
Function
CommentableConfirmSubmitSurvey
(p Prompt)
pkg/cmd/pr/shared/commentable.go:407
↓ 1 callers
Function
CommentableEditSurvey
(cf func() (gh.Config, error), io *iostreams.IOStreams)
pkg/cmd/pr/shared/commentable.go:432
↓ 1 callers
Function
CommentableInteractiveCreateIfNoneSurvey
(p Prompt)
pkg/cmd/pr/shared/commentable.go:426
↓ 1 callers
Function
CommentableInteractiveEditSurvey
(cf func() (gh.Config, error), io *iostreams.IOStreams)
pkg/cmd/pr/shared/commentable.go:413
↓ 1 callers
Method
CommitBody
(ctx context.Context, sha string)
git/client.go:417
← previous
next →
2,301–2,400 of 7,572, ranked by callers