MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 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:59
↓ 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:63
↓ 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 callersMethodRefresh
Refresh exchanges the given refresh token for a renewed credential on the given hostname.
internal/gh/gh.go:217
↓ 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:22
↓ 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 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:102
↓ 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:494
↓ 2 callersMethodSetNeverPrompt
(v bool)
pkg/iostreams/iostreams.go:288
↓ 2 callersMethodSetSpinnerDisabled
(v bool)
pkg/iostreams/iostreams.go:296
↓ 2 callersFunctionShouldCheckForExtensionUpdate
ShouldCheckForExtensionUpdate decides whether we check for updates for GitHub CLI extensions based on user preferences and current execution context.
internal/update/update.go:41
↓ 2 callersFunctionShouldCheckForUpdate
ShouldCheckForUpdate decides whether we check for updates for the GitHub CLI based on user preferences and current execution context.
internal/update/update.go:82
↓ 2 callersMethodShouldExclude
(repo string)
pkg/cmd/status/status.go:210
↓ 2 callersFunctionShouldUseExpiring
ShouldUseExpiring resolves whether to prefer expiring credentials that gh refreshes automatically. An explicit --expiring flag value wins; when the fl
pkg/cmd/auth/shared/login_flow.go:74
↓ 2 callersMethodShow
()
pkg/surveyext/editor_manual.go:15
↓ 2 callersFunctionSmartBaseRepoFunc
SmartBaseRepoFunc provides additional behaviour over BaseRepoFunc. Read the BaseRepoFunc documentation for more information on how remotes are fetched
pkg/cmd/factory/default.go:161
↓ 2 callersFunctionSome
Some instantiates an [Option] with a value.
pkg/option/option.go:40
↓ 2 callersFunctionSpawnSendTelemetry
SpawnSendTelemetry spawns a detached subprocess to send telemetry. The payload is written to the child's stdin via a pipe so that it is not visible to
internal/telemetry/telemetry.go:435
↓ 2 callersMethodSpinner
Spinner returns the configured spinner setting, optionally scoped by host.
internal/gh/gh.go:67
↓ 2 callersMethodStartProgressIndicatorWithLabel
(label string)
pkg/iostreams/iostreams.go:304
↓ 2 callersMethodStartRemoteServerAsync
(ctx context.Context, in *StartRemoteServerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:25
↓ 2 callersMethodState
The state of an issue or a pull request, may be either open or closed. For a pull request, the "merged" state is inferred from a value for merged_at a
pkg/search/result.go:394
↓ 2 callersFunctionStateDir
()
internal/config/config.go:991
↓ 2 callersFunctionStateTitleWithColor
(cs *iostreams.ColorScheme, pr api.PullRequest)
pkg/cmd/pr/shared/display.go:12
↓ 2 callersFunctionStatusCheckRollupGraphQLWithoutCountByState
(after string)
api/query_builder.go:232
↓ 2 callersMethodStopCodespace
(ctx context.Context, name string, orgName string, userName string)
pkg/cmd/codespace/common.go:76
↓ 2 callersMethodString
String returns the content with ANSI escape sequences neutralized. It is called automatically by the fmt package, so printing an Untrusted value is sa
pkg/iostreams/untrusted.go:38
↓ 2 callersMethodStubRepoInfoResponseWithPermission
StubRepoInfoResponseWithPermission is StubRepoInfoResponse with a caller-selected viewer permission.
pkg/httpmock/legacy.go:15
↓ 2 callersMethodStubRepoResponse
(owner, repo string)
pkg/httpmock/legacy.go:46
↓ 2 callersFunctionSubscriptionLimitError
SubscriptionLimitError adds the commands that free a subscription slot to err when it reports the subscription limit, and returns other errors unchang
pkg/cmd/event/shared/subscription.go:44
↓ 2 callersFunctionSubscriptionNotFoundError
SubscriptionNotFoundError reports a subscription the API did not find. The API does not tell a missing subscription apart from an expired, deleted, or
pkg/cmd/event/shared/subscription.go:38
↓ 2 callersFunctionSuggestedReviewerActors
SuggestedReviewerActors fetches suggested reviewers for a pull request. It combines results from three sources using a cascading quota system: - sugge
api/queries_pr_review.go:410
↓ 2 callersFunctionSuggestedReviewerActorsForRepo
SuggestedReviewerActorsForRepo fetches potential reviewers for a repository. Unlike SuggestedReviewerActors, this doesn't require an existing PR - use
api/queries_pr_review.go:567
← previousnext →1,501–1,600 of 7,487, ranked by callers