MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

MethodPullRequestFeatures
()
internal/featuredetection/detector_mock.go:11
MethodPullRequestFeatures
()
internal/featuredetection/detector_mock.go:45
MethodPushDefault
PushDefault returns the value of push.default in the config. If the value is not set, it returns "simple" (the default git value). See https://git-scm
git/client.go:532
MethodPushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:978
MethodPushRevision
PushRevision gets the value of the @{push} revision syntax An error here doesn't necessarily mean something is broken, but may mean that the @{push} r
git/client.go:634
MethodPushRevision
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:992
MethodQualifiedHeadRef
()
pkg/cmd/pr/create/create.go:129
MethodQualifiedHeadRef
()
pkg/cmd/pr/create/create.go:147
MethodQualifiedHeadRef
()
pkg/cmd/pr/create/create.go:173
MethodQuery
(queryName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:68
MethodQuery
(operationName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:107
MethodQuery
Query performs a GraphQL query based on a struct and parses the response with the same struct as the receiver. If there are errors in the response, Gr
api/client.go:134
MethodREST
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:24
MethodREST
REST performs a REST request and parses the response.
api/client.go:157
MethodRESTWithNext
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:20
MethodRESTWithNext
(hostname string, method string, p string, body io.Reader, data any)
api/client.go:166
MethodReactions
()
api/queries_pr_review.go:90
MethodReactions
()
api/queries_comments.go:163
MethodRead
(p []byte)
pkg/cmdutil/file_input_test.go:21
MethodRead
(_ []byte)
pkg/cmd/release/edit/edit_test.go:537
MethodRead
(p []byte)
pkg/cmd/api/pagination_test.go:271
MethodRead
([]byte)
pkg/cmd/event/listen/listen_test.go:201
MethodRead
([]byte)
pkg/iostreams/content_test.go:152
MethodRead
(b []byte)
internal/codespaces/connection/tunnels_api_server_mock.go:450
MethodReadBranchConfig
ReadBranchConfig parses the `branch.BRANCH.(remote|merge|pushremote|gh-merge-base)` part of git config. If no branch config is found or there is an er
git/client.go:439
MethodReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/git_cached_config_client.go:16
MethodReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:971
MethodReadFrom
ReadFrom implements io.ReaderFrom to write more data than read, which otherwise results in an error from io.Copy().
pkg/cmd/api/pagination.go:169
MethodRebuildContainer
Rebuilds the container using cached layers by default or from scratch if full is true
internal/codespaces/rpc/invoker.go:196
MethodRebuildContainerAsync
RebuildContainerAsync calls RebuildContainerAsyncFunc.
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go:108
MethodRebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:46
MethodRebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:60
MethodRebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:71
MethodRebuildContainerAsyncCalls
RebuildContainerAsyncCalls gets all the calls that were made to RebuildContainerAsync. Check the length with: len(mockedCodespaceHostServer.RebuildC
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go:129
MethodRecord
Record captures a complete event.
internal/telemetry/fake.go:20
MethodRecord
Record copies a complete event into the service. Recording after Finish has no effect.
internal/telemetry/telemetry.go:279
MethodRecordEvents
(_ context.Context, req *observability.RecordEventsRequest)
pkg/cmd/send-telemetry/send_telemetry_test.go:26
MethodRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:87
MethodRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:179
MethodRefresh
Refresh calls RefreshFunc.
internal/gh/mock/token_refresher.go:49
MethodRegisterAuthToken
(stub func() (string, error))
internal/prompter/test.go:110
MethodRegisterInputHostname
(stub func() (string, error))
internal/prompter/test.go:118
MethodRegisterMarkdownEditor
(prompt string, stub func(string, string, bool) (string, error))
internal/prompter/test.go:122
MethodReleaseFeatures
()
internal/featuredetection/feature_detection.go:492
MethodReleaseFeatures
()
internal/featuredetection/detector_mock.go:31
MethodReleaseFeatures
()
internal/featuredetection/detector_mock.go:65
MethodRemotePushDefault
RemotePushDefault returns the value of remote.pushDefault in the config. If the value is not set, it returns an empty string.
git/client.go:549
MethodRemotePushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:985
MethodRemotes
(ctx context.Context)
git/client.go:158
MethodRemotes
()
pkg/cmd/extension/git.go:58
MethodRemotes
()
pkg/cmd/extension/mocks.go:50
MethodRemove
Remove calls RemoveFunc.
pkg/extensions/manager_mock.go:353
MethodRemove
(_ string)
cmd/gen-docs/main.go:118
MethodRender
Render calls RenderFunc.
pkg/cmd/agent-task/shared/log_mock.go:107
MethodRenderCalls
RenderCalls gets all the calls that were made to Render. Check the length with: len(mockedLogRenderer.RenderCalls())
pkg/cmd/agent-task/shared/log_mock.go:130
MethodRepoHost
RepoHost is the GitHub hostname that the remote points to
context/remote.go:97
MethodRepoHost
()
internal/ghrepo/repo.go:119
MethodRepoMetadataFetch
(input api.RepoMetadataInput)
pkg/cmd/pr/shared/survey.go:145
MethodRepoMetadataFetch
(input api.RepoMetadataInput)
pkg/cmd/pr/shared/survey_test.go:20
MethodRepoMetadataFetch
(input api.RepoMetadataInput)
pkg/cmd/pr/shared/survey_test.go:181
MethodRepoName
RepoName is the name of the GitHub repository
context/remote.go:87
MethodRepoName
()
internal/ghrepo/repo.go:115
MethodRepoOwner
RepoOwner is the name of the GitHub account that owns the repo
context/remote.go:92
MethodRepoOwner
()
internal/ghrepo/repo.go:111
MethodRepositories
(query Query)
pkg/search/searcher.go:133
MethodRepositories
Repositories calls RepositoriesFunc.
pkg/search/searcher_mock.go:189
MethodRepositoriesCalls
RepositoriesCalls gets all the calls that were made to Repositories. Check the length with: len(mockedSearcher.RepositoriesCalls())
pkg/search/searcher_mock.go:208
MethodRepositoryDatabaseID
RepositoryDatabaseID returns the numeric REST id of the repository, or zero when the "repository" field was not requested.
api/queries_issue.go:489
MethodRepositoryDatabaseID
RepositoryDatabaseID returns the numeric REST id of the repository, or zero when the "repository" field was not requested.
api/queries_pr.go:330
MethodRepositoryFeatures
()
internal/featuredetection/detector_mock.go:15
MethodRepositoryFeatures
()
internal/featuredetection/detector_mock.go:49
MethodRepositoryViewerPermission
RepositoryViewerPermission returns the requesting user's role on the repository, or an empty string when the "repository" field was not requested.
api/queries_issue.go:498
MethodRepositoryViewerPermission
RepositoryViewerPermission returns the requesting user's role on the repository, or an empty string when the "repository" field was not requested.
api/queries_pr.go:339
MethodReset
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:29
MethodReset
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:72
MethodReset
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:31
MethodReset
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:81
MethodReset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:32
MethodReset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:87
MethodReset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:141
MethodReset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:188
MethodReset
()
internal/barista/observability/telemetry.pb.go:39
MethodReset
()
internal/barista/observability/telemetry.pb.go:106
MethodReset
()
internal/barista/observability/telemetry.pb.go:150
MethodResetHard
(ref string)
pkg/cmd/repo/sync/git.go:104
MethodResetHard
(a string)
pkg/cmd/repo/sync/mocks.go:57
MethodResolve
()
pkg/cmd/pr/checkout/checkout_test.go:172
MethodResolveCommentNodeID
ResolveCommentNodeID calls ResolveCommentNodeIDFunc.
pkg/cmd/discussion/client/client_mock.go:644
MethodResolveCommentNodeID
ResolveCommentNodeID constructs a discussion comment node ID from a repository and a comment database ID. It fetches the repository's database ID via
pkg/cmd/discussion/client/client.go:1290
MethodResolveCommentNodeIDCalls
ResolveCommentNodeIDCalls gets all the calls that were made to ResolveCommentNodeID. Check the length with: len(mockedDiscussionClient.ResolveCommen
pkg/cmd/discussion/client/client_mock.go:665
FunctionResolveIssueRef
ResolveIssueRef parses an issue reference (number or URL) and returns its node ID. References that point at a different host than baseRepo are rejecte
pkg/cmd/issue/shared/lookup.go:214
FunctionResolveIssueTypeName
ResolveIssueTypeName resolves an issue type name to its node ID by fetching the repository's available types.
pkg/cmd/issue/shared/lookup.go:233
MethodRetrieve
()
pkg/cmd/pr/edit/edit_test.go:1960
MethodRetrieve
()
pkg/cmd/pr/edit/edit.go:621
MethodRoundTrip
(*http.Request)
script/ghmock/run_test.go:58
MethodRoundTrip
(req *http.Request)
pkg/cmd/release/shared/upload_test.go:123
MethodRoundTrip
(req *http.Request)
pkg/cmd/agent-task/capi/client.go:74
MethodRoundTrip
(req *http.Request)
pkg/cmd/project/shared/queries/queries_test.go:18
MethodRoundTrip
(req *http.Request)
pkg/cmd/issue/edit/edit_test.go:1815
MethodRoundTrip
(req *http.Request)
pkg/cmd/api/http_test.go:84
← previousnext →4,901–5,000 of 7,487, ranked by callers