Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
↓ 2 callers
Function
NewCmdTransfer
(f *cmdutil.Factory, runF func(*TransferOptions) error)
pkg/cmd/issue/transfer/transfer.go:27
↓ 2 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/issue/view/view.go:42
↓ 2 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/pr/view/view.go:45
↓ 2 callers
Function
NewConfig
()
internal/config/config.go:49
↓ 2 callers
Function
NewCopilotReplacer
NewCopilotReplacer creates a replacer for assignee @copilot references.
pkg/cmd/pr/shared/params.go:339
↓ 2 callers
Function
NewDigestedArtifactForRelease
(digest string, digestAlg string)
pkg/cmd/attestation/artifact/artifact.go:57
↓ 2 callers
Function
NewDiscussionClient
NewDiscussionClient creates a DiscussionClient backed by the given HTTP client.
pkg/cmd/discussion/client/client.go:65
↓ 2 callers
Function
NewDownloadCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/download/download.go:19
↓ 2 callers
Function
NewEventClient
NewEventClient returns an EventClient that sends requests for host through httpClient.
pkg/cmd/event/client/client.go:77
↓ 2 callers
Function
NewInspectCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/inspect/inspect.go:28
↓ 2 callers
Function
NewMeReplacer
(apiClient *api.Client, hostname string)
pkg/cmd/pr/shared/params.go:291
↓ 2 callers
Function
NewMergeContext
Creates a new MergeContext from MergeOptions.
pkg/cmd/pr/merge/merge.go:568
↓ 2 callers
Function
NewRegexpWriter
(out io.Writer, re *regexp.Regexp, repl string)
pkg/cmd/pr/create/regexp_writer.go:9
↓ 2 callers
Function
NewRemoteCommand
NewRemoteCommand returns an exec.Cmd that will securely run a shell command on the remote machine.
internal/codespaces/ssh.go:53
↓ 2 callers
Function
NewReviewerBot
(login string)
api/queries_pr_review.go:212
↓ 2 callers
Function
NewReviewerTeam
NewReviewerTeam creates a new ReviewerTeam.
api/queries_pr_review.go:231
↓ 2 callers
Function
NewReviewerUser
(login, name string)
api/queries_pr_review.go:199
↓ 2 callers
Function
NewTelemetryAPIServer
NewTelemetryAPIServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the prov
internal/barista/observability/telemetry.twirp.go:241
↓ 2 callers
Function
NewWithWriter
NewWithWriter creates a TablePrinter from a Writer, whether the output is a terminal, the terminal width, and more.
internal/tableprinter/table_printer.go:58
↓ 2 callers
Function
NoRulesetsFoundError
(orgOption string, repoI ghrepo.Interface, includeParents bool)
pkg/cmd/ruleset/shared/shared.go:114
↓ 2 callers
Function
NormalizeEventTypes
NormalizeEventTypes drops blank and duplicate event types, which the API rejects.
pkg/cmd/event/shared/subscription.go:24
↓ 2 callers
Method
NotifyCodespaceOfClientActivity
(ctx context.Context, in *NotifyCodespaceOfClientActivityRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:25
↓ 2 callers
Method
Number
Number is the number of the project item. It is only valid for issues and pull requests.
pkg/cmd/project/shared/queries/queries.go:635
↓ 2 callers
Method
OnRESTWithNextSuccessHelper
(hostname, method, p string, body io.Reader, data any, hasNext bool)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:79
↓ 2 callers
Function
OrganizationTeam
OrganizationTeam fetch the team in an organization with the given slug
api/queries_org.go:52
↓ 2 callers
Method
Output
()
git/command.go:35
↓ 2 callers
Method
Owner
()
pkg/extensions/extension.go:28
↓ 2 callers
Method
OwnerIDAndType
OwnerIDAndType returns the ID and OwnerType. The special login "@me" or an empty string queries the current user.
pkg/cmd/project/shared/queries/queries.go:1240
↓ 2 callers
Method
OwnerType
()
pkg/cmd/project/shared/queries/queries.go:291
↓ 2 callers
Method
OwnerType
()
pkg/cmd/project/shared/queries/queries.go:325
↓ 2 callers
Method
Pager
Pager returns the configured Pager, optionally scoped by host.
internal/gh/gh.go:60
↓ 2 callers
Function
ParseArtifactNumber
ParseArtifactNumber reads an <artifact-number> argument, which must be a whole number of at least 1, so a mistyped number fails before any request.
pkg/cmd/issue/artifact/shared/shared.go:53
↓ 2 callers
Function
ParseDiscussionArg
ParseDiscussionArg parses a discussion number or URL from a command argument. It returns the discussion number and, if the argument was a URL, a repo
pkg/cmd/discussion/shared/lookup.go:17
↓ 2 callers
Function
ParseRulesForDisplay
(rules []RulesetRule)
pkg/cmd/ruleset/shared/shared.go:70
↓ 2 callers
Function
ParseTelemetryState
ParseTelemetryState determines the telemetry state based on environment variables and configuration values. The GH_TELEMETRY environment variable take
internal/telemetry/telemetry.go:106
↓ 2 callers
Function
PartitionHiddenDirSkills
PartitionHiddenDirSkills splits skills into standard and hidden-dir groups.
internal/skills/discovery/discovery.go:114
↓ 2 callers
Method
Password
Password prompts the user to enter a password.
internal/prompter/prompter.go:36
↓ 2 callers
Method
Path
()
pkg/cmd/extension/extension.go:47
↓ 2 callers
Function
PrStateWithDraft
(pr *api.PullRequest)
pkg/cmd/pr/shared/display.go:20
↓ 2 callers
Method
Preface
()
pkg/jsoncolor/jsoncolor.go:20
↓ 2 callers
Method
PreferEditorPrompt
PreferEditorPrompt returns the configured editor-based prompt, optionally scoped by host.
internal/gh/gh.go:64
↓ 2 callers
Function
PreserveInput
(io *iostreams.IOStreams, state *IssueMetadataState, createErr *error)
pkg/cmd/pr/shared/preserve.go:12
↓ 2 callers
Function
PrintSkip
PrintSkip prints the line for an artifact the command left alone as asked, such as a download whose file already exists with --skip-existing. A skip i
pkg/cmd/issue/artifact/shared/results.go:47
↓ 2 callers
Function
PrintUnchanged
PrintUnchanged prints the line for an artifact the command didn't change because it already was as asked, such as an artifact that already matches the
pkg/cmd/issue/artifact/shared/results.go:61
↓ 2 callers
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:758
↓ 2 callers
Method
ProjectItemIDByURL
ProjectItemIDByURL returns the project item ID for the issue or pull request at rawURL on the project identified by projectID. projectNumber is used o
pkg/cmd/project/shared/queries/resolve.go:153
↓ 2 callers
Method
ProjectNames
()
api/queries_issue.go:250
↓ 2 callers
Function
ProjectState
(project queries.Project)
pkg/cmd/project/shared/format/display.go:7
↓ 2 callers
Method
ProjectTitles
()
api/queries_issue.go:258
↓ 2 callers
Function
ProjectTitlesToPaths
(client *Client, repo ghrepo.Interface, titles []string, projectsV1Support gh.ProjectsV1Support)
api/queries_repo.go:875
↓ 2 callers
Function
ProjectsV2ItemsForIssue
ProjectsV2ItemsForIssue fetches all ProjectItems for an issue.
api/queries_projects_v2.go:65
↓ 2 callers
Function
ProjectsV2ItemsForPullRequest
ProjectsV2ItemsForPullRequest fetches all ProjectItems for a pull request.
api/queries_projects_v2.go:136
↓ 2 callers
Method
Pull
(ctx context.Context, remote, branch string, mods ...CommandModifier)
git/client.go:893
↓ 2 callers
Function
PullRequestClose
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:767
↓ 2 callers
Function
PullRequestForRun
(client *api.Client, repo ghrepo.Interface, run Run)
pkg/cmd/run/shared/shared.go:616
↓ 2 callers
Function
PullRequestReopen
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:786
↓ 2 callers
Method
QualifiedHeadRef
QualifiedHeadRef returns a stringified form of the head ref, varying depending on whether the head ref is in the same repository as the base ref. If t
pkg/cmd/pr/shared/find_refs_resolution.go:96
↓ 2 callers
Function
QueryHasStateClause
(searchQuery string)
pkg/cmd/pr/shared/params.go:269
↓ 2 callers
Method
RawBytes
RawBytes is Raw as a byte slice, for callers that need []byte (hashing, file writes). Same terminal caveat as Raw.
pkg/iostreams/untrusted.go:80
↓ 2 callers
Function
ReactionGroupList
(rgs api.ReactionGroups)
pkg/cmd/pr/shared/reaction_groups.go:10
↓ 2 callers
Method
Read
Read wraps the underlying ReadWriteCloser's Read method and keeps the session alive with the "input" traffic type.
internal/codespaces/portforwarder/port_forwarder.go:440
↓ 2 callers
Method
Rebuild
(ctx context.Context, selector *CodespaceSelector, full bool)
pkg/cmd/codespace/rebuild.go:43
↓ 2 callers
Method
RebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:26
↓ 2 callers
Function
RecordInstall
RecordInstall adds or updates a skill entry in the lock file. It uses a file-based lock to prevent concurrent read-modify-write races when multiple in
internal/skills/lockfile/lockfile.go:97
↓ 2 callers
Function
RecordTelemetry
RecordTelemetry instruments a command with an invocation-owned telemetry event.
pkg/cmdutil/telemetry.go:13
↓ 2 callers
Function
RecordTelemetryForSubcommands
RecordTelemetryForSubcommands instruments all descendants of a command.
pkg/cmdutil/telemetry.go:57
↓ 2 callers
Method
Redf
(t string, args ...any)
pkg/iostreams/color.go:103
↓ 2 callers
Method
RefreshScreen
()
pkg/iostreams/iostreams.go:416
↓ 2 callers
Method
RegisterConfirmDeletion
(prompt string, stub func(string) error)
internal/prompter/test.go:114
↓ 2 callers
Function
RegisterEventTypesCompletion
RegisterEventTypesCompletion suggests the known event types for a comma-separated flag. The flag still accepts any value, because the server may suppo
pkg/cmd/event/shared/completion.go:12
↓ 2 callers
Method
ReleaseFeatures
()
internal/featuredetection/feature_detection.go:25
↓ 2 callers
Function
RenameRepo
RenameRepo renames the repository on GitHub and returns the renamed repository
api/queries_repo.go:645
↓ 2 callers
Function
RenderAnnotations
(cs *iostreams.ColorScheme, annotations []Annotation)
pkg/cmd/run/shared/presentation.go:92
↓ 2 callers
Function
RenderJobsCompact
(cs *iostreams.ColorScheme, jobs []Job)
pkg/cmd/run/shared/presentation.go:50
↓ 2 callers
Function
RenderRunHeader
(cs *iostreams.ColorScheme, run Run, ago, prNumber string, attempt uint64)
pkg/cmd/run/shared/presentation.go:10
↓ 2 callers
Method
Repo
Repo is the repository of the project item. It is only valid for issues and pull requests.
pkg/cmd/project/shared/queries/queries.go:652
↓ 2 callers
Function
RepoExists
(client *Client, repo ghrepo.Interface)
api/queries_repo.go:1676
↓ 2 callers
Function
RepoMilestones
RepoMilestones fetches milestones in a repository
api/queries_repo.go:1464
↓ 2 callers
Method
RepoOwner
RepoOwner is the login name of the owner
api/queries_repo.go:252
↓ 2 callers
Method
Repository
Repository returns a ghrepo.Interface pinned to github.com so that GHES users install from github.com rather than their enterprise host.
pkg/extensions/official.go:19
↓ 2 callers
Function
RepositoryReadme
(client *http.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/view/http.go:26
↓ 2 callers
Function
RequestReviewsByLogin
RequestReviewsByLogin sets requested reviewers on a pull request using the GraphQL mutation. This mutation replaces existing reviewers with the provid
api/queries_pr_review.go:358
↓ 2 callers
Function
ResolveFieldByID
ResolveFieldByID finds the project field whose node ID matches id, validating it against the fields returned with the project so an unknown ID fails w
pkg/cmd/project/shared/queries/resolve_fields.go:97
↓ 2 callers
Function
ResolveSingleSelectOptionID
ResolveSingleSelectOptionID resolves optionName to its option ID on a single-select field. It returns a *WrongFieldTypeError if the field is not a sin
pkg/cmd/project/shared/queries/resolve.go:82
↓ 2 callers
Method
ResolvedRemote
()
context/remote.go:51
↓ 2 callers
Function
ResourceHost
ResourceHost returns the host to send subscription requests for resourceURL to, or fallback when the URL names no host. The API validates the resource
pkg/cmd/event/shared/subscription.go:16
↓ 2 callers
Function
RevokeToken
RevokeToken deletes one access token belonging to the GitHub CLI OAuth app. The client must not attach user authentication or log credential-bearing b
internal/authflow/revoke.go:24
↓ 2 callers
Method
RoundTrip
(req *http.Request)
pkg/cmd/agent-task/capi/client_test.go:17
↓ 2 callers
Function
RulesetSource
Returns the source of the ruleset in the format "owner/name (repo)" or "owner (org)"
pkg/cmd/ruleset/shared/shared.go:57
↓ 2 callers
Method
Run
()
git/command.go:17
↓ 2 callers
Method
Search
Search returns discussions in a repository matching the given search filters.
pkg/cmd/discussion/client/client.go:26
↓ 2 callers
Method
Select
(string, string, []string)
pkg/cmd/pr/shared/editable.go:364
↓ 2 callers
Method
Select
(string, string, []string)
pkg/cmd/workflow/run/run.go:48
↓ 2 callers
Method
SelectName
(ctx context.Context)
pkg/cmd/codespace/codespace_selector.go:65
↓ 2 callers
Function
SelectedRepositoryCount
SelectedRepositoryCount returns how many repositories the variable is visible to, fetched from the given entrusted URL. Callers own reading the URL of
pkg/cmd/variable/shared/shared.go:71
↓ 2 callers
Method
ServerURL
()
pkg/cmd/codespace/common.go:69
↓ 2 callers
Method
Set
(hostname, key, value string)
internal/config/config.go:105
↓ 2 callers
Method
SetBranchConfig
SetBranchConfig sets the named value on the given branch.
git/client.go:487
↓ 2 callers
Method
SetDefaultHost
SetDefaultHost will override any host resolution and return the given host and source for all calls to DefaultHost. Use for testing purposes only.
internal/config/config.go:518
↓ 2 callers
Method
SetNeverPrompt
(v bool)
pkg/iostreams/iostreams.go:288
← previous
next →
1,501–1,600 of 7,572, ranked by callers