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
↓ 1 callers
Function
NewCmdView
NewCmdView creates the gh issue artifact view command.
pkg/cmd/issue/artifact/view/view.go:41
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/gist/view/view.go:42
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/repo/license/view/view.go:28
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*viewOptions) error)
pkg/cmd/repo/autolink/view/view.go:28
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/repo/view/view.go:36
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/repo/gitignore/view/view.go:24
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/run/view/view.go:105
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/event/subscription/view/view.go:31
↓ 1 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/workflow/view/view.go:45
↓ 1 callers
Function
NewCmdWatch
(f *cmdutil.Factory, runF func(*WatchOptions) error)
pkg/cmd/run/watch/watch.go:42
↓ 1 callers
Function
NewCodespaceHostClient
(cc grpc.ClientConnInterface)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:33
↓ 1 callers
Function
NewCreateContext
(opts *CreateOptions)
pkg/cmd/pr/create/create.go:772
↓ 1 callers
Function
NewFailTestClient
()
pkg/cmd/attestation/api/mock_client.go:68
↓ 1 callers
Function
NewIssueState
(ctx CreateContext, opts CreateOptions, apiActorsSupported bool)
pkg/cmd/pr/create/create.go:737
↓ 1 callers
Function
NewJupyterServerHostClient
(cc grpc.ClientConnInterface)
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1_grpc.pb.go:32
↓ 1 callers
Function
NewLister
(httpClient *http.Client)
pkg/cmd/pr/shared/lister.go:32
↓ 1 callers
Function
NewManager
(ios *iostreams.IOStreams, gc *git.Client, ghPath string)
pkg/cmd/extension/manager.go:60
↓ 1 callers
Function
NewMockLister
(result *api.PullRequestAndTotalCount, err error)
pkg/cmd/pr/shared/lister.go:156
↓ 1 callers
Function
NewMockSigstoreVerifierWithMockResults
(t *testing.T, mockResults []*AttestationProcessingResult)
pkg/cmd/attestation/verification/mock_verifier.go:58
↓ 1 callers
Function
NewSshServerHostClient
(cc grpc.ClientConnInterface)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:32
↓ 1 callers
Function
NewStatusGetter
(client *http.Client, hostname string, opts *StatusOptions)
pkg/cmd/status/status.go:192
↓ 1 callers
Function
NewTelemetryAPIProtobufClient
NewTelemetryAPIProtobufClient creates a Protobuf client that implements the TelemetryAPI interface. It communicates using Protobuf and can be configur
internal/barista/observability/telemetry.twirp.go:54
↓ 1 callers
Function
NewTemplateManager
(httpClient *http.Client, repo ghrepo.Interface, p iprompter, dir string, allowFS bool, isPR bool)
pkg/cmd/pr/shared/templates.go:144
↓ 1 callers
Function
NoSuchAnswerErr
(answer string, options []string)
internal/prompter/test.go:175
↓ 1 callers
Method
NotifyCodespaceOfClientActivityCalls
NotifyCodespaceOfClientActivityCalls gets all the calls that were made to NotifyCodespaceOfClientActivity. Check the length with: len(mockedCodespac
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go:93
↓ 1 callers
Method
OnREST
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:139
↓ 1 callers
Method
OnREST500ErrorHandler
always returns a 500
pkg/cmd/attestation/api/mock_githubApiClient_test.go:70
↓ 1 callers
Method
OnRESTSuccessWithNextPage
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:38
↓ 1 callers
Method
OrderBy
()
pkg/cmd/label/http.go:47
↓ 1 callers
Function
OrganizationProjects
OrganizationProjects fetches all open projects for an organization.
api/queries_org.go:10
↓ 1 callers
Function
OrganizationProjectsV2
OrganizationProjectsV2 fetches all open projectsV2 for an organization.
api/queries_projects_v2.go:208
↓ 1 callers
Function
OrganizationTeams
OrganizationTeams fetches all the teams in an organization
api/queries_org.go:77
↓ 1 callers
Method
OutPrintf
(f string, v ...any)
pkg/cmd/attestation/io/handler.go:40
↓ 1 callers
Method
OutPrintln
(v ...any)
pkg/cmd/attestation/io/handler.go:52
↓ 1 callers
Method
OwnerCalls
OwnerCalls gets all the calls that were made to Owner. Check the length with: len(mockedExtension.OwnerCalls())
pkg/extensions/extension_mock.go:311
↓ 1 callers
Method
OwnerLogin
()
pkg/cmd/project/shared/queries/queries.go:295
↓ 1 callers
Method
OwnerLogin
()
pkg/cmd/project/shared/queries/queries.go:329
↓ 1 callers
Method
Pager
(hostname string)
internal/config/config.go:173
↓ 1 callers
Function
ParseFullReference
ParseFullReference parses a short issue/pull request reference of the form "owner/repo#number", where owner, repo and number are all required.
pkg/cmd/pr/shared/finder.go:335
↓ 1 callers
Function
ParseIssuesFromArgs
(args []string)
pkg/cmd/issue/shared/lookup.go:21
↓ 1 callers
Function
ParseSessionIDFromURL
ParseSessionIDFromURL parses session ID from a pull request's agent session URL, which is of the form: `https://github.com/OWNER/REPO/pull/NUMBER/ag
pkg/cmd/agent-task/shared/capi.go:79
↓ 1 callers
Function
PollPostCreateStates
PollPostCreateStates watches for state changes in a codespace, and calls the supplied poller for each batch of state changes. It runs until it encount
internal/codespaces/states.go:40
↓ 1 callers
Method
PostVersion
()
internal/config/migration/multi_account.go:91
↓ 1 callers
Method
PostVersion
PostVersion is the config version that must be applied after migration
internal/gh/gh.go:105
↓ 1 callers
Method
PreVersion
()
internal/config/migration/multi_account.go:85
↓ 1 callers
Method
PreVersion
PreVersion is the required config version for this to be applied
internal/gh/gh.go:103
↓ 1 callers
Method
PreferEditorPrompt
(hostname string)
internal/config/config.go:183
↓ 1 callers
Method
Preview
()
pkg/cmd/status/status.go:114
↓ 1 callers
Method
PrintBulletPoints
(rows [][]string)
pkg/cmd/attestation/io/handler.go:71
↓ 1 callers
Function
PrintHeader
(io *iostreams.IOStreams, s string)
pkg/cmd/pr/shared/display.go:58
↓ 1 callers
Function
PrintMessage
(io *iostreams.IOStreams, s string)
pkg/cmd/pr/shared/display.go:62
↓ 1 callers
Method
ProjectFeatures
()
internal/featuredetection/feature_detection.go:20
↓ 1 callers
Method
ProjectFeatures
()
internal/featuredetection/feature_detection.go:350
↓ 1 callers
Method
ProjectIds
ProjectIds returns a slice containing IDs of projects v1 that the issue or a PR has to be linked to.
pkg/cmd/pr/shared/editable.go:217
↓ 1 callers
Method
ProjectV2Ids
ProjectV2Ids returns a pair of slices. The first is the projects the item should be added to. The second is the projects the items should be removed f
pkg/cmd/pr/shared/editable.go:235
↓ 1 callers
Method
Prompt
(hostname string)
internal/config/config.go:178
↓ 1 callers
Method
PullRequestFeatures
()
internal/featuredetection/feature_detection.go:225
↓ 1 callers
Function
PullRequestReady
(client *Client, repo ghrepo.Interface, pr *PullRequest)
api/queries_pr.go:805
↓ 1 callers
Function
PullRequestRevert
(client *Client, repo ghrepo.Interface, params githubv4.RevertPullRequestInput)
api/queries_pr.go:823
↓ 1 callers
Method
QueryWithContext
QueryWithContext 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 r
api/client.go:146
↓ 1 callers
Function
RawCommentList
(comments api.Comments, reviews api.PullRequestReviews)
pkg/cmd/pr/shared/comments.go:29
↓ 1 callers
Method
Reactions
()
pkg/cmd/pr/shared/comments.go:25
↓ 1 callers
Method
Read
(p []byte)
script/ghmock/tls.go:136
↓ 1 callers
Method
Read
(p []byte)
pkg/cmd/api/pagination.go:123
↓ 1 callers
Method
Read
(p []byte)
pkg/cmd/event/listen/listen.go:562
↓ 1 callers
Method
Record
Record discards the event.
internal/telemetry/telemetry.go:499
↓ 1 callers
Function
RegisterCodespaceHostServer
(s grpc.ServiceRegistrar, srv CodespaceHostServer)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:83
↓ 1 callers
Function
RegisterJupyterServerHostServer
(s grpc.ServiceRegistrar, srv JupyterServerHostServer)
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1_grpc.pb.go:69
↓ 1 callers
Function
RegisterSshServerHostServer
(s grpc.ServiceRegistrar, srv SshServerHostServer)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:69
↓ 1 callers
Method
Remove
(name string)
pkg/cmd/extension/manager.go:579
↓ 1 callers
Method
Remove
(value string)
pkg/set/string_set.go:31
↓ 1 callers
Function
RemoveBlockedBy
RemoveBlockedBy removes a "blocked by" relationship between two issues.
api/queries_issue.go:615
↓ 1 callers
Method
RemoveCalls
RemoveCalls gets all the calls that were made to Remove. Check the length with: len(mockedExtensionManager.RemoveCalls())
pkg/extensions/manager_mock.go:372
↓ 1 callers
Function
RemoveDiacritics
RemoveDiacritics returns the input value without "diacritics", or accent marks
internal/text/text.go:109
↓ 1 callers
Function
RemovePullRequestReviews
RemovePullRequestReviews removes requested reviewers from a pull request using the REST API. Team identifiers can be in "org/slug" format.
api/queries_pr_review.go:316
↓ 1 callers
Function
RemoveSubIssue
RemoveSubIssue removes a sub-issue from a parent issue.
api/queries_issue.go:565
↓ 1 callers
Method
Render
Render processes the given logs and writes the rendered output to w. Errors are returned when an unexpected log entry is encountered.
pkg/cmd/agent-task/shared/log.go:58
↓ 1 callers
Method
ReplaceSlice
ReplaceSlice replaces usages of `@copilot` in a slice with Copilot's login.
pkg/cmd/pr/shared/params.go:365
↓ 1 callers
Function
RepoAssignableActors
RepoAssignableActors fetches all the assignable actors for a repository on GitHub hosts that support Actor assignees.
api/queries_repo.go:1288
↓ 1 callers
Function
RepoAssignableUsers
RepoAssignableUsers fetches all the assignable users for a repository
api/queries_repo.go:1237
↓ 1 callers
Function
RepoAssigneeSearchFunc
RepoAssigneeSearchFunc returns a search function for MultiSelectWithSearch that dynamically fetches assignable actors at the repository level. Used du
pkg/cmd/pr/shared/editable.go:675
↓ 1 callers
Function
RepoFindForks
RepoFindForks finds forks of the repo that are affiliated with the viewer
api/queries_repo.go:696
↓ 1 callers
Method
RepoHost
RepoHost is the GitHub hostname of the repository
api/queries_repo.go:262
↓ 1 callers
Function
RepoLabels
RepoLabels fetches all the labels in a repository
api/queries_repo.go:1421
↓ 1 callers
Method
RepoMetadataFetch
(api.RepoMetadataInput)
pkg/cmd/pr/shared/survey.go:154
↓ 1 callers
Method
RepoName
RepoName is the name of the repository
api/queries_repo.go:257
↓ 1 callers
Function
RepoNameFromRemote
RepoNameFromRemote extracts "owner/repo" from a git remote URL.
internal/skills/registry/registry.go:455
↓ 1 callers
Function
RepoNetworkStubResponse
(owner, repo, defaultBranch, permission string)
pkg/httpmock/legacy.go:54
↓ 1 callers
Function
RepoParent
RepoParent finds out the parent repository of a fork
api/queries_repo.go:441
↓ 1 callers
Function
RepoProjects
RepoProjects fetches all open projects for a repository.
api/queries_repo.go:1102
↓ 1 callers
Function
RepoProjectsV2
RepoProjectsV2 fetches all open projectsV2 for a repository.
api/queries_projects_v2.go:247
↓ 1 callers
Method
RepositoryFeatures
()
internal/featuredetection/feature_detection.go:294
↓ 1 callers
Function
RequiredStatusCheckRollupGraphQL
(prID, after string, includeEvent bool)
api/query_builder.go:270
↓ 1 callers
Method
Reset
()
pkg/surveyext/editor_test.go:273
↓ 1 callers
Method
ResetHard
(string)
pkg/cmd/repo/sync/git.go:19
↓ 1 callers
Method
Resolve
()
pkg/cmd/pr/checkout/checkout.go:401
↓ 1 callers
Method
Resolve
()
pkg/cmd/pr/checkout/checkout.go:409
↓ 1 callers
Method
Resolve
()
pkg/cmd/pr/checkout/checkout.go:436
↓ 1 callers
Function
ResolveRemotesToRepos
(remotes Remotes, client *api.Client, base string)
context/context.go:19
↓ 1 callers
Method
Retrieve
()
pkg/cmd/pr/edit/edit.go:614
← previous
next →
2,701–2,800 of 7,487, ranked by callers