MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctiongetPerm
(m os.FileMode)
internal/zip/zip.go:62
↓ 1 callersFunctiongetPortPairs
getPortPairs parses a list of strings of form "%d:%d" into pairs of (remote, local) numbers.
pkg/cmd/codespace/ports.go:373
↓ 1 callersFunctiongetPostCreateOutput
(ctx context.Context, tunnelPort int, user string)
internal/codespaces/states.go:110
↓ 1 callersFunctiongetReadmePath
(repo ghrepo.Interface, branch string)
pkg/cmd/repo/view/http.go:65
↓ 1 callersFunctiongetRepoIds
(client *api.Client, host, owner string, repositoryNames []string)
pkg/cmd/variable/set/set.go:287
↓ 1 callersFunctiongetRepoPubKey
(client *api.Client, repo ghrepo.Interface, app shared.App)
pkg/cmd/secret/set/http.go:59
↓ 1 callersFunctiongetRepoSecrets
(client *http.Client, repo ghrepo.Interface, app shared.App)
pkg/cmd/secret/list/list.go:310
↓ 1 callersFunctiongetRepoSuggestions
(ctx context.Context, apiClient apiClient, partialSearch string)
pkg/cmd/codespace/create.go:580
↓ 1 callersFunctiongetRepoVariables
(client *http.Client, repo ghrepo.Interface)
pkg/cmd/variable/list/list.go:196
↓ 1 callersFunctiongetRunLog
(cache RunLogCache, httpClient *http.Client, repo ghrepo.Interface, run *shared.Run, attempt uint64)
pkg/cmd/run/view/view.go:511
↓ 1 callersFunctiongetSortedKeys
(m map[string]string)
pkg/cmd/alias/imports/import.go:184
↓ 1 callersFunctiongetToken
(c *config.Config, hostname string)
internal/config/migration/multi_account.go:147
↓ 1 callersFunctiongetTokenReadOnly
getTokenReadOnly resolves the stored active token for the hostname and optional username without contacting the token endpoint. It still surfaces a re
pkg/cmd/auth/token/token.go:182
↓ 1 callersFunctiongetTokenWithRefresh
getTokenWithRefresh resolves the active token for the hostname and optional username and refreshes it when necessary. Refresh is best effort: a failed
pkg/cmd/auth/token/token.go:193
↓ 1 callersFunctiongetTopics
(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface)
pkg/cmd/repo/edit/edit.go:567
↓ 1 callersMethodgetTrustDomain
(u safeurl.SafeURL)
pkg/cmd/attestation/api/client.go:299
↓ 1 callersFunctiongetTunnelClient
getTunnelClient creates a tunnel client for the given tunnel. The tunnel client is used to connect to the tunnel and allows for ports to be forwarded
internal/codespaces/connection/connection.go:152
↓ 1 callersFunctiongetTunnelManager
getTunnelManager creates a tunnel manager for the given codespace. The tunnel manager is used to get the tunnel hosted in the codespace that we want t
internal/codespaces/connection/connection.go:131
↓ 1 callersFunctiongetUserPublicKey
(client *api.Client, host string)
pkg/cmd/secret/set/http.go:51
↓ 1 callersFunctiongetUserSecrets
(client *http.Client, host string, showSelectedRepoInfo bool)
pkg/cmd/secret/list/list.go:276
↓ 1 callersFunctiongetUsername
(c *config.Config, hostname, token string, transport http.RoundTripper)
internal/config/migration/multi_account.go:170
↓ 1 callersFunctionghId
(s *string)
pkg/cmd/pr/shared/editable_http.go:220
↓ 1 callersFunctionghString
(s *string)
pkg/cmd/pr/shared/editable_http.go:232
↓ 1 callersFunctionghVersion
(path string, env []string, dir string)
script/ghmock/run.go:582
↓ 1 callersFunctiongitBuildDirectory
(runID string, index int)
script/ghmock/gitcmd.go:363
↓ 1 callersMethodgitWorld
(opts gitOptions)
script/ghmock/gitcmd.go:204
↓ 1 callersMethodgoBinScaffolding
(name string)
pkg/cmd/extension/manager.go:671
↓ 1 callersFunctiongqlEntry
(run, operation, query, vars string)
script/ghmock/scaffold_test.go:73
↓ 1 callersFunctiongraphQLBody
(t *testing.T, query string, operation ...string)
script/ghmock/server_test.go:56
↓ 1 callersFunctiongraphQLBodyWithVariables
(t *testing.T, query, variables string)
script/ghmock/server_test.go:67
↓ 1 callersFunctiongraphQLFieldNames
(def *ast.Definition)
script/ghmock/schemacmd.go:249
↓ 1 callersMethodgraphQLSchema
graphQLSchema returns GitHub's GraphQL schema, or nil if checks are off or it couldn't be loaded.
script/ghmock/server.go:81
↓ 1 callersFunctiongraphQLTypeNames
(schema *ast.Schema)
script/ghmock/schemacmd.go:239
↓ 1 callersFunctionhandleChannels
(ctx context.Context, server *relayServer, chans <-chan ssh.NewChannel)
internal/codespaces/connection/tunnels_api_server_mock.go:387
↓ 1 callersFunctionhandlePush
(opts CreateOptions, ctx CreateContext)
pkg/cmd/pr/create/create.go:1243
↓ 1 callersFunctionhandleRequestError
handleRequestError converts a request error into an HTTPError or GraphQLError, first adding any endpoint scopes to the error's headers so that the sco
api/client.go:307
↓ 1 callersFunctionhandleRequests
(ctx context.Context, reqs <-chan tunnelssh.SSHRequest)
internal/codespaces/connection/tunnels_api_server_mock.go:409
↓ 1 callersFunctionhandleUnixDomainSocket
(socketPath string)
pkg/cmd/send-telemetry/send_telemetry.go:122
↓ 1 callersFunctionhas
(needle string, haystack []string)
pkg/cmd/auth/setupgit/setupgit.go:122
↓ 1 callersMethodhasAPI
()
pkg/cmd/pr/shared/templates.go:156
↓ 1 callersFunctionhasAlternateScreenBuffer
(_ bool)
pkg/iostreams/console.go:7
↓ 1 callersFunctionhasCommits
check if local repository has committed changes
pkg/cmd/repo/create/create.go:754
↓ 1 callersFunctionhasInstallMetadata
(meta map[string]any)
pkg/cmd/skills/list/list.go:441
↓ 1 callersFunctionhasPluginsAncestor
hasPluginsAncestor reports whether any path component is "plugins".
internal/skills/discovery/discovery.go:1139
↓ 1 callersFunctionhasSavedPair
(hostname, accessToken, refreshToken, source string)
pkg/cmd/auth/logout/logout_test.go:1338
↓ 1 callersFunctionhasSecurityEdits
(edits EditRepositoryInput)
pkg/cmd/repo/edit/edit.go:655
↓ 1 callersMethodheaderView
()
pkg/cmd/extension/browse/model.go:681
↓ 1 callersMethodheartbeat
Periodically check whether there is a reason to keep the connection alive, and if so, notify the codespace to do so
internal/codespaces/rpc/invoker.go:277
↓ 1 callersFunctionhelpTopicHelpFunc
(w io.Writer, command *cobra.Command)
pkg/cmd/root/help_topic.go:354
↓ 1 callersFunctionhelpTopicUsageFunc
(w io.Writer, command *cobra.Command)
pkg/cmd/root/help_topic.go:362
↓ 1 callersMethodhelpView
()
pkg/cmd/extension/browse/model.go:704
↓ 1 callersFunctionhiddenDirSkillTreeJSON
hiddenDirSkillTreeJSON returns tree entries for a hidden-dir skill under .claude/skills/.
pkg/cmd/skills/install/install_test.go:315
↓ 1 callersFunctionhideScratch
hideScratch replaces the run's scratch folder with <scratch> in gh's output. Each binary gets its own folder, so paths such as the hosts.yml that gh a
script/ghmock/run.go:505
↓ 1 callersFunctionhumanize
Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces.
pkg/cmd/pr/create/create.go:1375
↓ 1 callersMethodinMergeQueue
Check if this pull request is in a merge queue
pkg/cmd/pr/merge/merge.go:214
↓ 1 callersFunctioninitDefaultTitleBody
(ctx CreateContext, state *shared.IssueMetadataState, useFirstCommit bool, addBody bool)
pkg/cmd/pr/create/create.go:706
↓ 1 callersFunctioninitSyncTestRepo
initSyncTestRepo creates a fresh git repository on branch "trunk" with an isolated config and a configured identity, returning its directory.
pkg/cmd/repo/sync/sync_test.go:111
↓ 1 callersFunctioninlineDestination
inlineDestination finds the destination written beside a reference, as the "./f.png" of [text](./f.png).
internal/attachments/references.go:601
↓ 1 callersFunctioninlineRanges
inlineRanges locates the source of an inline link or image. goldmark reports where every inline node starts, so the only thing left to find is where i
internal/attachments/references.go:517
↓ 1 callersFunctioninside
(path: string, root: string)
evals/src/core/io.ts:35
↓ 1 callersMethodinstallGit
(repo ghrepo.Interface, target string)
pkg/cmd/extension/manager.go:413
↓ 1 callersFunctioninstallLocalSkill
(sourceRoot string, skill discovery.Skill, baseDir string)
internal/skills/installer/installer.go:181
↓ 1 callersFunctioninteractiveChoice
(p iprompter, r *api.Repository)
pkg/cmd/repo/edit/edit.go:362
↓ 1 callersFunctioninteractiveGitIgnore
(client *http.Client, hostname string, prompter iprompter)
pkg/cmd/repo/create/create.go:852
↓ 1 callersFunctioninteractiveLicense
(client *http.Client, hostname string, prompter iprompter)
pkg/cmd/repo/create/create.go:871
↓ 1 callersFunctioninteractiveRepoEdit
(opts *EditOptions, r *api.Repository)
pkg/cmd/repo/edit/edit.go:392
↓ 1 callersFunctioninteractiveRepoNameAndOwner
(client *http.Client, hostname string, prompter iprompter, defaultName string)
pkg/cmd/repo/create/create.go:927
↓ 1 callersFunctioninteractiveRepoTemplate
(client *http.Client, hostname, owner string, prompter iprompter)
pkg/cmd/repo/create/create.go:831
↓ 1 callersMethodintrospect
introspect answers __type and __schema as GitHub would. gh asks which fields a type has to decide which queries to send. For example, gh issue develop
script/ghmock/introspection.go:22
↓ 1 callersFunctionisAccessDenied
(err error)
script/build.go:213
↓ 1 callersFunctionisAdditionLine
(l []byte)
pkg/cmd/pr/diff/diff.go:311
↓ 1 callersFunctionisBlank
(v any)
api/queries_pr.go:756
↓ 1 callersFunctionisEpipeError
(err error)
pkg/iostreams/epipe_other.go:10
↓ 1 callersFunctionisExtensionCommand
isExtensionCommand returns true if args resolve to an extension command.
internal/ghcmd/cmd.go:279
↓ 1 callersFunctionisFilesystemPath
(p string)
git/client.go:974
↓ 1 callersFunctionisGpgKeyArmored
(keyBytes []byte)
pkg/cmd/gpg-key/add/http.go:66
↓ 1 callersFunctionisHeaderLine
(l []byte)
pkg/cmd/pr/diff/diff.go:301
↓ 1 callersFunctionisHostEnv
(src string)
pkg/cmd/factory/remote_resolver.go:98
↓ 1 callersFunctionisImmediatelyMergeable
(status string)
pkg/cmd/pr/merge/merge.go:826
↓ 1 callersFunctionisIncluded
(value string, opts []string)
pkg/cmd/repo/edit/edit.go:636
↓ 1 callersFunctionisLetterOrNumber
(r rune)
pkg/cmd/issue/artifact/create/create.go:432
↓ 1 callersMethodisLink
isLink reports whether the source creates a link: a URL, or a .url file.
pkg/cmd/issue/artifact/create/create.go:79
↓ 1 callersFunctionisMap
(v any)
script/ghmock/restscaffold.go:431
↓ 1 callersFunctionisMarkdownFile
(filename string)
pkg/cmd/repo/view/view.go:218
↓ 1 callersFunctionisMarkdownFile
(filePath string)
pkg/cmd/skills/preview/preview.go:411
↓ 1 callersFunctionisMockHost
isMockHost reports whether hostname is github.localhost or one of its subdomains.
script/ghmock/request.go:40
↓ 1 callersFunctionisNewRelease
isNewRelease checks if there are new commits since the latest release.
pkg/cmd/release/create/http.go:238
↓ 1 callersFunctionisPossibleProtocol
(u string)
git/url.go:21
↓ 1 callersFunctionisPreviewNotEnabled
(httpErr api.HTTPError)
pkg/cmd/event/client/client.go:266
↓ 1 callersFunctionisProvidedRepoValid
(repo string)
pkg/cmd/attestation/verify/options.go:100
↓ 1 callersFunctionisRateLimitError
isRateLimitError checks whether err is a GitHub API rate-limit response. Per GitHub docs, a rate limit is indicated by: - HTTP 429 (always a rate limi
pkg/cmd/skills/search/search.go:706
↓ 1 callersFunctionisRecentRelease
(publishedAt time.Time)
internal/ghcmd/cmd.go:370
↓ 1 callersFunctionisRemoteDestination
isRemoteDestination reports whether a destination addresses somewhere other than the filesystem, so that an attached file is never confused with a URI
internal/attachments/references.go:410
↓ 1 callersFunctionisRemovalLine
(l []byte)
pkg/cmd/pr/diff/diff.go:315
↓ 1 callersMethodisSubpathOf
(dir Absolute)
internal/safepaths/absolute.go:59
↓ 1 callersFunctionisSymlink
(m os.FileMode)
pkg/cmd/extension/manager.go:724
↓ 1 callersFunctionisTelemetryDisabled
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:78
↓ 1 callersFunctionisURL
(s string)
pkg/cmd/repo/fork/fork.go:405
↓ 1 callersFunctionisUnderHomebrew
Check whether the gh binary was found under the Homebrew prefix
internal/ghcmd/cmd.go:375
↓ 1 callersFunctionisUsernameValid
(username string)
internal/codespaces/rpc/invoker.go:313
← previousnext →3,301–3,400 of 7,572, ranked by callers