MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 2 callersFunctionNewCmdTransfer
(f *cmdutil.Factory, runF func(*TransferOptions) error)
pkg/cmd/issue/transfer/transfer.go:27
↓ 2 callersFunctionNewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/issue/view/view.go:42
↓ 2 callersFunctionNewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/pr/view/view.go:45
↓ 2 callersFunctionNewConfig
()
internal/config/config.go:49
↓ 2 callersFunctionNewCopilotReplacer
NewCopilotReplacer creates a replacer for assignee @copilot references.
pkg/cmd/pr/shared/params.go:339
↓ 2 callersFunctionNewDigestedArtifactForRelease
(digest string, digestAlg string)
pkg/cmd/attestation/artifact/artifact.go:57
↓ 2 callersFunctionNewDiscussionClient
NewDiscussionClient creates a DiscussionClient backed by the given HTTP client.
pkg/cmd/discussion/client/client.go:65
↓ 2 callersFunctionNewDownloadCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/download/download.go:19
↓ 2 callersFunctionNewEventClient
NewEventClient returns an EventClient that sends requests for host through httpClient.
pkg/cmd/event/client/client.go:77
↓ 2 callersFunctionNewInspectCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/inspect/inspect.go:28
↓ 2 callersFunctionNewMeReplacer
(apiClient *api.Client, hostname string)
pkg/cmd/pr/shared/params.go:291
↓ 2 callersFunctionNewMergeContext
Creates a new MergeContext from MergeOptions.
pkg/cmd/pr/merge/merge.go:568
↓ 2 callersFunctionNewRegexpWriter
(out io.Writer, re *regexp.Regexp, repl string)
pkg/cmd/pr/create/regexp_writer.go:9
↓ 2 callersFunctionNewRemoteCommand
NewRemoteCommand returns an exec.Cmd that will securely run a shell command on the remote machine.
internal/codespaces/ssh.go:53
↓ 2 callersFunctionNewReviewerBot
(login string)
api/queries_pr_review.go:212
↓ 2 callersFunctionNewReviewerTeam
NewReviewerTeam creates a new ReviewerTeam.
api/queries_pr_review.go:231
↓ 2 callersFunctionNewReviewerUser
(login, name string)
api/queries_pr_review.go:199
↓ 2 callersFunctionNewTelemetryAPIServer
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 callersFunctionNewWithWriter
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 callersFunctionNoRulesetsFoundError
(orgOption string, repoI ghrepo.Interface, includeParents bool)
pkg/cmd/ruleset/shared/shared.go:114
↓ 2 callersFunctionNormalizeEventTypes
NormalizeEventTypes drops blank and duplicate event types, which the API rejects.
pkg/cmd/event/shared/subscription.go:24
↓ 2 callersMethodNotifyCodespaceOfClientActivity
(ctx context.Context, in *NotifyCodespaceOfClientActivityRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:25
↓ 2 callersMethodNumber
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 callersMethodOnRESTWithNextSuccessHelper
(hostname, method, p string, body io.Reader, data any, hasNext bool)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:79
↓ 2 callersFunctionOrganizationTeam
OrganizationTeam fetch the team in an organization with the given slug
api/queries_org.go:52
↓ 2 callersMethodOutput
()
git/command.go:35
↓ 2 callersMethodOwner
()
pkg/extensions/extension.go:28
↓ 2 callersMethodOwnerIDAndType
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 callersMethodOwnerType
()
pkg/cmd/project/shared/queries/queries.go:291
↓ 2 callersMethodOwnerType
()
pkg/cmd/project/shared/queries/queries.go:325
↓ 2 callersMethodPager
Pager returns the configured Pager, optionally scoped by host.
internal/gh/gh.go:60
↓ 2 callersFunctionParseArtifactNumber
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 callersFunctionParseDiscussionArg
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 callersFunctionParseRulesForDisplay
(rules []RulesetRule)
pkg/cmd/ruleset/shared/shared.go:70
↓ 2 callersFunctionParseTelemetryState
ParseTelemetryState determines the telemetry state based on environment variables and configuration values. The GH_TELEMETRY environment variable take
internal/telemetry/telemetry.go:106
↓ 2 callersFunctionPartitionHiddenDirSkills
PartitionHiddenDirSkills splits skills into standard and hidden-dir groups.
internal/skills/discovery/discovery.go:114
↓ 2 callersMethodPassword
Password prompts the user to enter a password.
internal/prompter/prompter.go:36
↓ 2 callersMethodPath
()
pkg/cmd/extension/extension.go:47
↓ 2 callersFunctionPrStateWithDraft
(pr *api.PullRequest)
pkg/cmd/pr/shared/display.go:20
↓ 2 callersMethodPreface
()
pkg/jsoncolor/jsoncolor.go:20
↓ 2 callersMethodPreferEditorPrompt
PreferEditorPrompt returns the configured editor-based prompt, optionally scoped by host.
internal/gh/gh.go:64
↓ 2 callersFunctionPreserveInput
(io *iostreams.IOStreams, state *IssueMetadataState, createErr *error)
pkg/cmd/pr/shared/preserve.go:12
↓ 2 callersFunctionPrintSkip
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 callersFunctionPrintUnchanged
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 callersMethodProject
()
pkg/cmd/project/shared/queries/queries.go:758
↓ 2 callersMethodProjectItemIDByURL
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 callersMethodProjectNames
()
api/queries_issue.go:250
↓ 2 callersFunctionProjectState
(project queries.Project)
pkg/cmd/project/shared/format/display.go:7
↓ 2 callersMethodProjectTitles
()
api/queries_issue.go:258
↓ 2 callersFunctionProjectTitlesToPaths
(client *Client, repo ghrepo.Interface, titles []string, projectsV1Support gh.ProjectsV1Support)
api/queries_repo.go:875
↓ 2 callersFunctionProjectsV2ItemsForIssue
ProjectsV2ItemsForIssue fetches all ProjectItems for an issue.
api/queries_projects_v2.go:65
↓ 2 callersFunctionProjectsV2ItemsForPullRequest
ProjectsV2ItemsForPullRequest fetches all ProjectItems for a pull request.
api/queries_projects_v2.go:136
↓ 2 callersMethodPull
(ctx context.Context, remote, branch string, mods ...CommandModifier)
git/client.go:893
↓ 2 callersFunctionPullRequestClose
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:767
↓ 2 callersFunctionPullRequestForRun
(client *api.Client, repo ghrepo.Interface, run Run)
pkg/cmd/run/shared/shared.go:616
↓ 2 callersFunctionPullRequestReopen
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:786
↓ 2 callersMethodQualifiedHeadRef
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 callersFunctionQueryHasStateClause
(searchQuery string)
pkg/cmd/pr/shared/params.go:269
↓ 2 callersMethodRawBytes
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 callersFunctionReactionGroupList
(rgs api.ReactionGroups)
pkg/cmd/pr/shared/reaction_groups.go:10
↓ 2 callersMethodRead
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 callersMethodRebuild
(ctx context.Context, selector *CodespaceSelector, full bool)
pkg/cmd/codespace/rebuild.go:43
↓ 2 callersMethodRebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:26
↓ 2 callersFunctionRecordInstall
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 callersFunctionRecordTelemetry
RecordTelemetry instruments a command with an invocation-owned telemetry event.
pkg/cmdutil/telemetry.go:13
↓ 2 callersFunctionRecordTelemetryForSubcommands
RecordTelemetryForSubcommands instruments all descendants of a command.
pkg/cmdutil/telemetry.go:57
↓ 2 callersMethodRedf
(t string, args ...any)
pkg/iostreams/color.go:103
↓ 2 callersMethodRefreshScreen
()
pkg/iostreams/iostreams.go:416
↓ 2 callersMethodRegisterConfirmDeletion
(prompt string, stub func(string) error)
internal/prompter/test.go:114
↓ 2 callersFunctionRegisterEventTypesCompletion
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 callersMethodReleaseFeatures
()
internal/featuredetection/feature_detection.go:25
↓ 2 callersFunctionRenameRepo
RenameRepo renames the repository on GitHub and returns the renamed repository
api/queries_repo.go:645
↓ 2 callersFunctionRenderAnnotations
(cs *iostreams.ColorScheme, annotations []Annotation)
pkg/cmd/run/shared/presentation.go:92
↓ 2 callersFunctionRenderJobsCompact
(cs *iostreams.ColorScheme, jobs []Job)
pkg/cmd/run/shared/presentation.go:50
↓ 2 callersFunctionRenderRunHeader
(cs *iostreams.ColorScheme, run Run, ago, prNumber string, attempt uint64)
pkg/cmd/run/shared/presentation.go:10
↓ 2 callersMethodRepo
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 callersFunctionRepoExists
(client *Client, repo ghrepo.Interface)
api/queries_repo.go:1676
↓ 2 callersFunctionRepoMilestones
RepoMilestones fetches milestones in a repository
api/queries_repo.go:1464
↓ 2 callersMethodRepoOwner
RepoOwner is the login name of the owner
api/queries_repo.go:252
↓ 2 callersMethodRepository
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 callersFunctionRepositoryReadme
(client *http.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/view/http.go:26
↓ 2 callersFunctionRequestReviewsByLogin
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 callersFunctionResolveFieldByID
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 callersFunctionResolveSingleSelectOptionID
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 callersMethodResolvedRemote
()
context/remote.go:51
↓ 2 callersFunctionResourceHost
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 callersFunctionRevokeToken
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 callersMethodRoundTrip
(req *http.Request)
pkg/cmd/agent-task/capi/client_test.go:17
↓ 2 callersFunctionRulesetSource
Returns the source of the ruleset in the format "owner/name (repo)" or "owner (org)"
pkg/cmd/ruleset/shared/shared.go:57
↓ 2 callersMethodRun
()
git/command.go:17
↓ 2 callersMethodSearch
Search returns discussions in a repository matching the given search filters.
pkg/cmd/discussion/client/client.go:26
↓ 2 callersMethodSelect
(string, string, []string)
pkg/cmd/pr/shared/editable.go:364
↓ 2 callersMethodSelect
(string, string, []string)
pkg/cmd/workflow/run/run.go:48
↓ 2 callersMethodSelectName
(ctx context.Context)
pkg/cmd/codespace/codespace_selector.go:65
↓ 2 callersFunctionSelectedRepositoryCount
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 callersMethodServerURL
()
pkg/cmd/codespace/common.go:69
↓ 2 callersMethodSet
(hostname, key, value string)
internal/config/config.go:105
↓ 2 callersMethodSetBranchConfig
SetBranchConfig sets the named value on the given branch.
git/client.go:487
↓ 2 callersMethodSetDefaultHost
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 callersMethodSetNeverPrompt
(v bool)
pkg/iostreams/iostreams.go:288
← previousnext →1,501–1,600 of 7,572, ranked by callers