MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 2 callersFunctiontruncate
(s string, n int)
script/ghmock/report.go:554
↓ 2 callersFunctiontypeForFilename
(fn string)
pkg/cmd/release/shared/upload.go:75
↓ 2 callersMethodtypeName
()
script/ghmock/introspection.go:14
↓ 2 callersFunctionunarchiveRun
(opts *UnarchiveOptions)
pkg/cmd/repo/unarchive/unarchive.go:67
↓ 2 callersMethodunavailable
unavailable describes each schema that couldn't be loaded.
script/ghmock/checker.go:129
↓ 2 callersFunctionunescapePunctuation
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 callersFunctionunfinishedJournals
(root: string)
evals/src/core/sandbox.ts:121
↓ 2 callersFunctionunlockLockable
unlockLockable will unlock an issue or pull request
pkg/cmd/issue/lock/lock.go:329
↓ 2 callersFunctionunpinRun
(opts *UnpinOptions)
pkg/cmd/issue/unpin/unpin.go:83
↓ 2 callersFunctionupdateBranchRun
(opts *UpdateBranchOptions)
pkg/cmd/pr/update-branch/update_branch.go:79
↓ 2 callersFunctionupdateLabel
(apiClient *api.Client, repo ghrepo.Interface, opts *editOptions)
pkg/cmd/label/create.go:162
↓ 2 callersFunctionupdateRun
(opts *UpdateOptions)
pkg/cmd/skills/update/update.go:153
↓ 2 callersFunctionuploadDeployKey
(httpClient *http.Client, repo ghrepo.Interface, keyFile io.Reader, title string, isWritable bool)
pkg/cmd/repo/deploy-key/add/http.go:14
↓ 2 callersFunctionuploadMatcher
(repositoryID int64, name string)
internal/attachments/test.go:81
↓ 2 callersFunctionuploadWithDelete
(ctx context.Context, httpClient *http.Client, hostname string, uploadURL safeurl.SafeURL, a AssetForUpload)
pkg/cmd/release/shared/upload.go:141
↓ 2 callersFunctionuseCacheDir
useCacheDir gives a test its own cache folder and returns ghmock's folder inside it.
script/ghmock/schemafiles_test.go:42
↓ 2 callersFunctionuserAndOrgs
Returns the current username and any orgs that user is a member of.
pkg/cmd/repo/create/http.go:358
↓ 2 callersFunctionv1Projects
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 callersFunctionv2Projects
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 callersFunctionvalidateChildPath
(name string)
internal/safepaths/root.go:283
↓ 2 callersFunctionvalidateNWO
validateNWO returns an error if nwo is not a valid "owner/repo" repository reference.
pkg/cmd/codespace/common.go:256
↓ 2 callersMethodvalidateName
(name string)
pkg/cmd/release/download/download.go:432
↓ 2 callersFunctionvalidateScope
(key, hostname string)
pkg/cmd/config/set/set.go:105
↓ 2 callersFunctionvalidateSquashMergeCommitMsg
(value string)
pkg/cmd/repo/edit/edit.go:693
↓ 2 callersFunctionverifyAttestations
(art artifact.DigestedArtifact, att []*api.Attestation, sgVerifier verification.SigstoreVerifier, ec verificat
pkg/cmd/attestation/verify/attestation.go:74
↓ 2 callersFunctionversion
()
script/build.go:151
↓ 2 callersFunctionviewRuleset
(httpClient *http.Client, hostname string, path safeurl.SafeURL)
pkg/cmd/ruleset/view/http.go:28
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/discussion/view/view.go:239
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/ruleset/view/view.go:110
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/release/view/view.go:75
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/agent-task/view/view.go:134
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/issue/artifact/view/view.go:113
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/gist/view/view.go:81
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/repo/license/view/view.go:75
↓ 2 callersFunctionviewRun
(opts *viewOptions)
pkg/cmd/repo/autolink/view/view.go:62
↓ 2 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/repo/gitignore/view/view.go:67
↓ 2 callersFunctionviewRun
(ctx context.Context, opts *ViewOptions)
pkg/cmd/event/subscription/view/view.go:64
↓ 2 callersMethodwait
(timeoutMs: number)
evals/src/suites/events/smoke-protocol.ts:139
↓ 2 callersFunctionwaitForOptions
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 callersFunctionwaitForWorkflowRun
(list func() (string, error), sleep func(time.Duration))
acceptance/acceptance_test.go:55
↓ 2 callersFunctionwalkTree
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 callersFunctionwhere
where names a position in the body for error messages.
script/ghmock/set.go:427
↓ 2 callersFunctionwithProblems
withProblems adds schema problems to a GraphQL request for report tests.
script/ghmock/log_test.go:328
↓ 2 callersMethodwithRetry
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 callersFunctionwithoutRedirects
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 callersFunctionworkflowRunIDFromOutput
(output string)
acceptance/acceptance_test.go:71
↓ 2 callersMethodwrite
(chunk: string)
evals/src/suites/events/smoke-protocol.ts:130
↓ 2 callersFunctionwriteJSONL
(w io.Writer, items []T)
script/ghmock/store.go:239
↓ 2 callersFunctionwriteTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/create/create_test.go:1581
↓ 2 callersFunctionwriteTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/edit/edit_test.go:1755
↓ 2 callersFunctionwriteToOutput
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 callersMethodAccessibleColors
(hostname string)
internal/config/config.go:136
↓ 1 callersMethodAccessibleColors
AccessibleColors returns the configured accessible_colors setting, optionally scoped by host.
internal/gh/gh.go:44
↓ 1 callersMethodAccessiblePrompter
(hostname string)
internal/config/config.go:141
↓ 1 callersMethodActiveTokenType
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 callersMethodActiveTokenWithRefresh
(hostname string)
pkg/cmd/agent-task/capi/client.go:35
↓ 1 callersMethodActiveTokenWithRefresh
(string)
api/http_client.go:33
↓ 1 callersMethodActualMention
(commentURL safeurl.SafeURL)
pkg/cmd/status/status.go:233
↓ 1 callersMethodAdd
(value string)
pkg/set/string_set.go:17
↓ 1 callersFunctionAddBlockedBy
AddBlockedBy marks an issue as blocked by another issue.
api/queries_issue.go:590
↓ 1 callersFunctionAddCacheTTLHeader
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 callersFunctionAddMetadataToIssueParams
(client *api.Client, baseRepo ghrepo.Interface, params map[string]any, tb *IssueMetadataState, projectV1Suppor
pkg/cmd/pr/shared/params.go:59
↓ 1 callersFunctionAddPullRequestReviews
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 callersFunctionAddReview
(client *Client, repo ghrepo.Interface, pr *PullRequest, input *PullRequestReviewInput)
api/queries_pr_review.go:249
↓ 1 callersFunctionAddSubIssue
AddSubIssue adds a sub-issue to a parent issue.
api/queries_issue.go:538
↓ 1 callersFunctionAgentHelpList
AgentHelpList returns a newline-separated bulleted list of agents for help text.
internal/skills/registry/registry.go:381
↓ 1 callersFunctionAgentNames
AgentNames returns the display names of all agents for prompting.
internal/skills/registry/registry.go:390
↓ 1 callersFunctionAnnotationSymbol
(cs *iostreams.ColorScheme, a Annotation)
pkg/cmd/run/shared/shared.go:259
↓ 1 callersFunctionAssertOptions
(t *testing.T, expected, actual []string)
internal/prompter/test.go:146
↓ 1 callersMethodAssigneeIds
(client *api.Client, repo ghrepo.Interface)
pkg/cmd/pr/shared/editable.go:106
↓ 1 callersMethodAssigneeLogins
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 callersFunctionAssigneeSearchFunc
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 callersFunctionAuthFlow
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 callersMethodAuthToken
gh specific prompts AuthToken prompts the user to enter an authentication token.
internal/prompter/prompter.go:43
↓ 1 callersMethodBegin
Begin captures initial facts and returns a handle for subsequent updates.
internal/telemetry/fake.go:25
↓ 1 callersMethodBegin
Begin returns an inert handle without retaining the event.
internal/telemetry/telemetry.go:502
↓ 1 callersFunctionBodySurvey
(p Prompt, state *IssueMetadataState, templateContent string)
pkg/cmd/pr/shared/survey.go:92
↓ 1 callersMethodBodyValue
()
pkg/cmd/pr/shared/editable.go:99
↓ 1 callersMethodBrowse
(string)
internal/browser/browser.go:10
↓ 1 callersMethodBrowser
(hostname string)
internal/config/config.go:146
↓ 1 callersMethodBrowser
Browser returns the configured browser, optionally scoped by host.
internal/gh/gh.go:48
↓ 1 callersMethodBuildPolicyInformation
()
pkg/cmd/attestation/verification/policy.go:54
↓ 1 callersMethodCacheDir
()
internal/config/config.go:239
↓ 1 callersFunctionCheckLinkedBranchFeature
(client *Client, host string)
api/queries_branch_issue_reference.go:92
↓ 1 callersMethodClean
Clean cleans the file path option values
pkg/cmd/attestation/inspect/options.go:26
↓ 1 callersMethodClipboard
()
internal/config/config.go:151
↓ 1 callersMethodClose
Close closes the directory the writer opened, if any.
pkg/cmd/issue/artifact/download/download.go:345
↓ 1 callersMethodClose
Close closes the underlying tunnel client SSH connection.
internal/codespaces/connection/connection.go:111
↓ 1 callersMethodColorLabels
(hostname string)
internal/config/config.go:156
↓ 1 callersMethodColorSupport256
()
pkg/iostreams/iostreams.go:108
↓ 1 callersFunctionCommentCreate
(client *Client, repoHost string, params CommentCreateInput)
api/queries_comments.go:56
↓ 1 callersFunctionCommentDelete
(client *Client, repoHost string, params CommentDeleteInput)
api/queries_comments.go:106
↓ 1 callersFunctionCommentList
(io *iostreams.IOStreams, comments api.Comments, reviews api.PullRequestReviews, preview bool)
pkg/cmd/pr/shared/comments.go:53
↓ 1 callersFunctionCommentUpdate
(client *Client, repoHost string, params CommentUpdateInput)
api/queries_comments.go:82
↓ 1 callersFunctionCommentableConfirmDeleteLastComment
(p Prompt)
pkg/cmd/pr/shared/commentable.go:442
↓ 1 callersFunctionCommentableConfirmSubmitSurvey
(p Prompt)
pkg/cmd/pr/shared/commentable.go:407
↓ 1 callersFunctionCommentableEditSurvey
(cf func() (gh.Config, error), io *iostreams.IOStreams)
pkg/cmd/pr/shared/commentable.go:432
↓ 1 callersFunctionCommentableInteractiveCreateIfNoneSurvey
(p Prompt)
pkg/cmd/pr/shared/commentable.go:426
↓ 1 callersFunctionCommentableInteractiveEditSurvey
(cf func() (gh.Config, error), io *iostreams.IOStreams)
pkg/cmd/pr/shared/commentable.go:413
↓ 1 callersMethodCommitBody
(ctx context.Context, sha string)
git/client.go:417
← previousnext →2,301–2,400 of 7,572, ranked by callers