MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 2 callersFunctionresolvePrompt
(prompt: string, placeholders: Readonly<Record<string, string>>)
evals/src/core/suite.ts:118
↓ 2 callersFunctionresolveScope
(opts *InstallOptions, canPrompt bool)
pkg/cmd/skills/install/install.go:948
↓ 2 callersFunctionresolveTagRef
resolveTagRef looks up a tag by short name and returns a fully qualified ref. For annotated tags, the tag object is dereferenced to obtain the commit
internal/skills/discovery/discovery.go:305
↓ 2 callersFunctionrestProblems
restProblems turns schema validation errors into short lines that use the same dotted paths as ghmock set --at. An allOf failure is replaced by the fa
script/ghmock/restcheck.go:237
↓ 2 callersFunctionreview
(id: number)
evals/src/smoke.test.ts:58
↓ 2 callersMethodreviews
(repo: string, number: number)
evals/src/core/github.ts:113
↓ 2 callersFunctionrig
(scenario: Scenario = "review-loop")
evals/src/review-loop.test.ts:17
↓ 2 callersFunctionrootDir
()
internal/safepaths/absolute_test.go:121
↓ 2 callersFunctionrootType
(schema *ast.Schema, op ast.Operation)
script/ghmock/graphqlcheck.go:174
↓ 2 callersFunctionrootUsageFunc
(w io.Writer, command *cobra.Command)
pkg/cmd/root/help.go:20
↓ 2 callersFunctionrulesetsQuery
(org bool)
pkg/cmd/ruleset/shared/http.go:87
↓ 2 callersFunctionrun
(args []string)
cmd/gen-docs/main.go:29
↓ 2 callersFunctionrunAdd
(opts *AddOptions)
pkg/cmd/gpg-key/add/add.go:58
↓ 2 callersFunctionrunAdd
(opts *AddOptions)
pkg/cmd/ssh-key/add/add.go:60
↓ 2 callersFunctionrunAll
runAll runs each binary in turn and appends its requests to the log. It then saves the run and its report for ghmock export. A nil checker turns schem
script/ghmock/run.go:158
↓ 2 callersFunctionrunBrowse
(opts *BrowseOptions)
pkg/cmd/browse/browse.go:187
↓ 2 callersFunctionrunCancel
(opts *CancelOptions)
pkg/cmd/run/cancel/cancel.go:66
↓ 2 callersFunctionrunCloneCommand
(httpClient *http.Client, cli string)
pkg/cmd/gist/clone/clone_test.go:19
↓ 2 callersFunctionrunCommand
(rt http.RoundTripper, cli string)
pkg/cmd/issue/transfer/transfer_test.go:21
↓ 2 callersFunctionrunCommandWithBranchFunc
(rt http.RoundTripper, pm *prompter.PrompterMock, branch func() (string, error), isTTY bool, cli string)
pkg/cmd/pr/merge/merge_test.go:257
↓ 2 callersFunctionrunCommandWithDetector
(rt http.RoundTripper, branch string, isTTY bool, cli string, detector fd.Detector)
pkg/cmd/pr/status/status_test.go:30
↓ 2 callersFunctionrunCopilot
(opts *CopilotOptions)
pkg/cmd/copilot/copilot.go:134
↓ 2 callersFunctionrunDelete
(opts *DeleteOptions)
pkg/cmd/run/delete/delete.go:73
↓ 2 callersFunctionrunDisable
(opts *DisableOptions)
pkg/cmd/workflow/disable/disable.go:66
↓ 2 callersFunctionrunDownload
(opts *Options)
pkg/cmd/attestation/download/download.go:126
↓ 2 callersFunctionrunDownload
(opts *DownloadOptions)
pkg/cmd/run/download/download.go:110
↓ 2 callersFunctionrunEnable
(opts *EnableOptions)
pkg/cmd/workflow/enable/enable.go:66
↓ 2 callersFunctionrunRerun
(opts *RerunOptions)
pkg/cmd/run/rerun/rerun.go:97
↓ 2 callersFunctionrunRun
(opts *RunOptions)
pkg/cmd/workflow/run/run.go:258
↓ 2 callersFunctionrunSmokeProtocol
(protocol: SmokeProtocol)
evals/src/suites/events/smoke-protocol.ts:17
↓ 2 callersFunctionrunSubscriptionCommands
(gh: GhRunner, prUrl: string)
evals/src/suites/events/smoke-protocol.ts:41
↓ 2 callersFunctionrunUpdateVisibilityTest
(t *testing.T, portVisibilities []portVisibility, allowOrgPorts bool)
pkg/cmd/codespace/ports_test.go:104
↓ 2 callersFunctionrunView
(opts *ViewOptions)
pkg/cmd/workflow/view/view.go:99
↓ 2 callersFunctionsampleDiscussions
()
pkg/cmd/discussion/list/list_test.go:641
↓ 2 callersFunctionsandboxFilePath
(root, currentDir, name string)
acceptance/acceptance_test.go:1243
↓ 2 callersFunctionsanitizeBaseURL
sanitizeBaseURL parses the the baseURL, and adds the "http" scheme if needed. If the URL is unparsable, the baseURL is returned unchanged.
internal/barista/observability/telemetry.twirp.go:637
↓ 2 callersFunctionsanitizeFileName
this method attempts to mimic the same functionality on the client that the platform does on uploaded assets in order to allow the --clobber logic wor
pkg/cmd/release/upload/upload.go:135
↓ 2 callersFunctionsanitizedReader
(r io.Reader)
pkg/cmd/pr/diff/diff.go:355
↓ 2 callersFunctionscanAllAgents
scanAllAgents walks every registered agent's skill directory (project + user scope) and collects installed skills. Shared install roots are scanned on
pkg/cmd/skills/update/update.go:577
↓ 2 callersFunctionscanAngleDest
scanAngleDest reads a "<...>" destination beginning at the "<", returning the index just past the closing ">".
internal/attachments/references.go:666
↓ 2 callersFunctionscanBareDest
scanBareDest reads an unbracketed destination, which ends at whitespace or at the ")" closing the link. Parentheses inside the path are part of it as
internal/attachments/references.go:614
↓ 2 callersFunctionscopesSentence
(scopes []string)
pkg/cmd/auth/shared/login_flow.go:328
↓ 2 callersFunctionsearchPullRequests
(httpClient *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit i
pkg/cmd/pr/list/http.go:32
↓ 2 callersFunctionsearchQuery
(owner string, filter FilterOptions)
pkg/cmd/repo/list/http.go:176
↓ 2 callersFunctionseedSubscriptions
( github: EventsGitHub, subscriber: EventsGitHub, repo: string, workDir: string, env: NodeJS.ProcessEnv, j
evals/src/suites/events/fixtures.ts:60
↓ 2 callersFunctionselectAcceptanceTestGroups
(available []string, requested string)
acceptance/acceptance_test.go:676
↓ 2 callersFunctionselectSSHKeys
selectSSHKeys evaluates available key pairs and select which should be used to connect to the codespace using the precedence rules below. If there is
pkg/cmd/codespace/ssh.go:323
↓ 2 callersFunctionselectScripts
selectScripts returns the script files under testdata/command that match the requested names, and reports whether a filter was applied (i.e. scripts i
acceptance/scriptfilter_test.go:25
↓ 2 callersFunctionselectVersion
selectVersion returns the name and body to download: the current version's, or with --version, that version's. A type gh doesn't know is refused first
pkg/cmd/issue/artifact/download/download.go:253
↓ 2 callersFunctionselectedRepositoryCount
(client *http.Client, host string, selectedReposURL safeurl.SafeURL)
pkg/cmd/secret/list/list.go:337
↓ 2 callersFunctionserveSchemas
serveSchemas points schema downloads at a local server. A file missing from files gets a 404.
script/ghmock/schemafiles_test.go:21
↓ 2 callersMethodsetCommonOptions
(f *cmdutil.Factory, args []string)
pkg/cmd/issue/lock/lock.go:107
↓ 2 callersFunctionsetDefaultRun
(opts *SetDefaultOptions)
pkg/cmd/repo/setdefault/setdefault.go:126
↓ 2 callersFunctionsetLog
setLog configures the HTTP logger. A verbose log includes response headers and bodies as the server sent them, so its output is sanitized. It isn't co
api/http_client.go:165
↓ 2 callersMethodsetRefreshableInKeyring
(hostname, username string, credential gh.Credential)
internal/config/refreshable.go:334
↓ 2 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/alias/set/set.go:95
↓ 2 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/config/set/set.go:64
↓ 2 callersFunctionsetupGitRun
(opts *SetupGitOptions)
pkg/cmd/auth/setupgit/setupgit.go:75
↓ 2 callersFunctionsetupJsonFlags
(cmd *cobra.Command, exportTarget *Exporter, fields []string)
pkg/cmdutil/json_flags.go:54
↓ 2 callersFunctionsetupMockOAuthConfig
setupMockOAuthConfig configures a blank config with a default host and optional token behavior.
pkg/cmd/agent-task/agent_task_test.go:15
↓ 2 callersFunctionshellQuote
(s string)
pkg/cmd/auth/shared/gitcredentials/helper_config.go:119
↓ 2 callersFunctionshiftTab
()
internal/prompter/huh_prompter_test.go:69
↓ 2 callersFunctionshouldRetry
(err error)
pkg/cmd/attestation/api/client.go:279
↓ 2 callersFunctionshowEscapes
showEscapes writes the escape character as \e, so color codes such as \e[33m stay visible in reports and a missing reset can be spotted.
script/ghmock/report.go:210
↓ 2 callersMethodshutdown
Vally calls this on SIGINT or SIGTERM and exits once it resolves, so wait for the running trial to clean up its * live resources. The trial stops i
evals/src/core/executor.ts:103
↓ 2 callersFunctionsimplifyURL
simplifyURL strips given URL of extra parts like extra path segments (i.e., anything beyond `/owner/repo`), query strings, or fragments. This function
pkg/cmd/repo/clone/clone.go:265
↓ 2 callersFunctionsingleLineFieldValue
singleLineFieldValue collapses carriage returns and newlines so a multi-line field value stays within a single table cell. Following the convention us
pkg/cmd/project/shared/queries/queries.go:504
↓ 2 callersMethodskipped
(dirs ast.DirectiveList)
script/ghmock/gqlscaffold.go:343
↓ 2 callersFunctionskippedBy
skippedBy evaluates @skip and @include with the variables gh sent.
script/ghmock/gqlscaffold.go:348
↓ 2 callersFunctionsortComments
(cs api.Comments, rs api.PullRequestReviews)
pkg/cmd/pr/shared/comments.go:144
↓ 2 callersFunctionsortLines
(s string)
pkg/cmd/codespace/delete_test.go:339
↓ 2 callersFunctionsplitLines
(s string)
script/ghmock/report.go:539
↓ 2 callersFunctionsplitPath
(p string)
script/ghmock/restcheck.go:84
↓ 2 callersFunctionstatusRun
(opts *StatusOptions)
pkg/cmd/status/status.go:633
↓ 2 callersFunctionstatusRun
(opts *StatusOptions)
pkg/cmd/pr/status/status.go:82
↓ 2 callersFunctionstimulusVariant
(value: unknown, variants: readonly string[])
evals/src/core/executor.ts:44
↓ 2 callersFunctionstripControl
stripControl is a defensive fallback used only if the sanitizing transform errors, which the asciisanitizer does not do in practice. It drops C0 contr
pkg/iostreams/untrusted.go:88
↓ 2 callersFunctionstubAllSecureRemote
stubAllSecureRemote registers the standard stubs for a fully-configured remote repo (topics, tags, rulesets, security) so publishRun skips all remote
pkg/cmd/skills/publish/publish_test.go:52
↓ 2 callersFunctionstubCommit
(pr *api.PullRequest, oid string)
pkg/cmd/pr/merge/merge_test.go:244
↓ 2 callersFunctionstubContentsAPI
(reg *httpmock.Registry, owner, repo, path, content string)
pkg/cmd/skills/install/install_test.go:2879
↓ 2 callersFunctionstubCredentialReject
(t *testing.T, hostname string, exitStatus int, verifyLogout func())
pkg/cmd/auth/logout/logout_test.go:1294
↓ 2 callersFunctionstubHomeDir
(t *testing.T, dir string)
pkg/cmd/auth/login/login_test.go:28
↓ 2 callersFunctionstubPinnedExtension
(path string, pinnedVersion string)
pkg/cmd/extension/manager_test.go:1527
↓ 2 callersFunctionstubRemotes
(remotes ghContext.Remotes, err error)
pkg/cmd/pr/shared/finder_test.go:934
↓ 2 callersMethodsubscribe
* Returns the caller's subscription for exactly this PR and event-type set, creating it if absent. * Returns undefined when the set does not exist
evals/src/suites/events/github.ts:35
↓ 2 callersFunctionsubscriptionLimitHit
(events: unknown[])
evals/src/suites/events/limit.ts:5
↓ 2 callersFunctionsummarize
(entries []loggedRequest)
script/ghmock/server_test.go:34
↓ 2 callersFunctionswitchRun
(opts *SwitchOptions)
pkg/cmd/auth/switch/switch.go:77
↓ 2 callersFunctionsyncBranchCmds
syncBranchCmds syncs a branch to ref: a hard reset when force is set, otherwise a fast-forward-only merge. A non-empty path runs the commands there.
pkg/cmd/pr/checkout/checkout.go:344
↓ 2 callersFunctionsyncRun
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:91
↓ 2 callersFunctiontelemetryCommandPath
telemetryCommandPath returns the path of the command that args resolve to when it is in refreshTelemetryCommands, and "other" for any other command, i
internal/ghcmd/cmd.go:295
↓ 2 callersFunctiontemporary
(t: TestContext)
evals/src/harness.test.ts:25
↓ 2 callersFunctiontestCodeApiMock
()
pkg/cmd/codespace/code_test.go:106
↓ 2 callersMethodtick
(now: number, wait?: Call, source: "timer" | "post-tool" = "timer")
evals/src/suites/events/actor.ts:40
↓ 2 callersFunctiontoFilterState
toFilterState maps CLI state strings to domain-level filter state pointers. "all" maps to nil (no state filter).
pkg/cmd/discussion/list/list.go:152
↓ 2 callersFunctiontokenHasUserCapability
(token string)
acceptance/user_capability_test.go:29
↓ 2 callersFunctiontokenHasWorkflowScope
tokenHasWorkflowScope checks if the response token has the workflow scope. Tokens that do not have OAuth scopes are assumed to have the workflow scope
pkg/cmd/release/create/http.go:217
↓ 2 callersFunctiontokenRefresherHttpClientFunc
tokenRefresherHttpClientFunc builds the HTTP client used to renew OAuth tokens. It mirrors plainHttpClientFunc but defaults to headline-only logging s
pkg/cmd/factory/default.go:226
↓ 2 callersFunctiontrailingPathSeparatorError
(path string)
internal/safepaths/root.go:486
↓ 2 callersFunctiontransformSecurityAndAnalysisOpts
Transform security and analysis parameters to properly serialize EditRepositoryInput See API Docs: https://docs.github.com/en/rest/repos/repos?apiVers
pkg/cmd/repo/edit/edit.go:671
← previousnext →2,201–2,300 of 7,572, ranked by callers