Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
Method
PullRequestFeatures
()
internal/featuredetection/detector_mock.go:11
Method
PullRequestFeatures
()
internal/featuredetection/detector_mock.go:45
Method
PushDefault
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
Method
PushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:978
Method
PushRevision
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
Method
PushRevision
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:992
Method
QualifiedHeadRef
()
pkg/cmd/pr/create/create.go:129
Method
QualifiedHeadRef
()
pkg/cmd/pr/create/create.go:147
Method
QualifiedHeadRef
()
pkg/cmd/pr/create/create.go:173
Method
Query
(queryName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:68
Method
Query
(operationName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:107
Method
Query
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
Method
REST
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:24
Method
REST
REST performs a REST request and parses the response.
api/client.go:157
Method
RESTWithNext
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:20
Method
RESTWithNext
(hostname string, method string, p string, body io.Reader, data any)
api/client.go:166
Method
Reactions
()
api/queries_pr_review.go:90
Method
Reactions
()
api/queries_comments.go:163
Method
Read
(p []byte)
pkg/cmdutil/file_input_test.go:21
Method
Read
(_ []byte)
pkg/cmd/release/edit/edit_test.go:537
Method
Read
(p []byte)
pkg/cmd/api/pagination_test.go:271
Method
Read
([]byte)
pkg/cmd/event/listen/listen_test.go:201
Method
Read
([]byte)
pkg/iostreams/content_test.go:152
Method
Read
(b []byte)
internal/codespaces/connection/tunnels_api_server_mock.go:450
Method
ReadBranchConfig
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
Method
ReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/git_cached_config_client.go:16
Method
ReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:971
Method
ReadFrom
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
Method
RebuildContainer
Rebuilds the container using cached layers by default or from scratch if full is true
internal/codespaces/rpc/invoker.go:196
Method
RebuildContainerAsync
RebuildContainerAsync calls RebuildContainerAsyncFunc.
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go:108
Method
RebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:46
Method
RebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:60
Method
RebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:71
Method
RebuildContainerAsyncCalls
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
Method
Record
Record captures a complete event.
internal/telemetry/fake.go:20
Method
Record
Record copies a complete event into the service. Recording after Finish has no effect.
internal/telemetry/telemetry.go:279
Method
RecordEvents
(_ context.Context, req *observability.RecordEventsRequest)
pkg/cmd/send-telemetry/send_telemetry_test.go:26
Method
RecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:87
Method
RecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:179
Method
Refresh
Refresh calls RefreshFunc.
internal/gh/mock/token_refresher.go:49
Method
RegisterAuthToken
(stub func() (string, error))
internal/prompter/test.go:110
Method
RegisterInputHostname
(stub func() (string, error))
internal/prompter/test.go:118
Method
RegisterMarkdownEditor
(prompt string, stub func(string, string, bool) (string, error))
internal/prompter/test.go:122
Method
ReleaseFeatures
()
internal/featuredetection/feature_detection.go:492
Method
ReleaseFeatures
()
internal/featuredetection/detector_mock.go:31
Method
ReleaseFeatures
()
internal/featuredetection/detector_mock.go:65
Method
RemotePushDefault
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
Method
RemotePushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:985
Method
Remotes
(ctx context.Context)
git/client.go:158
Method
Remotes
()
pkg/cmd/extension/git.go:58
Method
Remotes
()
pkg/cmd/extension/mocks.go:50
Method
Remove
Remove calls RemoveFunc.
pkg/extensions/manager_mock.go:353
Method
Remove
(_ string)
cmd/gen-docs/main.go:118
Method
Render
Render calls RenderFunc.
pkg/cmd/agent-task/shared/log_mock.go:107
Method
RenderCalls
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
Method
RepoHost
RepoHost is the GitHub hostname that the remote points to
context/remote.go:97
Method
RepoHost
()
internal/ghrepo/repo.go:119
Method
RepoMetadataFetch
(input api.RepoMetadataInput)
pkg/cmd/pr/shared/survey.go:145
Method
RepoMetadataFetch
(input api.RepoMetadataInput)
pkg/cmd/pr/shared/survey_test.go:20
Method
RepoMetadataFetch
(input api.RepoMetadataInput)
pkg/cmd/pr/shared/survey_test.go:181
Method
RepoName
RepoName is the name of the GitHub repository
context/remote.go:87
Method
RepoName
()
internal/ghrepo/repo.go:115
Method
RepoOwner
RepoOwner is the name of the GitHub account that owns the repo
context/remote.go:92
Method
RepoOwner
()
internal/ghrepo/repo.go:111
Method
Repositories
(query Query)
pkg/search/searcher.go:133
Method
Repositories
Repositories calls RepositoriesFunc.
pkg/search/searcher_mock.go:189
Method
RepositoriesCalls
RepositoriesCalls gets all the calls that were made to Repositories. Check the length with: len(mockedSearcher.RepositoriesCalls())
pkg/search/searcher_mock.go:208
Method
RepositoryDatabaseID
RepositoryDatabaseID returns the numeric REST id of the repository, or zero when the "repository" field was not requested.
api/queries_issue.go:489
Method
RepositoryDatabaseID
RepositoryDatabaseID returns the numeric REST id of the repository, or zero when the "repository" field was not requested.
api/queries_pr.go:330
Method
RepositoryFeatures
()
internal/featuredetection/detector_mock.go:15
Method
RepositoryFeatures
()
internal/featuredetection/detector_mock.go:49
Method
RepositoryViewerPermission
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
Method
RepositoryViewerPermission
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
Method
Reset
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:29
Method
Reset
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:72
Method
Reset
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:31
Method
Reset
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:81
Method
Reset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:32
Method
Reset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:87
Method
Reset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:141
Method
Reset
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:188
Method
Reset
()
internal/barista/observability/telemetry.pb.go:39
Method
Reset
()
internal/barista/observability/telemetry.pb.go:106
Method
Reset
()
internal/barista/observability/telemetry.pb.go:150
Method
ResetHard
(ref string)
pkg/cmd/repo/sync/git.go:104
Method
ResetHard
(a string)
pkg/cmd/repo/sync/mocks.go:57
Method
Resolve
()
pkg/cmd/pr/checkout/checkout_test.go:172
Method
ResolveCommentNodeID
ResolveCommentNodeID calls ResolveCommentNodeIDFunc.
pkg/cmd/discussion/client/client_mock.go:644
Method
ResolveCommentNodeID
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
Method
ResolveCommentNodeIDCalls
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
Function
ResolveIssueRef
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
Function
ResolveIssueTypeName
ResolveIssueTypeName resolves an issue type name to its node ID by fetching the repository's available types.
pkg/cmd/issue/shared/lookup.go:233
Method
Retrieve
()
pkg/cmd/pr/edit/edit_test.go:1960
Method
Retrieve
()
pkg/cmd/pr/edit/edit.go:621
Method
RoundTrip
(*http.Request)
script/ghmock/run_test.go:58
Method
RoundTrip
(req *http.Request)
pkg/cmd/release/shared/upload_test.go:123
Method
RoundTrip
(req *http.Request)
pkg/cmd/agent-task/capi/client.go:74
Method
RoundTrip
(req *http.Request)
pkg/cmd/project/shared/queries/queries_test.go:18
Method
RoundTrip
(req *http.Request)
pkg/cmd/issue/edit/edit_test.go:1815
Method
RoundTrip
(req *http.Request)
pkg/cmd/api/http_test.go:84
← previous
next →
4,901–5,000 of 7,487, ranked by callers