MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 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:1244
↓ 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:306
↓ 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:157
↓ 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:1110
↓ 1 callersFunctionhasSecurityEdits
(edits EditRepositoryInput)
pkg/cmd/repo/edit/edit.go:656
↓ 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:297
↓ 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:1376
↓ 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:707
↓ 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:180
↓ 1 callersFunctioninteractiveChoice
(p iprompter, r *api.Repository)
pkg/cmd/repo/edit/edit.go:363
↓ 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:393
↓ 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:271
↓ 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:637
↓ 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 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:343
↓ 1 callersFunctionisRefreshLockInaccessible
isRefreshLockInaccessible reports whether err, returned while acquiring the refresh lock, shows that the lock file or its directory cannot be created
internal/config/refreshable.go:71
↓ 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:348
↓ 1 callersFunctionisUsernameValid
(username string)
internal/codespaces/rpc/invoker.go:313
↓ 1 callersFunctionisWindowsTarget
()
script/build.go:141
↓ 1 callersFunctionisWorkflowFile
(f string)
pkg/cmd/workflow/shared/shared.go:155
↓ 1 callersFunctionisolateArtifacts
(wantNames []string, wantPatterns []string)
pkg/cmd/run/download/download.go:215
↓ 1 callersFunctionissueLabelList
(issue *api.Issue, cs *iostreams.ColorScheme, colorize bool)
pkg/cmd/issue/shared/display.go:51
↓ 1 callersFunctionissueNodeIDByNumberMatcher
issueNodeIDByNumberMatcher matches an IssueNodeID GraphQL query whose number variable equals the given value. Used by tests that issue multiple IssueN
pkg/cmd/issue/create/create_test.go:2221
↓ 1 callersFunctionissueNodeIDByNumberMatcher
issueNodeIDByNumberMatcher matches an IssueNodeID GraphQL query whose number variable equals the given value. Used by tests that issue multiple IssueN
pkg/cmd/issue/edit/edit_test.go:2286
↓ 1 callersFunctionissueNumberFromOpts
(t *testing.T, v any)
pkg/cmd/issue/argparsetest/argparsetest.go:112
↓ 1 callersFunctionissueStateTitleWithColor
(cs *iostreams.ColorScheme, issue *api.Issue)
pkg/cmd/issue/view/view.go:394
↓ 1 callersFunctionissueTransfer
(httpClient *http.Client, issueID string, destRepo ghrepo.Interface)
pkg/cmd/issue/transfer/transfer.go:102
↓ 1 callersFunctionjobLogFilenameRegexp
A job run log file is a top-level .txt file whose name starts with an ordinal number; e.g., "0_jobname.txt".
pkg/cmd/run/view/logs.go:264
↓ 1 callersFunctionjoinList
joinList joins items the way the prompt reads them: "a", "a and b", or "a, b, and c".
pkg/cmd/issue/artifact/delete/delete.go:206
↓ 1 callersFunctionjoinPath
joinPath builds a REST API URL path by percent-encoding each component with url.PathEscape and joining them with single slash separators. With no com
internal/safeurl/safeurl.go:135
↓ 1 callersFunctionjoinPathWithHostPrefix
joinPathWithHostPrefix builds a full REST API URL by prepending hostPrefix to the path produced by JoinPath. A single slash is ensured at the join bet
internal/safeurl/safeurl.go:152
↓ 1 callersFunctionjournal
(cleaned: boolean)
evals/src/harness.test.ts:361
↓ 1 callersFunctionjson
(text: string)
evals/src/suites/events/grading/observations.ts:11
↓ 1 callersFunctionjsonFieldsFor
(cmd *cobra.Command)
pkg/jsonfieldstest/jsonfieldstest.go:13
↓ 1 callersFunctionjsonKind
(v any)
script/ghmock/set.go:447
↓ 1 callersFunctionkeyList
()
script/ghmock/terminal_common.go:52
↓ 1 callersFunctionkeypairForPrivateKey
keypairForPrivateKey returns the KeyPair with the specified private key if it and the public key both exist
pkg/cmd/codespace/ssh.go:524
↓ 1 callersFunctionkiroResourcePath
kiroResourcePath returns a slash-separated path suitable for use in the "resources" field of a Kiro agent config. When the install directory is inside
pkg/cmd/skills/install/install.go:1247
↓ 1 callersMethodlabel
(key string)
internal/prompter/multi_select_with_search.go:206
↓ 1 callersFunctionlastQuery
lastQuery returns the query gh most recently sent for a GraphQL request name, or "" if it hasn't sent one.
script/ghmock/set.go:286
↓ 1 callersFunctionlastRun
lastRun keeps only the entries from the most recent run.
script/ghmock/log.go:85
↓ 1 callersFunctionlatestCommit
(client *api.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/sync/http.go:27
↓ 1 callersFunctionleft
()
internal/prompter/huh_prompter_test.go:85
↓ 1 callersFunctionlegacyJobLogFilenameRegexp
A legacy job run log file is a top-level .txt file whose name starts with a negative number which is the ID of the run; e.g., "-2147483648_jobname.txt
pkg/cmd/run/view/logs.go:272
↓ 1 callersFunctionlifetimeFromEnv
(name string)
internal/debug/config.go:48
↓ 1 callersFunctionlineDiff
lineDiff lists the lines removed from a ("- ") and added in b ("+ ").
script/ghmock/report.go:496
↓ 1 callersFunctionlinkDestination
(n ast.Node)
internal/attachments/references.go:304
↓ 1 callersFunctionlinkHandler
(name string)
cmd/gen-docs/main.go:88
↓ 1 callersFunctionlinkReferenceDefinitions
linkReferenceDefinitions indexes every one in the document by its destination. One inside a code fence or a code span is not parsed as a definition at
internal/attachments/references.go:317
↓ 1 callersFunctionlinkReferenceDestination
linkReferenceDestination finds the destination in a link reference definition, as the "./f.png" of [ref]: ./f.png "a title", so that rewriting it leav
internal/attachments/references.go:687
↓ 1 callersFunctionlinkRepo
(c *api.Client, config linkConfig)
pkg/cmd/project/link/link.go:196
← previousnext →3,301–3,400 of 7,487, ranked by callers