MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,909 in github.com/cli/cli

↓ 8 callersFunctionactorDisplayName
actorDisplayName returns a user-friendly display name for any actor. It handles bots (e.g. Copilot → "Copilot (AI)"), users with names ("login (Name)"
api/queries_repo.go:1148
↓ 8 callersFunctioninstallRun
(opts *InstallOptions)
pkg/cmd/skills/install/install.go:255
↓ 8 callersFunctionmockEmptyV2ProjectItems
mockEmptyV2ProjectItems registers GraphQL queries to report an issue is not contained on any v2 projects.
pkg/cmd/issue/view/view_test.go:601
↓ 8 callersFunctionnewProjectFromQueryWithoutItemsQuery
(source projectQueryWithoutQueryableItems)
pkg/cmd/project/shared/queries/queries.go:253
↓ 8 callersFunctionrenderMan
renderMan will generate a man page for the given command and write it to w. The header argument may be nil, however obviously w may not.
internal/docs/man.go:96
↓ 8 callersFunctionrequireNoKey
(t *testing.T, cfg *ghConfig.Config, keys []string)
internal/config/auth_config_test.go:678
↓ 8 callersFunctionrunArchiveItem
(config archiveItemConfig)
pkg/cmd/project/item-archive/item_archive.go:91
↓ 8 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/view/view_test.go:65
↓ 8 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/close/close_test.go:62
↓ 8 callersFunctionrunCreateField
(config createFieldConfig)
pkg/cmd/project/field-create/field_create.go:95
↓ 8 callersFunctionrunView
(config viewConfig)
pkg/cmd/project/view/view.go:84
↓ 8 callersFunctionverifyAssetRun
(config *VerifyAssetConfig)
pkg/cmd/release/verify-asset/verify_asset.go:123
↓ 8 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/issue/view/view.go:97
↓ 7 callersMethodActiveUser
(string)
pkg/cmd/auth/gitcredential/helper.go:18
↓ 7 callersMethodAliases
Aliases provides persistent storage and modification of command aliases.
internal/gh/gh.go:64
↓ 7 callersMethodChecksStatus
()
api/queries_pr.go:332
↓ 7 callersMethodConfirmDeletion
(string)
pkg/cmd/repo/delete/delete.go:19
↓ 7 callersFunctionCreateInvoker
Connects to the internal RPC server and returns a new invoker for it
internal/codespaces/rpc/invoker.go:64
↓ 7 callersMethodDefaultHost
DefaultHost retrieves the default host.
internal/gh/gh.go:135
↓ 7 callersFunctionEdit
(editorCommand, fn, initialValue string, stdin io.Reader, stdout io.Writer, stderr io.Writer)
pkg/surveyext/editor_manual.go:18
↓ 7 callersMethodExitCode
()
pkg/cmd/repo/create/create.go:29
↓ 7 callersMethodExpectFields
(fields []string)
pkg/cmd/pr/shared/finder.go:669
↓ 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 callersMethodForRepo
(repoDir string)
pkg/cmd/extension/git.go:15
↓ 7 callersFunctionIsDebugEnabled
()
utils/utils.go:10
↓ 7 callersFunctionJSONErrorResponse
JSONErrorResponse is a type-safe helper to avoid confusion around the provided argument.
pkg/httpmock/stub.go:187
↓ 7 callersMethodList
(opt ListOptions)
pkg/cmd/pr/shared/lister.go:13
↓ 7 callersMethodMarkdownEditor
(prompt string, defaultValue string, blankAllowed bool)
pkg/cmd/pr/shared/survey.go:41
↓ 7 callersFunctionNewCAPIClient
NewCAPIClient creates a new CAPI client. Provide a token, the user's GitHub host, the resolved Copilot API URL, and an HTTP client which will be used
pkg/cmd/agent-task/capi/client.go:36
↓ 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 callersFunctionRepoDefaultBranch
(client *Client, repo ghrepo.Interface)
api/queries_repo.go:412
↓ 7 callersMethodReset
()
pkg/cmd/extension/browse/browse.go:245
↓ 7 callersMethodSetActiveToken
The following methods are only for testing and that is a design smell we should consider fixing. SetActiveToken will override any token resolution and
internal/gh/gh.go:161
↓ 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 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:169
↓ 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 callersMethodValidate
()
pkg/cmd/attestation/api/client.go:42
↓ 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 ...interface{})
pkg/cmd/attestation/io/handler.go:64
↓ 7 callersFunctioncreateMockedCommandContext
(t *testing.T, commands mockedCommands)
git/client_test.go:2154
↓ 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 callersFunctionfirstLine
(output []byte)
git/client.go:923
↓ 7 callersFunctiongenMarkdownCustom
genMarkdownCustom creates custom markdown output.
internal/docs/markdown.go:133
↓ 7 callersFunctionhandleResponse
handleResponse takes a ghAPI.HTTPError or ghAPI.GraphQLError and converts it into an HTTPError or GraphQLError respectively.
api/client.go:159
↓ 7 callersFunctionmapActorFromListNode
mapActorFromListNode converts an actorNode into the domain DiscussionActor type.
pkg/cmd/discussion/client/client.go:89
↓ 7 callersFunctionmapDiscussionFromListNode
mapDiscussionFromListNode converts a discussionListNode into the domain Discussion type.
pkg/cmd/discussion/client/client.go:143
↓ 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:929
↓ 7 callersFunctionrunCommand
*** LEGACY TESTS ***/
pkg/cmd/issue/create/create_test.go:975
↓ 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:264
↓ 7 callersFunctionstubPR
repo: either "baseOwner/baseRepo" or "baseOwner/baseRepo:defaultBranch" prHead: "headOwner/headRepo:headBranch"
pkg/cmd/pr/close/close_test.go:26
↓ 7 callersFunctiontypeKeys
(s string)
internal/prompter/huh_prompter_test.go:93
↓ 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:377
↓ 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 callersMethodCreate
(repo ghrepo.Interface, request AutolinkCreateRequest)
pkg/cmd/repo/autolink/create/create.go:28
↓ 6 callersMethodCurrentBranch
()
pkg/cmd/repo/sync/git.go:11
↓ 6 callersMethodError
()
internal/codespaces/api/api.go:951
↓ 6 callersMethodFailureIconWithColor
(colo func(string) string)
pkg/iostreams/color.go:208
↓ 6 callersMethodFetch
(remote string, refspec string)
pkg/cmd/extension/git.go:14
↓ 6 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:192
↓ 6 callersMethodFindByName
FindByName returns the first Remote whose name matches the list
context/remote.go:16
↓ 6 callersFunctionFindIssueOrPR
(httpClient *http.Client, repo ghrepo.Interface, number int, fields []string)
pkg/cmd/issue/shared/lookup.go:136
↓ 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:562
↓ 6 callersFunctionGraphQLMutationMatcher
(q string, cb func(map[string]interface{}) bool)
pkg/httpmock/stub.go:64
↓ 6 callersMethodHasLocalBranch
(string)
pkg/cmd/repo/sync/git.go:15
↓ 6 callersFunctionHttpClientFunc
(cfgFunc func() (gh.Config, error), ios *iostreams.IOStreams, appVersion string, invokingAgent string, telemet
pkg/cmd/factory/default.go:188
↓ 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:410
↓ 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 callersFunctionIssueGraphQL
IssueGraphQL constructs a GraphQL query fragment for a set of issue fields.
api/query_builder.go:385
↓ 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:132
↓ 6 callersMethodLogout
Logout will remove user, git protocol, and auth token for the given hostname. It will remove the auth token from the encrypted storage if it exists th
internal/gh/gh.go:148
↓ 6 callersFunctionMinimumArgs
(n int, msg string)
pkg/cmdutil/args.go:11
↓ 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:130
↓ 6 callersFunctionNewUntrusted
NewUntrusted labels a string as untrusted external content.
pkg/iostreams/untrusted.go:26
↓ 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:1083
↓ 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:86
↓ 6 callersFunctionRepoMetadata
RepoMetadata pre-fetches the metadata for attaching to issues and pull requests
api/queries_repo.go:983
↓ 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:603
↓ 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 callersFunctionclientOptions
(hostname string, transport http.RoundTripper)
api/client.go:256
↓ 6 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/pr/create/create.go:376
↓ 6 callersMethodfetchBundleFromAttestations
(attestations []*Attestation)
pkg/cmd/attestation/api/client.go:199
← previousnext →301–400 of 5,909, ranked by callers