MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 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:881
↓ 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:133
↓ 1 callersMethodAccessibleColors
AccessibleColors returns the configured accessible_colors setting, optionally scoped by host.
internal/gh/gh.go:43
↓ 1 callersMethodAccessiblePrompter
(hostname string)
internal/config/config.go:138
↓ 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:245
↓ 1 callersMethodActiveTokenWithRefresh
(hostname string)
pkg/cmd/agent-task/capi/client.go:35
↓ 1 callersMethodActiveTokenWithRefresh
ActiveTokenWithRefresh retrieves the active credential for the given hostname and, when it is refreshable and its access token is expiring, renews and
internal/gh/gh.go:230
↓ 1 callersMethodActiveTokenWithRefresh
(string)
api/http_client.go:31
↓ 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:173
↓ 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:375
↓ 1 callersFunctionAgentNames
AgentNames returns the display names of all agents for prompting.
internal/skills/registry/registry.go:384
↓ 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:41
↓ 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:143
↓ 1 callersMethodBrowser
Browser returns the configured browser, optionally scoped by host.
internal/gh/gh.go:47
↓ 1 callersMethodBuildPolicyInformation
()
pkg/cmd/attestation/verification/policy.go:54
↓ 1 callersMethodCacheDir
()
internal/config/config.go:236
↓ 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:148
↓ 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:153
↓ 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
↓ 1 callersFunctionComparePullRequestBaseBranchWith
(client *Client, repo ghrepo.Interface, prNumber int, headRef string)
api/queries_pr.go:886
↓ 1 callersMethodConfigureOurs
(hostname string)
pkg/cmd/auth/setupgit/setupgit.go:16
↓ 1 callersMethodConfigureOurs
(hostname string)
pkg/cmd/auth/shared/git_credential.go:13
↓ 1 callersMethodConfiguredHelper
ConfiguredHelper returns the configured git credential helper for a given hostname.
pkg/cmd/auth/shared/gitcredentials/helper_config.go:92
↓ 1 callersMethodConfirm
(string, bool)
pkg/cmd/pr/shared/editable.go:369
↓ 1 callersMethodConfirmDeletion
ConfirmDeletion prompts the user to confirm deletion of a resource by typing the requiredValue.
internal/prompter/prompter.go:46
↓ 1 callersMethodConfirmDeletionCalls
ConfirmDeletionCalls gets all the calls that were made to ConfirmDeletion. Check the length with: len(mockedPrompter.ConfirmDeletionCalls())
internal/prompter/prompter_mock.go:255
↓ 1 callersFunctionConfirmPRSubmission
(p Prompt, allowPreview, allowMetadata, isDraft bool)
pkg/cmd/pr/shared/survey.go:51
↓ 1 callersMethodConnectToForwardedPort
ConnectToForwardedPort implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:21
↓ 1 callersMethodConnectToForwardedPort
(ctx context.Context, conn io.ReadWriteCloser, opts ForwardPortOpts)
internal/codespaces/portforwarder/port_forwarder.go:47
↓ 1 callersMethodConnectToForwardedPort
ConnectToForwardedPort connects to the forwarded port via a given ReadWriteCloser. Optionally, it detects traffic over the connection and sends activi
internal/codespaces/portforwarder/port_forwarder.go:232
↓ 1 callersFunctionConvertPullRequestToDraft
(client *Client, repo ghrepo.Interface, pr *PullRequest)
api/queries_pr.go:854
↓ 1 callersFunctionCopy
Copy runs an scp command over the specified port. scpArgs should contain both scp flags as well as the list of files to copy, with the flags first. R
internal/codespaces/ssh.go:42
↓ 1 callersMethodCount
()
api/reaction_groups.go:42
↓ 1 callersMethodCreate
(repo ghrepo.Interface, request AutolinkCreateRequest)
pkg/cmd/repo/autolink/create/http.go:25
↓ 1 callersMethodCreate
(key string, content io.Reader)
pkg/cmd/run/view/view.go:48
↓ 1 callersMethodCreate
Create creates a new Codespace
pkg/cmd/codespace/create.go:129
↓ 1 callersMethodCreateBranch
(string, string, string)
pkg/cmd/repo/sync/git.go:13
↓ 1 callersMethodCreateCalls
CreateCalls gets all the calls that were made to Create. Check the length with: len(mockedArtifactClient.CreateCalls())
pkg/cmd/issue/artifact/client/client_mock.go:179
↓ 1 callersMethodCreateCalls
CreateCalls gets all the calls that were made to Create. Check the length with: len(mockedExtensionManager.CreateCalls())
pkg/extensions/manager_mock.go:172
↓ 1 callersMethodCreateJob
(ctx context.Context, owner, repo, problemStatement, baseBranch string, customAgent string)
pkg/cmd/agent-task/capi/client.go:17
↓ 1 callersFunctionCreateLinkedBranch
(client *Client, host string, repoID, issueID, branchID, branchName string)
api/queries_branch_issue_reference.go:15
↓ 1 callersFunctionCreatePullRequest
CreatePullRequest creates a pull request in a GitHub repository
api/queries_pr.go:490
↓ 1 callersMethodCreateSubscriptionCalls
CreateSubscriptionCalls gets all the calls that were made to CreateSubscription. Check the length with: len(mockedEventClient.CreateSubscriptionCall
pkg/cmd/event/client/client_mock.go:130
↓ 1 callersFunctionCurrentLoginNameAndOrgs
(client *Client, hostname string)
api/queries_user.go:17
↓ 1 callersFunctionCurrentUserID
(client *Client, hostname string)
api/queries_user.go:37
↓ 1 callersFunctionCurrentUserProjectsV2
CurrentUserProjectsV2 fetches all open projectsV2 for current user.
api/queries_projects_v2.go:287
↓ 1 callersMethodCurrentVersion
CurrentVersion calls CurrentVersionFunc.
pkg/extensions/extension_mock.go:133
↓ 1 callersFunctionDataDir
()
internal/config/config.go:995
↓ 1 callersMethodDelete
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/delete/http.go:17
↓ 1 callersMethodDelete
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/delete/delete.go:28
↓ 1 callersMethodDelete
(ctx context.Context, opts deleteOptions)
pkg/cmd/codespace/delete.go:92
↓ 1 callersMethodDelete
Delete removes an alias.
internal/gh/gh.go:342
↓ 1 callersMethodDeleteCodespace
(ctx context.Context, name string, orgName string, userName string)
pkg/cmd/codespace/common.go:74
← previousnext →2,301–2,400 of 7,487, ranked by callers