MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionmilestoneByNumber
(client *http.Client, repo ghrepo.Interface, number int32)
pkg/cmd/issue/list/list.go:264
↓ 1 callersFunctionmilestoneSurvey
(p EditPrompter, title string, opts []string)
pkg/cmd/pr/shared/editable.go:646
↓ 1 callersFunctionminiRepoExport
(r *Repository)
api/export_repo.go:44
↓ 1 callersFunctionmissingChild
(ref *openapi3.SchemaRef, walked, seg string)
script/ghmock/schemacmd.go:424
↓ 1 callersFunctionmissingMergeConfigForBranch
(client *git.Client, b string)
pkg/cmd/pr/checkout/checkout.go:314
↓ 1 callersFunctionmissingNames
missingNames lists, once each and in order, requests that had no response.
script/ghmock/report.go:279
↓ 1 callersFunctionmissingResponse
missingResponse is what gh gets for a request with no stored response. Its message names the request so the caller knows what to add.
script/ghmock/server.go:328
↓ 1 callersFunctionmockCommentCreate
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/comment/comment_test.go:960
↓ 1 callersFunctionmockCommentCreate
(t *testing.T, reg *httpmock.Registry, wantBody string)
pkg/cmd/pr/comment/comment_test.go:915
↓ 1 callersFunctionmockCommentDelete
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/comment/comment_test.go:988
↓ 1 callersFunctionmockCommentDelete
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/pr/comment/comment_test.go:942
↓ 1 callersFunctionmockCommentUpdate
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/comment/comment_test.go:974
↓ 1 callersFunctionmockCommentUpdate
(t *testing.T, reg *httpmock.Registry, wantBody string)
pkg/cmd/pr/comment/comment_test.go:928
↓ 1 callersFunctionmockIsssueNumberGetWithAssignedActors
(_ *testing.T, reg *httpmock.Registry, number int)
pkg/cmd/issue/edit/edit_test.go:1879
↓ 1 callersFunctionmockIssueGetWithRepository
mockIssueGetWithRepository stubs the issue lookup with a body and the two repository fields the uploader reads. A row states both, so an empty permiss
pkg/cmd/issue/edit/edit_test.go:1843
↓ 1 callersFunctionmockIssueProjectItemsGet
(_ *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:1901
↓ 1 callersFunctionmockIssueUpdate
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:1994
↓ 1 callersFunctionmockIssueUpdateApiActors
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:2016
↓ 1 callersFunctionmockIssueUpdateLabels
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:2025
↓ 1 callersFunctionmockIssueUpdateWithBody
mockIssueUpdateWithBody stubs the issue update and asserts the body it carries.
pkg/cmd/issue/edit/edit_test.go:2005
↓ 1 callersFunctionmockProjectV2ItemUpdate
(t *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:2040
↓ 1 callersFunctionmockProjectV2ItemUpdate
(reg *httpmock.Registry)
pkg/cmd/pr/edit/edit_test.go:1930
↓ 1 callersFunctionmockPullRequestAddReviewers
(reg *httpmock.Registry)
pkg/cmd/pr/edit/edit_test.go:1892
↓ 1 callersFunctionmockPullRequestRemoveReviewers
(reg *httpmock.Registry)
pkg/cmd/pr/edit/edit_test.go:1898
↓ 1 callersFunctionmockPullRequestUpdate
(reg *httpmock.Registry)
pkg/cmd/pr/edit/edit_test.go:1856
↓ 1 callersFunctionmockPullRequestUpdateApiActors
(reg *httpmock.Registry)
pkg/cmd/pr/edit/edit_test.go:1883
↓ 1 callersFunctionmockPullRequestUpdateLabels
(reg *httpmock.Registry)
pkg/cmd/pr/edit/edit_test.go:1915
↓ 1 callersFunctionmockPullRequestUpdateWithBody
(t *testing.T, reg *httpmock.Registry, wantBody string)
pkg/cmd/pr/edit/edit_test.go:1862
↓ 1 callersFunctionmockPullRequestUpdateWithoutBody
A dropped body is absent from the input, which is not the same as a body sent with its old value.
pkg/cmd/pr/edit/edit_test.go:1873
↓ 1 callersFunctionmockRepoMetadata
(_ *testing.T, reg *httpmock.Registry)
pkg/cmd/issue/edit/edit_test.go:1915
↓ 1 callersFunctionmockRepoMetadata
(reg *httpmock.Registry, opt mockRepoMetadataOptions)
pkg/cmd/pr/edit/edit_test.go:1737
↓ 1 callersFunctionmockRequestReviewsByLogin
mockRequestReviewsByLogin mocks the RequestReviewsByLogin GraphQL mutation used on github.com when ApiActorsSupported is enabled.
pkg/cmd/pr/edit/edit_test.go:1906
↓ 1 callersFunctionmockRetrieveProjects
(_ *testing.T, reg *httpmock.Registry)
pkg/cmd/pr/create/create_test.go:3020
↓ 1 callersFunctionmockReviewerResponse
mockReviewerResponse generates a GraphQL response for SuggestedReviewerActors tests. It creates suggestions (s1, s2...), collaborators (c1, c2...), an
api/queries_pr_test.go:146
↓ 1 callersFunctionmockReviewerResponseForRepo
mockReviewerResponseForRepo generates a GraphQL response for SuggestedReviewerActorsForRepo tests. It creates collaborators (c1, c2...) and teams (tea
api/queries_pr_test.go:381
↓ 1 callersFunctionmockSuccessfulEditResponse
(reg *httpmock.Registry, cb func(params map[string]any))
pkg/cmd/release/edit/edit_test.go:477
↓ 1 callersMethodmoveByPage
(direction int)
pkg/cmd/extension/browse/model.go:589
↓ 1 callersFunctionmp4Arg
()
internal/attachments/references_test.go:21
↓ 1 callersFunctionmustMarshal
(t *testing.T, v any)
pkg/cmd/send-telemetry/send_telemetry_test.go:221
↓ 1 callersFunctionmustParseQualifiedHeadRef
(ref string)
pkg/cmd/pr/shared/find_refs_resolution_test.go:504
↓ 1 callersFunctionmustParseQualifiedHeadRef
(ref string)
pkg/cmd/pr/create/create_test.go:2794
↓ 1 callersFunctionmustReadDir
(t *testing.T, path string)
internal/zip/zip_test.go:110
↓ 1 callersFunctionnameFromFile
nameFromFile returns the name gh gives an artifact from a file: its base name, as typed rather than a symlink's target, cleaned up to fit the server's
pkg/cmd/issue/artifact/create/create.go:422
↓ 1 callersFunctionneedsBom
()
pkg/surveyext/editor_manual.go:30
↓ 1 callersFunctionnestedSuggestFunc
Display helpful error message in case subcommand name was mistyped. This matches Cobra's behavior for root command, which Cobra confusingly doesn't ap
pkg/cmd/root/help.go:64
↓ 1 callersFunctionnewAttachableDocuments
newAttachableDocuments scans every document and refuses what no upload can fix, so that nothing uploads for a set of documents that cannot take it.
internal/attachments/attach.go:161
↓ 1 callersFunctionnewAttachmentArgs
newAttachmentArgs describes each asset for the markdown half of the package, without a URL, since nothing has uploaded yet.
internal/attachments/attach.go:201
↓ 1 callersFunctionnewAuthStatus
()
pkg/cmd/auth/status/status.go:58
↓ 1 callersFunctionnewBlockingStream
(ctx context.Context)
pkg/cmd/event/listen/listen_test.go:197
↓ 1 callersFunctionnewBody
newBody returns the body to save, checked against the artifact's type, or nil to keep the current body. Only a type that supports attachments takes --
pkg/cmd/issue/artifact/edit/edit.go:283
↓ 1 callersFunctionnewBoolValue
(p **bool)
pkg/cmdutil/flags.go:100
↓ 1 callersFunctionnewBrowser
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:322
↓ 1 callersFunctionnewCodeCmd
(app *App)
pkg/cmd/codespace/code.go:11
↓ 1 callersFunctionnewCpCmd
(app *App)
pkg/cmd/codespace/ssh.go:710
↓ 1 callersFunctionnewCustomVerifier
(trustedRoot *root.TrustedRoot)
pkg/cmd/attestation/verification/sigstore.go:314
↓ 1 callersFunctionnewDefaultPushTarget
newDefaultPushTarget is a thin wrapper over defaultPushTarget to help with generic type inference, to reduce verbosity in repeating the parametric typ
pkg/cmd/pr/shared/find_refs_resolution.go:291
↓ 1 callersFunctionnewDeleteCmd
(app *App)
pkg/cmd/codespace/delete.go:39
↓ 1 callersFunctionnewFile
()
internal/skills/lockfile/lockfile.go:139
↓ 1 callersFunctionnewFixtureRepositoryManager
(tsEnv testScriptEnv)
acceptance/fixture_repository_test.go:107
↓ 1 callersFunctionnewGQLScaffolder
(schema *ast.Schema)
script/ghmock/gqlscaffold.go:61
↓ 1 callersFunctionnewGitHubVerifier
(trustDomain string, tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/sigstore.go:337
↓ 1 callersFunctionnewIdleReader
(body io.ReadCloser, timeout time.Duration)
pkg/cmd/event/listen/listen.go:556
↓ 1 callersFunctionnewImageAsset
newImageAsset applies what only holds for an image: the author may write alt text, and the fallback mirrors the web uploader by stripping the extensio
internal/attachments/userasset.go:69
↓ 1 callersFunctionnewJupyterCmd
(app *App)
pkg/cmd/codespace/jupyter.go:15
↓ 1 callersFunctionnewLineSplitter
newLineSplitter returns a bufio.SplitFunc for SSE lines. The specification (9.2.5) allows three line endings: CR LF ("\r\n"), a lone LF ("\n"), or a l
internal/eventstream/sse.go:137
↓ 1 callersFunctionnewLiveFixtureRepositoryClient
(tsEnv testScriptEnv)
acceptance/fixture_repository_test.go:36
↓ 1 callersFunctionnewLogsCmd
(app *App)
pkg/cmd/codespace/logs.go:13
↓ 1 callersFunctionnewMockGitClient
(t *testing.T, config func(*mockGitClient))
pkg/cmd/repo/sync/sync_test.go:768
↓ 1 callersFunctionnewMockrelayServer
(opts ...relayServerOption)
internal/codespaces/connection/tunnels_api_server_mock.go:238
↓ 1 callersFunctionnewMultiSelectSearchField
( title, searchTitle string, defaults, persistent []string, searchFunc func(string) MultiSelectSearchResult
internal/prompter/multi_select_with_search.go:78
↓ 1 callersFunctionnewPortsCmd
newPortsCmd returns a Cobra "ports" command that displays a table of available ports, according to the specified flags.
pkg/cmd/codespace/ports.go:28
↓ 1 callersFunctionnewPortsForwardCmd
NewPortsForwardCmd returns a Cobra "ports forward" subcommand, which forwards a set of port pairs from the codespace to localhost.
pkg/cmd/codespace/ports.go:302
↓ 1 callersFunctionnewPortsVisibilityCmd
(app *App, selector *CodespaceSelector)
pkg/cmd/codespace/ports.go:220
↓ 1 callersFunctionnewPrompter
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:327
↓ 1 callersFunctionnewPublicGoodVerifier
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/sigstore.go:371
↓ 1 callersFunctionnewReadmeGetter
(client *http.Client, cacheTTL time.Duration)
pkg/cmd/extension/browse/rg.go:16
↓ 1 callersFunctionnewRebuildCmd
(app *App)
pkg/cmd/codespace/rebuild.go:15
↓ 1 callersFunctionnewRunID
(start time.Time)
script/ghmock/run.go:596
↓ 1 callersFunctionnewSCPCommand
newSCPCommand populates an exec.Cmd to run an scp command for the files specified in cmdArgs. cmdArgs is parsed such that scp flags precede the files
internal/codespaces/ssh.go:107
↓ 1 callersFunctionnewSSHCmd
(app *App)
pkg/cmd/codespace/ssh.go:49
↓ 1 callersFunctionnewSelectCmd
(app *App)
pkg/cmd/codespace/select.go:16
↓ 1 callersFunctionnewServerOpts
(opts []interface{})
internal/barista/observability/telemetry.twirp.go:571
↓ 1 callersFunctionnewSocketConn
(conn *websocket.Conn)
internal/codespaces/connection/tunnels_api_server_mock.go:446
↓ 1 callersFunctionnewStopCmd
(app *App)
pkg/cmd/codespace/stop.go:19
↓ 1 callersFunctionnewStringValue
(p **string)
pkg/cmdutil/flags.go:76
↓ 1 callersFunctionnewTestAccessiblePrompter
(t *testing.T, console *expect.Console)
internal/prompter/accessible_prompter_test.go:886
↓ 1 callersFunctionnewTestIOStreams
(t *testing.T, console *expect.Console, spinnerDisabled bool)
pkg/iostreams/iostreams_progress_indicator_test.go:178
↓ 1 callersFunctionnewTestSurveyPrompter
(t *testing.T, console *expect.Console)
internal/prompter/accessible_prompter_test.go:895
↓ 1 callersFunctionnewTestVirtualTerminal
(t *testing.T)
pkg/iostreams/iostreams_progress_indicator_test.go:152
↓ 1 callersFunctionnewTrafficMonitor
newTrafficMonitor returns a trafficMonitor for the specified codespace connection. It wraps the provided io.ReaderWriteCloser with its own Read/Write/
internal/codespaces/portforwarder/port_forwarder.go:435
↓ 1 callersFunctionnewTunnelListener
(addr net.Addr)
script/ghmock/tls.go:147
↓ 1 callersFunctionnewUploadError
newUploadError captures the status code so the message can name what the endpoint refused.
internal/attachments/client.go:155
↓ 1 callersFunctionnewVideoAsset
newVideoAsset applies what only holds for a video: a player has no alt attribute to fill, so the author cannot supply one, and the name that stands in
internal/attachments/userasset.go:104
↓ 1 callersFunctionnewZipLogMap
()
pkg/cmd/run/view/logs.go:164
↓ 1 callersFunctionnoResults
noResults returns an empty JSON array for exporters or a no-results error.
pkg/cmd/skills/search/search.go:359
↓ 1 callersFunctionnoResultsMessage
noResultsMessage returns an appropriate "no results" message.
pkg/cmd/skills/search/search.go:271
↓ 1 callersFunctionnonBlockingOpenFlag
()
internal/safepaths/open_nonblock_unix.go:10
↓ 1 callersFunctionnormalizeBuildTags
(tags string)
script/build.go:135
↓ 1 callersFunctionnormalizeDir
(d string)
pkg/cmd/extension/command_test.go:973
↓ 1 callersFunctionnormalizeExtensionSelector
(n string)
pkg/cmd/extension/command.go:716
← previousnext →3,501–3,600 of 7,572, ranked by callers