Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 1 callers
Function
graphQLTypeNames
(schema *ast.Schema)
script/ghmock/schemacmd.go:239
↓ 1 callers
Function
handleChannels
(ctx context.Context, server *relayServer, chans <-chan ssh.NewChannel)
internal/codespaces/connection/tunnels_api_server_mock.go:387
↓ 1 callers
Function
handlePush
(opts CreateOptions, ctx CreateContext)
pkg/cmd/pr/create/create.go:1244
↓ 1 callers
Function
handleRequestError
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 callers
Function
handleRequests
(ctx context.Context, reqs <-chan tunnelssh.SSHRequest)
internal/codespaces/connection/tunnels_api_server_mock.go:409
↓ 1 callers
Function
handleUnixDomainSocket
(socketPath string)
pkg/cmd/send-telemetry/send_telemetry.go:122
↓ 1 callers
Function
has
(needle string, haystack []string)
pkg/cmd/auth/setupgit/setupgit.go:122
↓ 1 callers
Method
hasAPI
()
pkg/cmd/pr/shared/templates.go:157
↓ 1 callers
Function
hasAlternateScreenBuffer
(_ bool)
pkg/iostreams/console.go:7
↓ 1 callers
Function
hasCommits
check if local repository has committed changes
pkg/cmd/repo/create/create.go:754
↓ 1 callers
Function
hasInstallMetadata
(meta map[string]any)
pkg/cmd/skills/list/list.go:441
↓ 1 callers
Function
hasPluginsAncestor
hasPluginsAncestor reports whether any path component is "plugins".
internal/skills/discovery/discovery.go:1110
↓ 1 callers
Function
hasSecurityEdits
(edits EditRepositoryInput)
pkg/cmd/repo/edit/edit.go:656
↓ 1 callers
Method
headerView
()
pkg/cmd/extension/browse/model.go:681
↓ 1 callers
Method
heartbeat
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 callers
Function
helpTopicHelpFunc
(w io.Writer, command *cobra.Command)
pkg/cmd/root/help_topic.go:354
↓ 1 callers
Function
helpTopicUsageFunc
(w io.Writer, command *cobra.Command)
pkg/cmd/root/help_topic.go:362
↓ 1 callers
Method
helpView
()
pkg/cmd/extension/browse/model.go:704
↓ 1 callers
Function
hiddenDirSkillTreeJSON
hiddenDirSkillTreeJSON returns tree entries for a hidden-dir skill under .claude/skills/.
pkg/cmd/skills/install/install_test.go:297
↓ 1 callers
Function
hideScratch
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 callers
Function
humanize
Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces.
pkg/cmd/pr/create/create.go:1376
↓ 1 callers
Method
inMergeQueue
Check if this pull request is in a merge queue
pkg/cmd/pr/merge/merge.go:214
↓ 1 callers
Function
initDefaultTitleBody
(ctx CreateContext, state *shared.IssueMetadataState, useFirstCommit bool, addBody bool)
pkg/cmd/pr/create/create.go:707
↓ 1 callers
Function
initSyncTestRepo
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 callers
Function
inlineDestination
inlineDestination finds the destination written beside a reference, as the "./f.png" of [text](./f.png).
internal/attachments/references.go:601
↓ 1 callers
Function
inlineRanges
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 callers
Function
inside
(path: string, root: string)
evals/src/core/io.ts:35
↓ 1 callers
Method
installGit
(repo ghrepo.Interface, target string)
pkg/cmd/extension/manager.go:413
↓ 1 callers
Function
installLocalSkill
(sourceRoot string, skill discovery.Skill, baseDir string)
internal/skills/installer/installer.go:180
↓ 1 callers
Function
interactiveChoice
(p iprompter, r *api.Repository)
pkg/cmd/repo/edit/edit.go:363
↓ 1 callers
Function
interactiveGitIgnore
(client *http.Client, hostname string, prompter iprompter)
pkg/cmd/repo/create/create.go:852
↓ 1 callers
Function
interactiveLicense
(client *http.Client, hostname string, prompter iprompter)
pkg/cmd/repo/create/create.go:871
↓ 1 callers
Function
interactiveRepoEdit
(opts *EditOptions, r *api.Repository)
pkg/cmd/repo/edit/edit.go:393
↓ 1 callers
Function
interactiveRepoNameAndOwner
(client *http.Client, hostname string, prompter iprompter, defaultName string)
pkg/cmd/repo/create/create.go:927
↓ 1 callers
Function
interactiveRepoTemplate
(client *http.Client, hostname, owner string, prompter iprompter)
pkg/cmd/repo/create/create.go:831
↓ 1 callers
Method
introspect
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 callers
Function
isAccessDenied
(err error)
script/build.go:213
↓ 1 callers
Function
isAdditionLine
(l []byte)
pkg/cmd/pr/diff/diff.go:311
↓ 1 callers
Function
isBlank
(v any)
api/queries_pr.go:756
↓ 1 callers
Function
isEpipeError
(err error)
pkg/iostreams/epipe_other.go:10
↓ 1 callers
Function
isExtensionCommand
isExtensionCommand returns true if args resolve to an extension command.
internal/ghcmd/cmd.go:271
↓ 1 callers
Function
isFilesystemPath
(p string)
git/client.go:974
↓ 1 callers
Function
isGpgKeyArmored
(keyBytes []byte)
pkg/cmd/gpg-key/add/http.go:66
↓ 1 callers
Function
isHeaderLine
(l []byte)
pkg/cmd/pr/diff/diff.go:301
↓ 1 callers
Function
isHostEnv
(src string)
pkg/cmd/factory/remote_resolver.go:98
↓ 1 callers
Function
isImmediatelyMergeable
(status string)
pkg/cmd/pr/merge/merge.go:826
↓ 1 callers
Function
isIncluded
(value string, opts []string)
pkg/cmd/repo/edit/edit.go:637
↓ 1 callers
Function
isLetterOrNumber
(r rune)
pkg/cmd/issue/artifact/create/create.go:432
↓ 1 callers
Method
isLink
isLink reports whether the source creates a link: a URL, or a .url file.
pkg/cmd/issue/artifact/create/create.go:79
↓ 1 callers
Function
isMap
(v any)
script/ghmock/restscaffold.go:431
↓ 1 callers
Function
isMarkdownFile
(filename string)
pkg/cmd/repo/view/view.go:218
↓ 1 callers
Function
isMarkdownFile
(filePath string)
pkg/cmd/skills/preview/preview.go:411
↓ 1 callers
Function
isMockHost
isMockHost reports whether hostname is github.localhost or one of its subdomains.
script/ghmock/request.go:40
↓ 1 callers
Function
isNewRelease
isNewRelease checks if there are new commits since the latest release.
pkg/cmd/release/create/http.go:238
↓ 1 callers
Function
isPossibleProtocol
(u string)
git/url.go:21
↓ 1 callers
Function
isProvidedRepoValid
(repo string)
pkg/cmd/attestation/verify/options.go:100
↓ 1 callers
Function
isRateLimitError
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 callers
Function
isRecentRelease
(publishedAt time.Time)
internal/ghcmd/cmd.go:343
↓ 1 callers
Function
isRefreshLockInaccessible
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 callers
Function
isRemoteDestination
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 callers
Function
isRemovalLine
(l []byte)
pkg/cmd/pr/diff/diff.go:315
↓ 1 callers
Method
isSubpathOf
(dir Absolute)
internal/safepaths/absolute.go:59
↓ 1 callers
Function
isSymlink
(m os.FileMode)
pkg/cmd/extension/manager.go:724
↓ 1 callers
Function
isTelemetryDisabled
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:78
↓ 1 callers
Function
isURL
(s string)
pkg/cmd/repo/fork/fork.go:405
↓ 1 callers
Function
isUnderHomebrew
Check whether the gh binary was found under the Homebrew prefix
internal/ghcmd/cmd.go:348
↓ 1 callers
Function
isUsernameValid
(username string)
internal/codespaces/rpc/invoker.go:313
↓ 1 callers
Function
isWindowsTarget
()
script/build.go:141
↓ 1 callers
Function
isWorkflowFile
(f string)
pkg/cmd/workflow/shared/shared.go:155
↓ 1 callers
Function
isolateArtifacts
(wantNames []string, wantPatterns []string)
pkg/cmd/run/download/download.go:215
↓ 1 callers
Function
issueLabelList
(issue *api.Issue, cs *iostreams.ColorScheme, colorize bool)
pkg/cmd/issue/shared/display.go:51
↓ 1 callers
Function
issueNodeIDByNumberMatcher
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 callers
Function
issueNodeIDByNumberMatcher
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 callers
Function
issueNumberFromOpts
(t *testing.T, v any)
pkg/cmd/issue/argparsetest/argparsetest.go:112
↓ 1 callers
Function
issueStateTitleWithColor
(cs *iostreams.ColorScheme, issue *api.Issue)
pkg/cmd/issue/view/view.go:394
↓ 1 callers
Function
issueTransfer
(httpClient *http.Client, issueID string, destRepo ghrepo.Interface)
pkg/cmd/issue/transfer/transfer.go:102
↓ 1 callers
Function
jobLogFilenameRegexp
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 callers
Function
joinList
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 callers
Function
joinPath
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 callers
Function
joinPathWithHostPrefix
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 callers
Function
journal
(cleaned: boolean)
evals/src/harness.test.ts:361
↓ 1 callers
Function
json
(text: string)
evals/src/suites/events/grading/observations.ts:11
↓ 1 callers
Function
jsonFieldsFor
(cmd *cobra.Command)
pkg/jsonfieldstest/jsonfieldstest.go:13
↓ 1 callers
Function
jsonKind
(v any)
script/ghmock/set.go:447
↓ 1 callers
Function
keyList
()
script/ghmock/terminal_common.go:52
↓ 1 callers
Function
keypairForPrivateKey
keypairForPrivateKey returns the KeyPair with the specified private key if it and the public key both exist
pkg/cmd/codespace/ssh.go:524
↓ 1 callers
Function
kiroResourcePath
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 callers
Method
label
(key string)
internal/prompter/multi_select_with_search.go:206
↓ 1 callers
Function
lastQuery
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 callers
Function
lastRun
lastRun keeps only the entries from the most recent run.
script/ghmock/log.go:85
↓ 1 callers
Function
latestCommit
(client *api.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/sync/http.go:27
↓ 1 callers
Function
left
()
internal/prompter/huh_prompter_test.go:85
↓ 1 callers
Function
legacyJobLogFilenameRegexp
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 callers
Function
lifetimeFromEnv
(name string)
internal/debug/config.go:48
↓ 1 callers
Function
lineDiff
lineDiff lists the lines removed from a ("- ") and added in b ("+ ").
script/ghmock/report.go:496
↓ 1 callers
Function
linkDestination
(n ast.Node)
internal/attachments/references.go:304
↓ 1 callers
Function
linkHandler
(name string)
cmd/gen-docs/main.go:88
↓ 1 callers
Function
linkReferenceDefinitions
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 callers
Function
linkReferenceDestination
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 callers
Function
linkRepo
(c *api.Client, config linkConfig)
pkg/cmd/project/link/link.go:196
← previous
next →
3,301–3,400 of 7,487, ranked by callers