MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 3 callersFunctionisEscaped
isEscaped reports whether the byte at i is preceded by an odd number of backslashes, which is what makes it a literal rather than markup.
internal/attachments/references.go:733
↓ 3 callersFunctionisGarage
(h string)
internal/ghinstance/host.go:32
↓ 3 callersFunctionisKeyNotFound
(err error)
internal/config/refreshable.go:814
↓ 3 callersFunctionisObjectSchema
(s *openapi3.Schema)
script/ghmock/restscaffold.go:386
↓ 3 callersFunctionisSpace
isSpace reports whether c is ASCII whitespace, which is what ends an unbracketed markdown destination.
internal/attachments/references.go:750
↓ 3 callersFunctionjsonExporter
(fields ...string)
pkg/cmd/discussion/view/view_test.go:1237
↓ 3 callersFunctionjsonMedia
jsonMedia picks the JSON content of a documented response.
script/ghmock/restcheck.go:216
↓ 3 callersFunctionjsonText
(v any)
script/ghmock/graphqlcheck.go:469
↓ 3 callersFunctionjupyterWebForwardingURL
jupyterWebForwardingURL builds the URL to open for the forwarded JupyterLab port. The origin comes from the tunnel's own web forwarding URI. The code
pkg/cmd/codespace/jupyter.go:129
↓ 3 callersFunctionlistIssues
(client *api.Client, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:15
↓ 3 callersFunctionlistLabels
listLabels lists the labels in the given repo. Pass -1 for limit to list all labels; otherwise, only that number of labels is returned for any number
pkg/cmd/label/http.go:68
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/issue/list/list.go:134
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/variable/list/list.go:79
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/secret/list/list.go:107
↓ 3 callersFunctionlistRun
(ctx context.Context, opts *ListOptions)
pkg/cmd/event/subscription/list/list.go:68
↓ 3 callersMethodlistWidth
()
pkg/cmd/extension/browse/model.go:565
↓ 3 callersMethodlisten
(path: string)
evals/src/core/observer.ts:80
↓ 3 callersFunctionloadBundlesFromJSONLinesFile
(path string)
pkg/cmd/attestation/verification/attestation.go:57
↓ 3 callersMethodloadSelectedReadme
()
pkg/cmd/extension/browse/model.go:606
↓ 3 callersMethodlocate
locate returns the schema file to use: the file named by the environment variable, a cached copy, or a fresh download into the cache.
script/ghmock/schemafiles.go:65
↓ 3 callersFunctionlockRun
lockRun will lock or unlock a conversation.
pkg/cmd/issue/lock/lock.go:227
↓ 3 callersFunctionlockfilePath
lockfilePath returns the absolute path to the lock file.
internal/skills/lockfile/lockfile.go:43
↓ 3 callersMethodlogPath
()
script/ghmock/store.go:152
↓ 3 callersFunctionlogoutRun
(opts *LogoutOptions)
pkg/cmd/auth/logout/logout.go:102
↓ 3 callersMethodmainHeight
()
pkg/cmd/extension/browse/model.go:731
↓ 3 callersFunctionmanPrintFlags
(buf *bytes.Buffer, flags *pflag.FlagSet)
internal/docs/man.go:142
↓ 3 callersMethodmarkdown
(assetURL string)
internal/attachments/userasset.go:48
↓ 3 callersFunctionmatchHiddenDirConventions
matchHiddenDirConventions checks if a blob path matches a skill convention under a path that contains a hidden (dot-prefixed) directory. These pattern
internal/skills/discovery/discovery.go:533
↓ 3 callersMethodmemoizedFetch
()
pkg/cmd/pr/shared/templates.go:230
↓ 3 callersFunctionmetadata
(name: string)
evals/src/graders/result.ts:5
↓ 3 callersFunctionminimalNode
minimalNode returns a minimal JSON discussion node with the given id and title.
pkg/cmd/discussion/client/client_test.go:24
↓ 3 callersFunctionmockMigration
(doFunc func(config *ghConfig.Config) error)
internal/config/migrate_test.go:232
↓ 3 callersMethodmodeOctal
modeOctal renders the git mode as a six-digit octal string (e.g. 100644).
pkg/cmd/repo/read-dir/http.go:58
↓ 3 callersFunctionnewAsset
newAsset validates one attached file.
internal/attachments/userasset.go:121
↓ 3 callersFunctionnewCAPITransport
(authCfg authConfig, host string, capiBaseURL string, rp http.RoundTripper)
pkg/cmd/agent-task/capi/client.go:61
↓ 3 callersFunctionnewProjectFromQueryWithItemsQuery
(source projectQueryWithQueryableItems)
pkg/cmd/project/shared/queries/queries.go:245
↓ 3 callersFunctionnewProxy
newProxy builds the reverse proxy. The upstream URL carries the canonical host that requests are forwarded to and that responses are rewritten from, w
script/api-host-gateway/gateway/main.go:149
↓ 3 callersFunctionnewRecorder
(path string)
script/api-host-gateway/gateway/main.go:285
↓ 3 callersFunctionnewRequestConfig
(opts []RequestOption)
api/client.go:99
↓ 3 callersFunctionnewScratch
(ca *certAuthority)
script/ghmock/run.go:402
↓ 3 callersFunctionnewTerminal
(t *testing.T)
pkg/surveyext/editor_test.go:197
↓ 3 callersFunctionnormalizeANSI
strips some ANSI escape sequences that we do not want tests to be concerned with
pkg/surveyext/editor_test.go:280
↓ 3 callersFunctionnormalizeExtension
normalizeExtension makes sure that the provided extension name is prefixed with "gh-".
pkg/cmd/extension/manager.go:886
↓ 3 callersFunctionnormalizeReference
(reference string, pathSeparator rune)
pkg/cmd/attestation/artifact/artifact.go:30
↓ 3 callersFunctionopen
(stale: boolean)
evals/src/suites/events/fixtures.ts:66
↓ 3 callersMethodopenDirectories
(name string, perm os.FileMode)
internal/safepaths/root.go:291
↓ 3 callersFunctionoutputLines
(output []byte)
git/client.go:978
↓ 3 callersFunctionparseExecutorConfig
(value: unknown, suites: SuiteRegistry)
evals/src/core/suite.ts:105
↓ 3 callersFunctionparseKeys
(s string)
script/ghmock/terminal_common.go:23
↓ 3 callersFunctionpatchVariable
(client *api.Client, host string, path safeurl.SafeURL, payload any)
pkg/cmd/variable/set/http.go:134
↓ 3 callersFunctionpostVariable
(client *api.Client, host string, path safeurl.SafeURL, payload any)
pkg/cmd/variable/set/http.go:87
↓ 3 callersFunctionprepareGitRepo
(t *testing.T, remote string)
script/ghmock/gitcmd_test.go:375
↓ 3 callersFunctionprepareHome
( home: string, config: { gh: string; token: string; modelToken: string; observe?: boolean }, )
evals/src/core/home.ts:33
↓ 3 callersFunctionprintFileTree
printFileTree renders a text tree of the on-disk contents of each skill directory.
pkg/cmd/skills/install/install.go:1131
↓ 3 callersFunctionprintHostHints
printHostHints prints any agent-specific post-install guidance for the hosts that were installed to. Most agents need no extra steps; this is currentl
pkg/cmd/skills/install/install.go:1209
↓ 3 callersFunctionprintPreInstallDisclaimer
printPreInstallDisclaimer prints a warning that installed skills are unverified and should be inspected before use.
pkg/cmd/skills/install/install.go:1170
↓ 3 callersFunctionprintReport
printReport writes what each binary did. With more than one binary, it then lists how each one differs from the first. notes say which schema checks c
script/ghmock/report.go:20
↓ 3 callersFunctionprintReviewHint
printReviewHint reminds the user to review installed skills and suggests preview commands. When sha is non-empty the suggested commands include @SHA s
pkg/cmd/skills/install/install.go:1179
↓ 3 callersFunctionprovision
( github: EventsGitHub, org: string, scenario: Scenario, workDir: string, env: NodeJS.ProcessEnv, journalP
evals/src/suites/events/fixtures.ts:13
↓ 3 callersFunctionrankByRelevance
rankByRelevance sorts results by multi-signal score, highest first.
pkg/cmd/skills/search/search.go:674
↓ 3 callersFunctionread
(id: string, at: number)
evals/src/graders.test.ts:62
↓ 3 callersFunctionreason
reason creates a sentence fragment so that the lock reason can be used in a sentence. e.g. "resolved" -> " as RESOLVED"
pkg/cmd/issue/lock/lock.go:209
↓ 3 callersFunctionrecordFromCredential
recordFromCredential projects a gh.Credential onto the persisted record shape, dropping the runtime-only Source and carrying the access token as Acces
internal/config/refreshable.go:756
↓ 3 callersFunctionrecordingHandler
recordingHandler attaches a record to the request context so the proxy can fill in the outcome, then writes exactly one line per request once the prox
script/api-host-gateway/gateway/main.go:131
↓ 3 callersFunctionrenderRawMarkdown
renderRawMarkdown renders the given raw markdown string to the given writer. Use for complete markdown content from tool calls that need no conversion
pkg/cmd/agent-task/shared/log.go:298
↓ 3 callersMethodrepository
(mode string)
acceptance/fixture_repository_test.go:118
↓ 3 callersMethodresizeReadme
()
pkg/cmd/extension/browse/model.go:597
↓ 3 callersFunctionresolveBody
resolveBody determines the comment body from flags or interactive input. defaultBody is used as the initial content in the editor (e.g., existing comm
pkg/cmd/discussion/comment/comment.go:283
↓ 3 callersFunctionresolveCommentID
resolveCommentID returns the comment node ID, resolving it from the database ID via the API if the arg was a comment URL.
pkg/cmd/discussion/comment/comment.go:270
↓ 3 callersFunctionresolveWorkflowRunID
(output string, list func() (string, error), sleep func(time.Duration))
acceptance/acceptance_test.go:85
↓ 3 callersMethodresponsesPath
()
script/ghmock/store.go:148
↓ 3 callersFunctionresult
(name: string, checks: Check[])
evals/src/graders/result.ts:13
↓ 3 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/status/status_test.go:20
↓ 3 callersFunctionrunCommandWithRootDirOverridden
(rt http.RoundTripper, isTTY bool, cli string, rootDir string, pm *prompter.PrompterMock)
pkg/cmd/issue/create/create_test.go:1490
↓ 3 callersFunctionrunDeleteField
(config deleteFieldConfig)
pkg/cmd/project/field-delete/field_delete.go:64
↓ 3 callersFunctionrunGit
(t *testing.T, repoDir string, args ...string)
pkg/cmd/repo/sync/sync_test.go:249
↓ 3 callersFunctionrunGitAt
(t *testing.T, dir string, args ...string)
git/client_test.go:1620
↓ 3 callersFunctionrunInspect
(opts *Options)
pkg/cmd/attestation/inspect/inspect.go:160
↓ 3 callersFunctionrunLink
(config linkConfig)
pkg/cmd/project/link/link.go:155
↓ 3 callersFunctionrunMain
(args []string, stdout, stderr io.Writer)
script/ghmock/main.go:200
↓ 3 callersFunctionrunUnlink
(config unlinkConfig)
pkg/cmd/project/unlink/unlink.go:155
↓ 3 callersFunctionrunView
(opts *ViewOptions)
pkg/cmd/run/view/view.go:220
↓ 3 callersMethodrunsPath
()
script/ghmock/store.go:156
↓ 3 callersFunctionscanInstalledSkills
scanInstalledSkills reads all SKILL.md files in a skills directory and extracts GitHub metadata from their frontmatter. It handles both flat layouts (
pkg/cmd/skills/update/update.go:607
↓ 3 callersFunctionsearchIssues
(client *api.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:119
↓ 3 callersFunctionselectSkillsWithSelector
(opts *InstallOptions, skills []discovery.Skill, canPrompt bool, sel skillSelector)
pkg/cmd/skills/install/install.go:684
↓ 3 callersMethodsetActiveCredential
setActiveCredential clears every host level active credential representation and copies the user's stored credential into the active slot, preserving
internal/config/config.go:710
↓ 3 callersFunctionsetStateEntry
(stateFilePath string, t time.Time, r ReleaseInfo)
internal/update/update.go:164
↓ 3 callersFunctionsharedCmds
sharedCmds defines a collection of custom testscript commands for our use.
acceptance/acceptance_test.go:931
↓ 3 callersFunctionsharedSetup
(tsEnv testScriptEnv)
acceptance/acceptance_test.go:859
↓ 3 callersMethodsingleColumn
()
pkg/cmd/extension/browse/model.go:561
↓ 3 callersFunctionsingleSelectField
singleSelectField builds a ProjectV2SingleSelectField fixture with the given id, name, and options (alternating id/name pairs are passed as a slice).
pkg/cmd/project/shared/queries/resolve_fields_test.go:22
↓ 3 callersFunctionskillSearchFunc
skillSearchFunc returns a search function for MultiSelectWithSearch that filters skills by case-insensitive substring match on name and description.
pkg/cmd/skills/install/install.go:824
↓ 3 callersFunctionskipSpace
(src []byte, i, hi int)
internal/attachments/references.go:741
↓ 3 callersFunctionstartPage
(w io.Writer)
pkg/cmd/api/pagination.go:210
↓ 3 callersFunctionstartServer
(st *state, chk *checker, ca *certAuthority, git *gitBackend)
script/ghmock/server.go:49
↓ 3 callersFunctionstatusRead
(call: Call)
evals/src/suites/events/commands.ts:89
↓ 3 callersFunctionstatusRun
(opts *StatusOptions)
pkg/cmd/auth/status/status.go:272
↓ 3 callersFunctionstream
(at = 15, id = "event-review", reviewId = 7)
evals/src/graders.test.ts:55
↓ 3 callersFunctionstubBranchConfig
(branchConfig git.BranchConfig, err error)
pkg/cmd/pr/shared/finder_test.go:928
← previousnext →1,201–1,300 of 7,572, ranked by callers