MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 7 callersMethodExecutable
()
pkg/cmd/codespace/common.go:28
↓ 7 callersMethodFetch
(remote string, refspec string)
pkg/cmd/extension/git.go:14
↓ 7 callersFunctionFetchBlob
FetchBlob retrieves the content of a blob by SHA. The blob is base64-encoded inside the JSON response and decoded here, so it is returned as iostreams
internal/skills/discovery/discovery.go:918
↓ 7 callersFunctionFetchRelease
FetchRelease finds a published repository release by its tagName, or a draft release by its pending tag name.
pkg/cmd/release/shared/fetch.go:183
↓ 7 callersMethodForRepo
(repoDir string)
pkg/cmd/extension/git.go:15
↓ 7 callersMethodGet
(string)
pkg/cmd/extension/browse/browse.go:43
↓ 7 callersFunctionIsDebugEnabled
()
utils/utils.go:10
↓ 7 callersMethodIsIgnored
IsIgnored reports whether the given path is ignored by .gitignore rules. Returns an error for fatal git failures (e.g. path outside repository).
git/client.go:791
↓ 7 callersMethodList
(opt ListOptions)
pkg/cmd/pr/shared/lister.go:13
↓ 7 callersMethodLoginRefreshable
LoginRefreshable stores a refreshable credential for the given user, sets the git protocol, and marks the user active for the hostname. Like Login it
internal/gh/gh.go:289
↓ 7 callersMethodMarkdownEditor
(prompt string, defaultValue string, blankAllowed bool)
pkg/cmd/pr/shared/survey.go:41
↓ 7 callersFunctionMinimumArgs
(n int, msg string)
pkg/cmdutil/args.go:11
↓ 7 callersFunctionNewCAPIClient
NewCAPIClient creates a new CAPI client. Provide an auth source, the user's GitHub host, the resolved Copilot API URL, and an HTTP client which will b
pkg/cmd/agent-task/capi/client.go:44
↓ 7 callersFunctionParseIssueFromArg
(arg string)
pkg/cmd/issue/shared/lookup.go:56
↓ 7 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
↓ 7 callersFunctionPrintFailure
PrintFailure prints the line for an artifact the command couldn't act on, with err's reason. In a terminal, it reads "X Failed to <action>: <reason>"
pkg/cmd/issue/artifact/shared/results.go:73
↓ 7 callersMethodProjectItems
ProjectItems returns the items of a project. If the OwnerType is VIEWER, no login is required. If limit is 0, the default limit is used. The queryStr
pkg/cmd/project/shared/queries/queries.go:691
↓ 7 callersMethodProjectsV1
()
internal/featuredetection/feature_detection.go:19
↓ 7 callersMethodReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder.go:39
↓ 7 callersFunctionRepoDefaultBranch
(client *Client, repo ghrepo.Interface)
api/queries_repo.go:415
↓ 7 callersFunctionScopesResponder
ScopesResponder returns a response with a 200 status code and the given OAuth scopes.
pkg/httpmock/stub.go:251
↓ 7 callersMethodSetHosts
SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts. Use for testing purposes only.
internal/gh/gh.go:325
↓ 7 callersMethodString
String renders the full URL. Path components and query parameters are URL encoded (aka percent-encoded) while the host prefix is included as given. Th
internal/safeurl/safeurl.go:97
↓ 7 callersMethodStubRepoInfoResponse
TODO: clean up methods in this file when there are no more callers
pkg/httpmock/legacy.go:9
↓ 7 callersFunctionStubWriteConfig
StubWriteConfig stubs out the filesystem where config file are written. It then returns a function that will read in the config files into io.Writers.
internal/config/test.go:201
↓ 7 callersFunctionTestArgParsing
TestArgParsing is a test helper that verifies that issue commands correctly parse the `{issue number | url}` positional arg into an issue number and b
pkg/cmd/issue/argparsetest/argparsetest.go:29
↓ 7 callersFunctionValidateSupportedHost
ValidateSupportedHost rejects hosts that are not supported. Supported hosts are github.com and GHEC with data residency (*.ghe.com). GitHub Enterprise
internal/skills/source/source.go:56
↓ 7 callersMethodVerbosePrintf
(f string, v ...any)
pkg/cmd/attestation/io/handler.go:64
↓ 7 callersMethodappendLog
(entries []loggedRequest)
script/ghmock/store.go:207
↓ 7 callersFunctionclientOptions
(hostname string, transport http.RoundTripper)
api/client.go:413
↓ 7 callersFunctioncommand
(args: string[])
evals/src/suites/events/commands.ts:15
↓ 7 callersFunctioncreateTestInvoker
createTestInvoker is the main test setup function. It returns an Invoker using the provided mockServer, as well as a shutdown function. The Invoker do
internal/codespaces/rpc/invoker_test.go:60
↓ 7 callersFunctiondisplayName
displayName names a request in reports, including blocked ones.
script/ghmock/report.go:215
↓ 7 callersFunctionfirstLine
(output []byte)
git/client.go:983
↓ 7 callersFunctiongenMarkdownCustom
genMarkdownCustom creates custom markdown output.
internal/docs/markdown.go:133
↓ 7 callersMethodgrade
(input: GraderInput)
evals/src/graders/review.ts:34
↓ 7 callersMethodgraphQL
()
script/ghmock/checker.go:54
↓ 7 callersFunctionmapActorFromListNode
mapActorFromListNode converts an actorNode into the domain DiscussionActor type.
pkg/cmd/discussion/client/client.go:86
↓ 7 callersFunctionmapDiscussionFromListNode
mapDiscussionFromListNode converts a discussionListNode into the domain Discussion type.
pkg/cmd/discussion/client/client.go:140
↓ 7 callersFunctionnewMockServer
()
internal/codespaces/rpc/invoker_test.go:24
↓ 7 callersFunctionpreMigrationLogin
Copied and pasted directly from the trunk branch before doing any work on login, plus the addition of AuthConfig as the first arg since it is a method
internal/config/auth_config_test.go:976
↓ 7 callersFunctionrecord
(value: unknown)
evals/src/core/io.ts:10
↓ 7 callersMethodrefreshableForUser
refreshableForUser returns the refreshable credential stored for the user along with whether it came from secure storage. It prefers the secure keyrin
internal/config/refreshable.go:233
↓ 7 callersMethodresolve
(s *gqlScaffolder, field string, args map[string]any)
script/ghmock/introspection.go:15
↓ 7 callersFunctionrunCommand
*** LEGACY TESTS ***/
pkg/cmd/issue/create/create_test.go:1486
↓ 7 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/revert/revert_test.go:20
↓ 7 callersFunctionrunList
(config listConfig)
pkg/cmd/project/field-list/field_list.go:74
↓ 7 callersFunctionrunVerify
(opts *Options)
pkg/cmd/attestation/verify/verify.go:273
↓ 7 callersMethodsaveResponses
saveResponses writes through a temporary file so a running server never reads a half-written file.
script/ghmock/store.go:187
↓ 7 callersFunctionsetRefreshableConfigField
(t *testing.T, authCfg *AuthConfig, hostname, username, leaf, value string)
internal/config/refreshable_test.go:25
↓ 7 callersFunctionstop
()
evals/src/review.test.ts:40
↓ 7 callersFunctionstubDiscoverTree
stubDiscoverTree registers the single recursive-tree call used by DiscoverSkills.
pkg/cmd/skills/install/install_test.go:230
↓ 7 callersFunctionstubInstallFiles
stubInstallFiles registers subtree + blob stubs for installer.Install (one skill).
pkg/cmd/skills/install/install_test.go:238
↓ 7 callersFunctionstubPR
repo: either "baseOwner/baseRepo" or "baseOwner/baseRepo:defaultBranch" prHead: "headOwner/headRepo:headBranch"
pkg/cmd/pr/close/close_test.go:26
↓ 7 callersFunctionstubResolveVersion
--- HTTP stub helpers --- stubResolveVersion registers API stubs for latest release + tag resolution.
pkg/cmd/skills/install/install_test.go:218
↓ 7 callersFunctiontypeKeys
(s string)
internal/prompter/huh_prompter_test.go:93
↓ 7 callersFunctionvalidateSignerWorkflow
(hostname, signerWorkflow string)
pkg/cmd/attestation/verify/policy.go:185
↓ 7 callersFunctionwaitUntilCodespaceConnectionReady
waitUntilCodespaceConnectionReady waits for a Codespace to be running and is able to be connected to.
internal/codespaces/codespaces.go:78
↓ 6 callersFunctionAddGroup
(parent *cobra.Command, title string, cmds ...*cobra.Command)
pkg/cmdutil/cmdgroup.go:5
↓ 6 callersMethodAuthenticationCalls
AuthenticationCalls gets all the calls that were made to Authentication. Check the length with: len(mockedConfig.AuthenticationCalls())
internal/gh/mock/config.go:398
↓ 6 callersFunctionBeginAuthTelemetry
BeginAuthTelemetry starts an auth-state event at full sampling for a login or refresh invocation. It returns nil when recorder is nil or when hostname
pkg/cmd/auth/shared/telemetry.go:20
↓ 6 callersMethodBody
()
pkg/cmd/pr/shared/templates.go:120
↓ 6 callersMethodBranchName
()
pkg/cmd/pr/shared/find_refs_resolution.go:77
↓ 6 callersMethodCommandOutput
(args []string)
pkg/cmd/extension/git.go:12
↓ 6 callersFunctionCommentableRun
(opts *CommentableOptions)
pkg/cmd/pr/shared/commentable.go:154
↓ 6 callersMethodDoRequest
DoRequest sends a request that the caller has already built, and returns the response for the caller to consume. It applies the same error handling as
api/client.go:262
↓ 6 callersMethodError
()
internal/attachments/client.go:177
↓ 6 callersMethodError
()
internal/codespaces/api/api.go:951
↓ 6 callersMethodFailureIconWithColor
(colo func(string) string)
pkg/iostreams/color.go:208
↓ 6 callersFunctionFetchLatestRelease
FetchLatestRelease finds the latest published release for a repository.
pkg/cmd/release/shared/fetch.go:228
↓ 6 callersMethodFindByName
FindByName returns the first Remote whose name matches the list
context/remote.go:16
↓ 6 callersMethodGet
Get returns one artifact on an issue, with its edit history.
pkg/cmd/issue/artifact/client/client.go:35
↓ 6 callersFunctionGetLocalAttestations
GetLocalAttestations returns a slice of attestations read from a local bundle file.
pkg/cmd/attestation/verification/attestation.go:24
↓ 6 callersFunctionGetRun
(client *api.Client, repo ghrepo.Interface, runID string, attempt uint64)
pkg/cmd/run/shared/shared.go:559
↓ 6 callersFunctionGraphQLMutationMatcher
(q string, cb func(map[string]any) bool)
pkg/httpmock/stub.go:64
↓ 6 callersFunctionHTTPURL
HTTPURL returns value with surrounding whitespace trimmed, and whether it is an http(s) URL: an absolute http or https URL with a host, in printable A
pkg/cmd/issue/artifact/shared/shared.go:307
↓ 6 callersFunctionHttpClientFunc
(cfgFunc func() (gh.Config, error), ios *iostreams.IOStreams, appVersion string, invokingAgent string, telemet
pkg/cmd/factory/default.go:197
↓ 6 callersMethodInstallDir
InstallDir resolves the absolute installation directory for an agent host and scope. For project scope, it uses the provided git root directory so tha
internal/skills/registry/registry.go:411
↓ 6 callersFunctionIsCI
IsCI determines if the current execution context is within a known CI/CD system. This is based on https://github.com/watson/ci-info/blob/HEAD/index.js
internal/ci/ci.go:8
↓ 6 callersMethodIsRefreshable
IsRefreshable reports whether the credential carries a refresh token and can therefore be renewed by gh.
pkg/auth/credential.go:54
↓ 6 callersFunctionIssueGraphQL
IssueGraphQL constructs a GraphQL query fragment for a set of issue fields.
api/query_builder.go:385
↓ 6 callersFunctionIssueRepoInfo
IssueRepoInfo fetches only the repository fields needed for issue operations such as issue creation and transfer, avoiding fields like defaultBranchRe
api/queries_repo.go:321
↓ 6 callersFunctionListenTCP
ListenTCP starts a localhost tcp listener on 127.0.0.1 (unless allInterfaces is true) and returns the listener and bound port
internal/codespaces/codespaces.go:131
↓ 6 callersMethodLoginRefreshable
(string, string, gh.Credential, string, bool)
pkg/cmd/auth/shared/login_flow.go:28
↓ 6 callersFunctionNewLiveClient
Unlike other parts of this command set, we cannot pass a custom HTTP client to the go-containerregistry library. This means we have limited visibility
pkg/cmd/attestation/artifact/oci/client.go:129
↓ 6 callersFunctionNewUntrusted
NewUntrusted labels a string as untrusted external content.
pkg/iostreams/untrusted.go:26
↓ 6 callersFunctionOpenFile
OpenFile creates a file without traversing symbolic links below its rooted parent. Creation is always exclusive, including when replace is false. file
internal/safepaths/root.go:74
↓ 6 callersFunctionOpenRootDir
OpenRootDir creates and opens a user-selected directory as a rooted filesystem. The selected path may contain symbolic links; child paths beneath the
internal/safepaths/root.go:61
↓ 6 callersFunctionParseAbsolute
ParseAbsolute takes a string path that may be relative and returns an Absolute that is guaranteed to be absolute, or an error.
internal/safepaths/absolute.go:17
↓ 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 callersMethodPush
(ctx context.Context, remote string, ref string, mods ...CommandModifier)
git/client.go:908
↓ 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:97
↓ 6 callersMethodRemoteURL
RemoteURL returns the fetch URL configured for the named remote.
git/client.go:777
↓ 6 callersFunctionRepoMetadata
RepoMetadata pre-fetches the metadata for attaching to issues and pull requests
api/queries_repo.go:986
↓ 6 callersMethodRepositoryDatabaseID
()
pkg/cmd/pr/shared/commentable.go:38
↓ 6 callersMethodRepositoryViewerPermission
()
pkg/cmd/pr/shared/commentable.go:39
↓ 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:495
↓ 6 callersMethodSetRemoteResolution
(ctx context.Context, name, resolution string)
git/client.go:202
← previousnext →401–500 of 7,487, ranked by callers