MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions6,141 in github.com/cli/cli

↓ 6 callersFunctionNewTestAssets
NewTestAssets returns a UserAsset per name, resolved through --attach, which is the only way a command builds one. It writes each name into a tempora
internal/attachments/test.go:22
↓ 6 callersFunctionNewUntrusted
NewUntrusted labels a string as untrusted external content.
pkg/iostreams/untrusted.go:26
↓ 6 callersMethodPath
Extension Name without gh-
pkg/extensions/extension.go:20
↓ 6 callersMethodProjectFields
ProjectFields returns a project with fields. 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:1080
↓ 6 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/create/create.go:91
↓ 6 callersFunctionRepoMetadata
RepoMetadata pre-fetches the metadata for attaching to issues and pull requests
api/queries_repo.go:986
↓ 6 callersMethodResolver
()
pkg/cmd/factory/remote_resolver.go:28
↓ 6 callersFunctionSearcher
(f *cmdutil.Factory)
pkg/cmd/search/shared/shared.go:41
↓ 6 callersMethodSetContentSanitization
SetContentSanitization toggles ANSI escape sanitization on ContentOut. Commands should call this with false when an explicit opt-out flag (e.g. --allo
pkg/iostreams/iostreams.go:494
↓ 6 callersMethodStartedTime
()
pkg/cmd/run/shared/shared.go:114
↓ 6 callersFunctionSymbol
(cs *iostreams.ColorScheme, status Status, conclusion Conclusion)
pkg/cmd/run/shared/shared.go:600
↓ 6 callersFunctionTitle
Title returns a copy of the string s with all Unicode letters that begin words mapped to their Unicode title case.
internal/text/text.go:24
↓ 6 callersMethodType
Type is the underlying type of the project item.
pkg/cmd/project/shared/queries/queries.go:604
↓ 6 callersFunctionValidAliasExpansionFunc
ValidAliasExpansionFunc returns a function that will check if the given string is a valid alias expansion. An expansion is valid if: - it is a shell e
pkg/cmd/alias/shared/validations.go:36
↓ 6 callersFunctionValidAliasNameFunc
ValidAliasNameFunc returns a function that will check if the given string is a valid alias name. A name is valid if: - it does not shadow an existing
pkg/cmd/alias/shared/validations.go:15
↓ 6 callersMethodViewerCanTriage
ViewerCanTriage is true when the requesting user can triage issues and pull requests
api/queries_repo.go:277
↓ 6 callersMethodWorkflowName
WorkflowName returns the human-readable name of the workflow that this run belongs to. TODO: consider lazy-loading the underlying API data to avoid ex
pkg/cmd/run/shared/shared.go:160
↓ 6 callersFunctioncheckStringOmits
(t *testing.T, got, expected string)
internal/docs/docs_test.go:107
↓ 6 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/pr/create/create.go:421
↓ 6 callersMethodfetchBundleFromAttestations
(attestations []*Attestation)
pkg/cmd/attestation/api/client.go:196
↓ 6 callersFunctionhttpResponse
(status int, req *http.Request, body io.Reader)
pkg/httpmock/stub.go:270
↓ 6 callersMethodinstallDir
()
pkg/cmd/extension/manager.go:593
↓ 6 callersFunctionnewIOStreams
(cfg gh.Config, invokingAgent agents.AgentName)
internal/ghcmd/cmd.go:362
↓ 6 callersFunctionrequireExtensionHTTPError
(t *testing.T, err error, status int)
pkg/cmd/extension/http_test.go:32
↓ 6 callersFunctionrunCloneCommand
(httpClient *http.Client, cli string)
pkg/cmd/repo/clone/clone_test.go:114
↓ 6 callersFunctionrunClose
(config closeConfig)
pkg/cmd/project/close/close.go:85
↓ 6 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/list/list_test.go:76
↓ 6 callersFunctionrunCommand
(rt http.RoundTripper, branch string, isTTY bool, cli string)
pkg/cmd/pr/view/view_test.go:175
↓ 6 callersFunctionrunEdit
(config editConfig)
pkg/cmd/project/edit/edit.go:93
↓ 6 callersMethodselectedKeys
()
internal/prompter/multi_select_with_search.go:187
↓ 6 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/secret/set/set.go:203
↓ 6 callersFunctionstubDeviceID
(id string)
internal/telemetry/telemetry_test.go:26
↓ 6 callersFunctionstubDiscoverTree
stubDiscoverTree registers the single recursive-tree call used by DiscoverSkills.
pkg/cmd/skills/install/install_test.go:230
↓ 6 callersFunctionstubInstallFiles
stubInstallFiles registers subtree + blob stubs for installer.Install (one skill).
pkg/cmd/skills/install/install_test.go:238
↓ 6 callersFunctionstubLocalExtension
(tempDir, path string)
pkg/cmd/extension/manager_test.go:1545
↓ 6 callersFunctionstubResolveVersion
--- HTTP stub helpers --- stubResolveVersion registers API stubs for latest release + tag resolution.
pkg/cmd/skills/install/install_test.go:218
↓ 6 callersFunctiontestFullConfig
()
internal/config/migrate_test.go:245
↓ 6 callersMethodupload
upload sends the file's bytes and returns the asset URL to reference from the markdown.
internal/attachments/client.go:109
↓ 5 callersFunctionAddAuthTokenHeader
AddAuthTokenHeader adds an authentication token header for the host specified by the request.
api/http_client.go:154
↓ 5 callersMethodBaseRef
BaseRef returns the base branch name.
pkg/cmd/pr/create/create.go:95
↓ 5 callersMethodBlue
(t string)
pkg/iostreams/color.go:181
↓ 5 callersMethodCacheDir
CacheDir returns the directory where the cacheable artifacts can be persisted.
internal/gh/gh.go:70
↓ 5 callersMethodCheckoutBranch
(branch string)
pkg/cmd/extension/git.go:10
↓ 5 callersFunctionContainsEscapeSequence
ContainsEscapeSequence reports whether b contains an ANSI escape byte (0x1B), which can manipulate a terminal when printed.
pkg/iostreams/content.go:18
↓ 5 callersMethodCount
()
api/reaction_groups.go:42
↓ 5 callersFunctionDiscussionClientFunc
DiscussionClientFunc returns a factory function that creates a DiscussionClient from the given Factory. The returned function is intended to be stored
pkg/cmd/discussion/shared/client.go:13
↓ 5 callersMethodDispatch
(args []string, stdin io.Reader, stdout, stderr io.Writer)
pkg/extensions/extension.go:38
↓ 5 callersMethodEnableDryRunMode
()
pkg/extensions/extension.go:40
↓ 5 callersMethodError
()
internal/attachments/client.go:198
↓ 5 callersMethodError
()
internal/barista/observability/telemetry.twirp.go:840
↓ 5 callersFunctionFindByID
FindByID returns the agent host with the given ID, or an error if not found.
internal/skills/registry/registry.go:351
↓ 5 callersFunctionFindIssueOrPR
(httpClient *http.Client, repo ghrepo.Interface, number int, fields []string)
pkg/cmd/issue/shared/lookup.go:136
↓ 5 callersFunctionFormatSlice
FormatSlice concatenates elements of the given string slice into a well-formatted, possibly multiline, string with specific line length limit. Element
internal/text/text.go:97
↓ 5 callersMethodForwardPortToListener
ForwardPortToListener implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:41
↓ 5 callersMethodGetByDigest
(params FetchParams)
pkg/cmd/attestation/api/client.go:67
↓ 5 callersMethodGetComment
GetComment fetches a single discussion comment by node ID.
pkg/cmd/discussion/client/client.go:54
↓ 5 callersFunctionGetVariableEntity
(orgName, envName string)
pkg/cmd/variable/shared/shared.go:52
↓ 5 callersFunctionGistIDFromURL
(gistURL string)
pkg/cmd/gist/shared/shared.go:84
↓ 5 callersFunctionGitHubReleaseBundle
(t *testing.T)
pkg/cmd/attestation/test/data/data.go:26
↓ 5 callersMethodHasEnvToken
HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
internal/gh/gh.go:150
↓ 5 callersMethodHeadLabel
()
api/queries_pr.go:309
↓ 5 callersFunctionHostnameValidator
(hostname string)
internal/ghinstance/host.go:36
↓ 5 callersFunctionIndent
(s, indent string)
internal/text/text.go:19
↓ 5 callersMethodInstallName
InstallName returns the relative path used for the install directory. For namespaced skills it returns "namespace/name" (creating a nested directory),
internal/skills/discovery/discovery.go:82
↓ 5 callersFunctionIsBinaryContents
(contents []byte)
pkg/cmd/gist/shared/shared.go:214
↓ 5 callersMethodIsPinned
()
pkg/cmd/extension/extension.go:150
↓ 5 callersMethodIsTTY
IsTTY gets whether the TablePrinter will render to a terminal.
internal/tableprinter/table_printer.go:20
↓ 5 callersMethodIssueFeatures
()
internal/featuredetection/feature_detection.go:16
↓ 5 callersMethodIssues
(Query)
pkg/search/searcher.go:33
↓ 5 callersMethodListCategories
ListCategories returns the discussion categories available in a repository.
pkg/cmd/discussion/client/client.go:37
↓ 5 callersMethodListCodespaces
(ctx context.Context, opts api.ListCodespacesOptions)
pkg/cmd/codespace/common.go:73
↓ 5 callersMethodMultiSelect
(prompt string, defaults []string, options []string)
pkg/cmd/pr/shared/survey.go:43
↓ 5 callersMethodMutate
TODO: un-export this since it couples the caller heavily to api.GraphQLClient
pkg/cmd/project/shared/queries/queries.go:102
↓ 5 callersFunctionNew
(editorCmd string, io *iostreams.IOStreams)
internal/prompter/prompter.go:55
↓ 5 callersFunctionNewAssignableUser
(id, login, name string)
api/queries_repo.go:1179
↓ 5 callersFunctionNewDetector
(httpClient *http.Client, host string)
internal/featuredetection/feature_detection.go:182
↓ 5 callersFunctionNewMockSigstoreVerifier
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:53
↓ 5 callersFunctionNewQualifiedHeadRefWithoutOwner
(branchName string)
pkg/cmd/pr/shared/find_refs_resolution.go:39
↓ 5 callersFunctionNewRemote
(name string, u string)
git/objects.go:42
↓ 5 callersFunctionParseQualifiedHeadRef
ParseQualifiedHeadRef takes strings of the form <owner>:<branch> or <branch> and returns a QualifiedHeadRef. If the form <owner>:<branch> is used, the
pkg/cmd/pr/shared/find_refs_resolution.go:55
↓ 5 callersMethodPath
Path is the file as the user wrote it, so a caller naming it back names what they typed.
internal/attachments/userasset.go:44
↓ 5 callersMethodRepositoryDatabaseID
()
pkg/cmd/pr/shared/commentable.go:37
↓ 5 callersMethodRepositoryViewerPermission
()
pkg/cmd/pr/shared/commentable.go:38
↓ 5 callersFunctionResolveGitRoot
ResolveGitRoot returns the git repository root using the provided client, falling back to the current working directory on error.
internal/skills/installer/installer.go:313
↓ 5 callersFunctionSSOURL
SSOURL returns the URL of a SAML SSO challenge received by the server for clients that use ExtractHeader to extract the value of the "X-GitHub-SSO" re
pkg/cmd/factory/default.go:294
↓ 5 callersFunctionScopesResponder
ScopesResponder returns a response with a 200 status code and the given OAuth scopes.
pkg/httpmock/stub.go:251
↓ 5 callersMethodSearchFeatures
()
internal/featuredetection/feature_detection.go:21
↓ 5 callersFunctionSelectRun
SelectRun prompts the user to select a run from a list of runs by using the recommended prompter interface
pkg/cmd/run/shared/shared.go:538
↓ 5 callersMethodSetRemoteResolution
(ctx context.Context, name, resolution string)
git/client.go:208
↓ 5 callersMethodSetup
(hostname, username, authToken string)
pkg/cmd/auth/shared/git_credential.go:80
↓ 5 callersFunctionShortRef
ShortRef strips the "refs/heads/" or "refs/tags/" prefix from a fully qualified ref, returning the short name. If the ref is not fully qualified it is
internal/skills/discovery/discovery.go:139
↓ 5 callersFunctionSigstoreBundle
SigstoreBundle returns a test sigstore-go bundle.Bundle
pkg/cmd/attestation/test/data/data.go:17
↓ 5 callersMethodSkip
()
internal/prompter/multi_select_with_search.go:396
↓ 5 callersMethodStandardSearchString
String returns the string representation of the query which can be used with the legacy search backend, which is used in global search GUI (i.e. githu
pkg/search/query.go:126
↓ 5 callersMethodStartSSHServer
(ctx context.Context)
internal/codespaces/rpc/invoker.go:47
↓ 5 callersFunctionStringSliceEnumFlag
(cmd *cobra.Command, p *[]string, name, shorthand string, defaultValues, options []string, usage string)
pkg/cmdutil/flags.go:38
↓ 5 callersMethodTokenForUser
TokenForUser retrieves the authentication token and its source for a specified user and hostname.
internal/gh/gh.go:198
↓ 5 callersMethodType
()
pkg/cmdutil/flags.go:119
↓ 5 callersMethodUnqualifiedHeadRef
UnqualifiedHeadRef returns a head ref in the form of the branch name only.
pkg/cmd/pr/create/create.go:93
↓ 5 callersMethodUnwrap
()
pkg/cmd/pr/shared/finder.go:620
← previousnext →401–500 of 6,141, ranked by callers