MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 3 callersMethodLastCommit
()
pkg/cmd/browse/browse.go:359
↓ 3 callersMethodLegacyBody
()
pkg/cmd/pr/shared/templates.go:176
↓ 3 callersMethodLink
()
pkg/cmd/pr/shared/comments.go:24
↓ 3 callersMethodList
List returns the artifacts on an issue in the order the API returns them, which is number order. An empty artifactType lists every type, and a limit o
pkg/cmd/issue/artifact/client/client.go:33
↓ 3 callersMethodListLabels
ListLabels returns the labels available in a repository.
pkg/cmd/discussion/client/client.go:36
↓ 3 callersMethodLocalPublicKeys
()
pkg/ssh/ssh_keys.go:37
↓ 3 callersMethodLogf
(format string, args ...any)
script/api-host-gateway/gateway/main.go:307
↓ 3 callersMethodLogin
()
api/queries_repo.go:1167
↓ 3 callersMethodLogoutWithCredential
LogoutWithCredential reloads the selected user's credential under the refresh mutex and attempts the advisory lock on a best-effort basis, passing any
internal/gh/gh.go:305
↓ 3 callersFunctionMatchCategory
MatchCategory finds a category by name or slug (case-insensitive). It prefers an exact slug match over a name match, so users are encouraged to use sl
pkg/cmd/discussion/shared/categories.go:14
↓ 3 callersMethodMilestoneToID
(title string)
api/queries_repo.go:942
↓ 3 callersMethodMinutes
()
pkg/cmd/codespace/create.go:61
↓ 3 callersMethodMultiSelect
(string, []string, []string)
pkg/cmd/run/download/download.go:37
↓ 3 callersMethodMultiSelect
MultiSelect prompts the user to select one or more options from a list of options.
internal/prompter/prompter.go:23
↓ 3 callersMethodMultiSelectWithSearch
(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) prompter.
pkg/cmd/pr/shared/survey.go:44
↓ 3 callersMethodNameForSubmit
()
pkg/cmd/pr/shared/templates.go:119
↓ 3 callersFunctionNewCmdApi
(f *cmdutil.Factory, runF func(*ApiOptions) error)
pkg/cmd/api/api.go:71
↓ 3 callersFunctionNewCmdComment
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder, runF func(*prShared.CommentableOptions) error)
pkg/cmd/issue/comment/comment.go:15
↓ 3 callersFunctionNewCmdInstall
NewCmdInstall creates the "skills install" command.
pkg/cmd/skills/install/install.go:75
↓ 3 callersFunctionNewCopilotReviewerReplacer
NewCopilotReviewerReplacer creates a replacer for reviewer @copilot references.
pkg/cmd/pr/shared/params.go:347
↓ 3 callersFunctionNewExternalHTTPClient
NewExternalHTTPClient creates an HTTP client for talking to non-GitHub hosts. It includes debug logging and a User-Agent header but does not attach an
api/http_client.go:132
↓ 3 callersFunctionNewLiveStore
(outputPath string)
pkg/cmd/attestation/download/metadata.go:88
↓ 3 callersFunctionNewLogRenderer
()
pkg/cmd/agent-task/shared/log.go:25
↓ 3 callersFunctionNewMockVerifier
(mockResult *verification.AttestationProcessingResult)
pkg/cmd/release/shared/attestation.go:120
↓ 3 callersFunctionNewPullRequestFindRefsResolver
(gitConfigClient GitConfigClient, remotesFn func() (ghContext.Remotes, error))
pkg/cmd/pr/shared/find_refs_resolution.go:125
↓ 3 callersFunctionNewRemoteToRepoResolver
(remotesFn func() (ghContext.Remotes, error))
pkg/cmd/pr/shared/find_refs_resolution.go:248
↓ 3 callersFunctionNewSpecialAssigneeReplacer
NewSpecialAssigneeReplacer creates a replacer that expands @me and (when actorAssignees is true) Copilot actor names in assignee slices. copilotUseLog
pkg/cmd/pr/shared/editable.go:197
↓ 3 callersFunctionNewTrustedRootCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/trustedroot/trustedroot.go:33
↓ 3 callersFunctionNewUploader
NewUploader returns the uploader for a command's --attach files, which upload against the issue's repository with the token for its host. It refuses a
pkg/cmd/issue/artifact/shared/shared.go:262
↓ 3 callersFunctionNewVerifyCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/verify/verify.go:23
↓ 3 callersFunctionNilStringFlag
NilStringFlag defines a new flag with a string pointer receiver. This is useful for differentiating between the flag being set to a blank value and th
pkg/cmdutil/flags.go:15
↓ 3 callersMethodNodes
()
pkg/cmd/project/shared/queries/queries.go:757
↓ 3 callersMethodOpenStream
OpenStream opens the server-sent events stream of the subscription with the given ID. The caller must close the returned body. The stream is live only
pkg/cmd/event/client/client.go:68
↓ 3 callersFunctionOverrideBaseRepoFunc
(baseRepoFunc func() (ghrepo.Interface, error), override string)
pkg/cmdutil/repo_override.go:75
↓ 3 callersFunctionParseArtifactArg
ParseArtifactArg is ParseArtifactArgs for a command that takes one artifact, {<issue> <artifact-number> | <artifact-url>}. A second artifact URL is al
pkg/cmd/issue/artifact/shared/shared.go:113
↓ 3 callersFunctionParseDiscussionOrCommentArg
ParseDiscussionOrCommentArg parses a positional argument that can be a discussion number, discussion URL, comment node ID (DC_...), or comment URL (wi
pkg/cmd/discussion/shared/lookup.go:67
↓ 3 callersFunctionParseMetadataRepo
ParseMetadataRepo extracts repository information from skill metadata.
internal/skills/source/source.go:35
↓ 3 callersFunctionParsePushDefault
(s string)
git/client.go:512
↓ 3 callersFunctionParseRepoURL
ParseRepoURL parses a repository URL stored in skill metadata.
internal/skills/source/source.go:20
↓ 3 callersFunctionParseSSHArgs
ParseSSHArgs parses the given array of arguments into two distinct slices of flags and command. The ssh command syntax is: ssh [flags] user@host comma
internal/codespaces/ssh.go:100
↓ 3 callersFunctionParseURL
ParseURL parses a pull request URL and returns the repository, pull request number, and any tailing path components. If there is no error, the returne
pkg/cmd/pr/shared/finder.go:304
↓ 3 callersFunctionPartition
Partition takes a slice of any type T and separates it into two slices of the same type based on the provided predicate function. Any item that return
pkg/cmdutil/args.go:85
↓ 3 callersMethodPathFromRoot
Show current directory relative to the top-level directory of repository.
git/client.go:744
↓ 3 callersFunctionPrCheckStatusSummaryWithColor
(cs *iostreams.ColorScheme, checks api.PullRequestChecksStatus)
pkg/cmd/pr/shared/display.go:85
↓ 3 callersFunctionPrintPartialFailure
PrintPartialFailure prints the line for an artifact the command acted on while another part of its work failed, such as an artifact saved with only so
pkg/cmd/issue/artifact/shared/results.go:89
↓ 3 callersMethodProjects
Projects returns all the projects for an Owner. If the OwnerType is VIEWER, no login is required. If limit is 0, the default limit is used.
pkg/cmd/project/shared/queries/queries.go:1545
↓ 3 callersMethodPrompt
EXTENDED This is straight copypasta from survey to get our overridden prompt called.;
pkg/surveyext/editor.go:154
↓ 3 callersMethodPrompt
Prompt returns the configured prompt, optionally scoped by host.
internal/gh/gh.go:62
↓ 3 callersMethodPullRequestFeatures
()
internal/featuredetection/feature_detection.go:20
↓ 3 callersMethodPushRevision
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder.go:42
↓ 3 callersFunctionRESTPrefix
(hostname string)
internal/ghinstance/host.go:59
↓ 3 callersFunctionRangeArgs
RangeArgs is cobra.RangeArgs with the usage errors ExactArgs gives: more than max arguments is "too many arguments", and fewer than min is msg, so the
pkg/cmdutil/args.go:42
↓ 3 callersFunctionReadContent
ReadContent reads an artifact's new content from the file at path, following a symlink, or from stdin when path is "-". It also returns the directory
pkg/cmd/issue/artifact/shared/content.go:24
↓ 3 callersMethodReadUserFile
(fn string)
pkg/iostreams/iostreams.go:445
↓ 3 callersMethodRecordEvents
RecordEvents records a batch of telemetry events from a client application.
internal/barista/observability/telemetry.twirp.go:38
↓ 3 callersMethodRecordExpiringSetupCancelled
RecordExpiringSetupCancelled records whether the user cancelled the sign-in at the expiring credential-helper prompt. That prompt, and therefore a can
pkg/cmd/auth/shared/telemetry.go:41
↓ 3 callersMethodRefreshCalls
RefreshCalls gets all the calls that were made to Refresh. Check the length with: len(mockedTokenRefresher.RefreshCalls())
internal/gh/mock/token_refresher.go:70
↓ 3 callersMethodRegister
Register a stub for an external command. Pattern is a regular expression, output is the standard output from a command. Pass callbacks to inspect raw
internal/run/stub.go:74
↓ 3 callersMethodRemoteForRepo
RemoteForRepo finds the git remote that points to a repository
context/context.go:165
↓ 3 callersFunctionRenderJobs
(cs *iostreams.ColorScheme, jobs []Job, verbose bool)
pkg/cmd/run/shared/presentation.go:28
↓ 3 callersFunctionReplaceActorsForAssignableByLogin
ReplaceActorsForAssignableByLogin calls the replaceActorsForAssignable mutation using actor logins. This avoids the need to resolve logins to node IDs
api/queries_pr.go:619
↓ 3 callersFunctionRepoGitIgnoreTemplate
RepoGitIgnoreTemplate fetches an available repository gitignore template. It uses API v3 here because gitignore template isn't supported by GraphQL.
api/queries_repo.go:1753
↓ 3 callersFunctionRepoIssueTypes
RepoIssueTypes fetches the available issue types for a repository.
api/queries_issue.go:748
↓ 3 callersFunctionRepoLicense
RepoLicense fetches an available repository license. It uses API v3 because licenses are not supported by GraphQL.
api/queries_repo.go:1721
↓ 3 callersFunctionRepoNetwork
RepoNetwork inspects the relationship between multiple GitHub repositories
api/queries_repo.go:477
↓ 3 callersMethodRepositoryFeatures
()
internal/featuredetection/feature_detection.go:21
↓ 3 callersFunctionRepositoryGraphQL
(fields []string)
api/query_builder.go:555
↓ 3 callersFunctionRequestableReviewersForCompletion
(httpClient *http.Client, repo ghrepo.Interface)
pkg/cmd/pr/shared/completion.go:14
↓ 3 callersMethodResetOutput
()
pkg/surveyext/editor_test.go:238
↓ 3 callersMethodResolveCommentNodeID
ResolveCommentNodeID constructs a discussion comment node ID from a repository and a comment database ID (the numeric ID from the URL fragment).
pkg/cmd/discussion/client/client.go:54
↓ 3 callersFunctionResolveFieldByName
ResolveFieldByName finds the single project field whose name matches name, case-insensitively. Matching is case-insensitive to mirror the Projects v2
pkg/cmd/project/shared/queries/resolve_fields.go:65
↓ 3 callersFunctionResolveLabels
ResolveLabels matches user-provided label names (case-insensitive) against a set of known labels and returns the corresponding IDs. If any names canno
pkg/cmd/discussion/shared/labels.go:13
↓ 3 callersMethodResolvePullRequestRefs
ResolvePullRequestRefs takes a base repository, a base branch name and a local branch name and uses the git configuration to determine the head reposi
pkg/cmd/pr/shared/find_refs_resolution.go:135
↓ 3 callersFunctionResolveWorktreeTarget
ResolveWorktreeTarget validates path and determines whether it is the root of an existing linked worktree for the current repository.
pkg/cmd/pr/shared/worktree.go:24
↓ 3 callersMethodResultingHelperCategory
ResultingHelperCategory reports the git credential helper in effect after Setup ran, as one of "ours", "other", or "none", or "error" when helper dete
pkg/cmd/auth/shared/git_credential.go:154
↓ 3 callersMethodSSH
SSH opens an ssh session or runs an ssh command in a codespace.
pkg/cmd/codespace/ssh.go:165
↓ 3 callersFunctionSSHKeyUpload
Uploads the provided SSH key. Returns true if the key was uploaded, false if it was not.
pkg/cmd/ssh-key/add/http.go:17
↓ 3 callersFunctionScopeLabels
ScopeLabels returns the display labels for the scope selection prompt. If repoName is non-empty, it is included in the project-scope label for additio
internal/skills/registry/registry.go:449
↓ 3 callersFunctionSearchIssues
(opts *IssuesOptions)
pkg/cmd/search/shared/shared.go:58
↓ 3 callersMethodSelect
generic prompts from go-gh Select prompts the user to select an option from a list of options.
internal/prompter/prompter.go:21
↓ 3 callersMethodSendKey
(c rune)
pkg/surveyext/editor_test.go:220
↓ 3 callersMethodSetAccessiblePrompterEnabled
(enabled bool)
pkg/iostreams/iostreams.go:475
↓ 3 callersMethodSetRemoteBranches
(ctx context.Context, remote string, refspec string)
git/client.go:830
↓ 3 callersFunctionShortSHA
ShortSHA returns the first 8 characters of a SHA hash for display purposes.
git/client.go:810
↓ 3 callersFunctionShortcutURL
ShortcutURL returns the URL an Internet Shortcut file's content links to, read the way Windows reads it: the first URL= in the [InternetShortcut] sect
pkg/cmd/issue/artifact/shared/content.go:70
↓ 3 callersFunctionShouldCopyToClipboard
ShouldCopyToClipboard resolves an explicit flag value before falling back to configuration.
pkg/cmd/auth/shared/login_flow.go:63
↓ 3 callersMethodShowRefs
ShowRefs resolves fully-qualified refs to commit hashes.
git/client.go:237
↓ 3 callersFunctionSplitFileArg
SplitFileArg splits an argument of the form <file>#<text>, the way --attach reads '<file>#<image alt text>'. An existing path wins over the delimiter,
internal/attachments/flags.go:105
↓ 3 callersMethodStartAlternateScreenBuffer
()
pkg/iostreams/iostreams.go:381
↓ 3 callersMethodStartJupyterServer
(ctx context.Context)
internal/codespaces/rpc/invoker.go:45
↓ 3 callersFunctionStatusScopesResponder
StatusScopesResponder returns a response with the given status code and OAuth scopes.
pkg/httpmock/stub.go:257
↓ 3 callersMethodString
()
test/helpers.go:15
↓ 3 callersMethodStubIssueRepoInfoResponse
(owner, repo string)
pkg/httpmock/legacy.go:32
↓ 3 callersMethodTelemetry
Telemetry returns the configured telemetry setting, ignoring host scoping since telemetry is a global setting.
internal/gh/gh.go:70
↓ 3 callersMethodTest
(t *testing.T)
pkg/cmd/auth/shared/contract/helper_config.go:20
↓ 3 callersMethodTheme
()
pkg/iostreams/iostreams.go:48
↓ 3 callersMethodTokenForUser
TokenForUser retrieves the credential for the given user and hostname. Like ActiveToken it returns the last stored token as-is, including the current
internal/config/config.go:763
↓ 3 callersMethodTokenForUserWithRefresh
TokenForUserWithRefresh retrieves the credential for a specified user and hostname and, when it is refreshable and its access token is expiring, renew
internal/gh/gh.go:313
↓ 3 callersMethodTokenFromKeyringForUser
TokenFromKeyringForUser will retrieve the auth token for the given hostname and username, only searching in encrypted storage. An empty username will
internal/gh/gh.go:259
↓ 3 callersFunctionTryDetermineDefaultPRHead
TryDetermineDefaultPRHead is a thin wrapper around determineDefaultPushTarget, which attempts to convert a present remote into a resolved repository.
pkg/cmd/pr/shared/find_refs_resolution.go:185
← previousnext →1,001–1,100 of 7,572, ranked by callers