MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 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:79
↓ 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:504
↓ 3 callersMethodmemoizedFetch
()
pkg/cmd/pr/shared/templates.go:231
↓ 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:98
↓ 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 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:1221
↓ 3 callersFunctionprintPreInstallDisclaimer
printPreInstallDisclaimer prints a warning that installed skills are unverified and should be inspected before use.
pkg/cmd/skills/install/install.go:1182
↓ 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:1191
↓ 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:582
↓ 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 callersFunctionresolveEnterpriseVersion
(httpClient *http.Client, host string)
internal/featuredetection/feature_detection.go:570
↓ 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:217
↓ 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:554
↓ 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:697
↓ 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:661
↓ 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 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
↓ 3 callersFunctionstubPushDefault
(pushDefault git.PushDefault, err error)
pkg/cmd/pr/shared/finder_test.go:946
↓ 3 callersFunctionstubPushRevision
(parsedPushRevision git.RemoteTrackingRef, err error)
pkg/cmd/pr/shared/finder_test.go:958
↓ 3 callersFunctionstubRemotePushDefault
(remotePushDefault string, err error)
pkg/cmd/pr/shared/finder_test.go:952
↓ 3 callersFunctionswapDirectoryContents
swapDirectoryContents replaces the entries inside dest with the entries inside src, preserving dest's inode. It first moves every existing entry into
pkg/cmd/skills/update/update.go:470
↓ 3 callersFunctiontab
Step helpers — each returns a single interactionStep. These send raw terminal escape sequences that bubbletea's input parser understands. Common ANSI
internal/prompter/huh_prompter_test.go:65
↓ 3 callersFunctiontestChecker
testChecker returns a checker that uses the schemas in testdata.
script/ghmock/run_test.go:76
↓ 3 callersFunctiontestingPortsApp
()
pkg/cmd/codespace/ports_test.go:167
↓ 3 callersFunctiontextField
textField builds a ProjectV2Field (TEXT) fixture with the given id and name.
pkg/cmd/project/shared/queries/resolve_fields_test.go:12
↓ 3 callersMethodupgradeExtensions
(exts []*Extension, force bool)
pkg/cmd/extension/manager.go:488
↓ 3 callersMethodvalidate
Throws an `InfrastructureError` when shared state, not the agent, makes the run ungradable.
evals/src/core/suite.ts:61
↓ 3 callersFunctionvalidateFixtureRepositoryDeclaration
(file string)
acceptance/user_capability_test.go:84
↓ 3 callersFunctionvalidateName
validateName checks that a request name looks like "graphql Operation" or "METHOD /path".
script/ghmock/set.go:135
↓ 3 callersFunctionwait
(id: string, at: number)
evals/src/review-loop.test.ts:52
↓ 3 callersFunctionwaitForWorkflow
(list func() ([]string, error), expected string, sleep func(time.Duration))
acceptance/acceptance_test.go:166
↓ 3 callersFunctionwatchRun
(opts *WatchOptions)
pkg/cmd/run/watch/watch.go:106
↓ 3 callersFunctionwriteDescription
(w io.Writer, text string)
script/ghmock/schemacmd.go:602
↓ 3 callersFunctionwriteError
writeError writes Twirp errors in the response and triggers hooks.
internal/barista/observability/telemetry.twirp.go:596
↓ 3 callersFunctionwriteFile
(p string, contents []byte, mode os.FileMode)
pkg/cmd/extension/manager.go:728
↓ 3 callersFunctionwriteGhWrapper
(path: string, binary: string, socket: string)
evals/src/core/observer.ts:92
↓ 3 callersFunctionwriteLocalTestSkill
writeLocalTestSkill creates a skill directory with a SKILL.md file.
pkg/cmd/skills/install/install_test.go:263
← previousnext →1,201–1,300 of 7,487, ranked by callers