Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
↓ 1 callers
Function
scalarJSON
scalarJSON says how a scalar appears in a JSON response.
script/ghmock/schemacmd.go:224
↓ 1 callers
Function
scanFilterForAgentHost
(agentHost *registry.AgentHost, scope registry.Scope)
pkg/cmd/skills/list/list.go:296
↓ 1 callers
Function
scanInstalledSkills
(skillsDir string, agentHostIDs []string, scope string, filter scanFilter)
pkg/cmd/skills/list/list.go:317
↓ 1 callers
Function
scanMarkdownRefs
scanMarkdownRefs finds every place the markdown names one of the attached files.
internal/attachments/references.go:245
↓ 1 callers
Function
scanTitle
scanTitle skips the optional title following a destination and returns the index just past it. i may point at anything: a byte that opens no title lea
internal/attachments/references.go:641
↓ 1 callers
Function
schemaAt
schemaAt follows a dotted path, as used by ghmock set --at, into a schema.
script/ghmock/schemacmd.go:377
↓ 1 callers
Function
schemaCacheDir
()
script/ghmock/schemafiles.go:55
↓ 1 callers
Function
schemaCheck
schemaCheck checks resp against GitHub's schema. It returns the problems it found, or, when it couldn't check, a line saying why.
script/ghmock/set.go:247
↓ 1 callers
Method
schemaFiles
schemaFiles describes each schema the checker tried to load.
script/ghmock/checker.go:108
↓ 1 callers
Function
schemaTypeName
(t string, ref *openapi3.SchemaRef)
script/ghmock/schemacmd.go:480
↓ 1 callers
Method
score
(parts []string)
script/ghmock/restcheck.go:123
↓ 1 callers
Function
screenText
screenText is the terminal's screen as text, without trailing spaces or blank lines at the bottom.
script/ghmock/terminal.go:128
↓ 1 callers
Function
searchByKeyword
searchByKeyword runs parallel searches: content match, path match, owner match (for single-word queries), and (for multi-word queries) a hyphenated co
pkg/cmd/skills/search/search.go:283
↓ 1 callers
Function
searchRepos
(client *http.Client, hostname string, limit int, owner string, filter FilterOptions)
pkg/cmd/repo/list/http.go:118
↓ 1 callers
Function
searchResp
searchResp builds a mock search JSON response.
pkg/cmd/discussion/client/client_test.go:91
↓ 1 callers
Function
searchResults
(numResults int)
pkg/cmd/extension/command_test.go:1150
↓ 1 callers
Function
selectRulesetID
(rsList *shared.RulesetList, p prompter.Prompter, cs *iostreams.ColorScheme)
pkg/cmd/ruleset/view/view.go:260
↓ 1 callers
Function
selectSkill
(opts *PreviewOptions, skills []discovery.Skill)
pkg/cmd/skills/preview/preview.go:453
↓ 1 callers
Function
selectWorkflow
(p iprompter, workflows []Workflow, promptMsg string, states []WorkflowState)
pkg/cmd/workflow/shared/shared.go:106
↓ 1 callers
Function
selectedAgentHosts
(agentID string)
pkg/cmd/skills/list/list.go:266
↓ 1 callers
Function
selectedScopes
(scope string)
pkg/cmd/skills/list/list.go:282
↓ 1 callers
Method
sendAndWait
(prompt: string, timeout: number)
evals/src/graders/copilot-review.ts:9
↓ 1 callers
Method
sendError
(err error)
internal/codespaces/connection/tunnels_api_server_mock.go:290
↓ 1 callers
Function
serializeProjectWithItems
serialize creates a map from field to field values
pkg/cmd/project/shared/queries/queries.go:1799
↓ 1 callers
Method
serveGitHTTP
serveGitHTTP delegates smart HTTP to Git before the JSON fixture handler reads the body. Pack streams must not be truncated or schema-checked.
script/ghmock/gittransport.go:36
↓ 1 callers
Method
serveRecordEvents
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:332
↓ 1 callers
Method
serveRecordEventsJSON
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:350
↓ 1 callers
Method
serveRecordEventsProtobuf
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:433
↓ 1 callers
Method
serverConfig
serverConfig presents a certificate for the host gh names in its TLS handshake, or for fallback when it names none.
script/ghmock/tls.go:114
↓ 1 callers
Function
set
(flag: string, value: string)
evals/src/core/calls.ts:62
↓ 1 callers
Function
setAtPath
setAtPath puts a JSON value at a dotted path inside a JSON body. Numeric segments index arrays. Missing objects along the way are created.
script/ghmock/set.go:369
↓ 1 callers
Method
setInstalled
(fullName string, installed bool)
pkg/cmd/extension/browse/model.go:429
↓ 1 callers
Function
setPath
(node any, segments []string, val any, walked string)
script/ghmock/set.go:391
↓ 1 callers
Function
setPrepareCmd
(fn func(*exec.Cmd) Runnable)
internal/run/stub.go:53
↓ 1 callers
Function
setRefresher
(t *testing.T, c gh.Config, r gh.TokenRefresher)
pkg/cmd/auth/token/token_test.go:521
↓ 1 callers
Function
setRefresher
(t *testing.T, c gh.Config, r gh.TokenRefresher)
pkg/cmd/auth/status/status_test.go:1141
↓ 1 callers
Method
setRepoDir
(repoDir string)
git/command.go:62
↓ 1 callers
Function
setSecret
(opts *SetOptions, pk *PubKey, host string, client *api.Client, baseRepo ghrepo.Interface, secretKey string, s
pkg/cmd/secret/set/set.go:330
↓ 1 callers
Method
setStatus
(status string)
pkg/cmd/extension/browse/model.go:438
↓ 1 callers
Function
setTopics
(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface, topics []string)
pkg/cmd/repo/edit/edit.go:596
↓ 1 callers
Function
setVariable
(client *api.Client, host string, opts setOptions)
pkg/cmd/variable/set/http.go:45
↓ 1 callers
Function
setupLegacyUnkeyedKeyringState
setupLegacyUnkeyedKeyringState recreates the state a very old gh install leaves behind: an active user is recorded for github.com, but the only keyrin
pkg/cmd/auth/token/token_test.go:498
↓ 1 callers
Function
setupRunAddItemUserMocks
()
pkg/cmd/project/item-add/item_add_test.go:104
↓ 1 callers
Function
setupTestHome
setupTestHome redirects HOME to a temp dir and returns the expected lockfile path.
internal/skills/lockfile/lockfile_test.go:15
↓ 1 callers
Function
shellInspect
(args []string)
script/build.go:257
↓ 1 callers
Method
shouldAddToMergeQueue
Add the Pull Request to a merge queue Admins can bypass the queue and merge directly
pkg/cmd/pr/merge/merge.go:550
↓ 1 callers
Function
shouldFetchJobs
(opts *ViewOptions)
pkg/cmd/run/view/view.go:478
↓ 1 callers
Function
shouldIncludeSkill
(filter scanFilter, hasInstallMetadata bool)
pkg/cmd/skills/list/list.go:380
↓ 1 callers
Function
shouldListPublishedProjectSkills
(agentID string, scopes []registry.Scope, gitRoot string)
pkg/cmd/skills/list/list.go:310
↓ 1 callers
Function
shouldRetry
(err error)
pkg/cmd/release/shared/upload.go:130
↓ 1 callers
Function
shouldUseSearch
(filters prShared.FilterOptions)
pkg/cmd/pr/list/http.go:13
↓ 1 callers
Method
showStatus
showStatus polls the codespace for a list of post create states and their status. It will keep polling until all states have finished. Once all states
pkg/cmd/codespace/create.go:458
↓ 1 callers
Function
signerWorkflowSANPattern
signerWorkflowSANPattern builds the SAN pattern enforced for --signer-workflow. sigstore-go matches SAN patterns with regexp.MatchString, which is un
pkg/cmd/attestation/verify/policy.go:46
↓ 1 callers
Function
simulateRefreshTokenExpired
simulateRefreshTokenExpired simulates refresh token expiry when a debug lifetime override is set. The override is anchored at issuance, computed from
internal/config/refreshable.go:385
↓ 1 callers
Function
singleCheckRunWithStatus
Note that it would be incorrect to provide a status of COMPLETED here as the conclusion is always set to null. If you want a COMPLETED status, use `si
api/pull_request_test.go:345
↓ 1 callers
Function
singleCompletedCheckRunWithConclusion
(conclusion string)
api/pull_request_test.go:363
↓ 1 callers
Function
singleStatusContextWithState
(state string)
api/pull_request_test.go:381
↓ 1 callers
Function
skillNameFromSourcePath
(sourcePath string)
pkg/cmd/skills/list/list.go:454
↓ 1 callers
Function
sliceWithout
(s []string, v string)
pkg/set/string_set.go:39
↓ 1 callers
Method
snapshot
The suite-specific facts graders need, captured once the agent has finished.
evals/src/core/suite.ts:63
↓ 1 callers
Method
snapshotConfig
(runID, source string)
script/ghmock/configfixture.go:16
↓ 1 callers
Method
snapshotGit
(runID, in string)
script/ghmock/gitfixture.go:65
↓ 1 callers
Function
sortListedSkills
(skills []listedSkill)
pkg/cmd/skills/list/list.go:485
↓ 1 callers
Function
sortReviewerStates
sortReviewerStates puts completed reviews before review requests and sorts names alphabetically
pkg/cmd/pr/view/view.go:413
↓ 1 callers
Function
sortTree
(node *treeNode)
pkg/cmd/skills/preview/preview.go:527
↓ 1 callers
Function
sortedCopy
(names []string)
script/ghmock/schemacmd.go:613
↓ 1 callers
Function
sourceFilesLaterThan
(t time.Time)
script/build.go:172
↓ 1 callers
Function
sourceInit
(gitClient *git.Client, io *iostreams.IOStreams, remoteURL, baseRemote string)
pkg/cmd/repo/create/create.go:737
↓ 1 callers
Function
splitDiffSections
splitDiffSections splits a unified diff string into per-file sections. Each section starts with "diff --git" and includes all content up to (but not i
pkg/cmd/pr/diff/diff.go:383
↓ 1 callers
Function
splitNameAndOwner
(name string)
pkg/cmd/repo/create/create.go:970
↓ 1 callers
Function
splitRepo
splitRepo splits "owner/repo" into its components.
pkg/cmd/skills/search/search.go:822
↓ 1 callers
Function
sshKeyUpload
(httpClient *http.Client, hostname, keyFile string, title string)
pkg/cmd/auth/shared/login_flow.go:336
↓ 1 callers
Function
standsAlone
standsAlone reports whether replacing a node with a bare URL will render as a player. GitHub promotes a bare asset URL to a video exactly when it is
internal/attachments/references.go:808
↓ 1 callers
Function
starLine
(r *rand.Rand, width int)
pkg/cmd/repo/credits/credits.go:252
↓ 1 callers
Method
start
(context: TrialContext)
evals/src/core/suite.ts:79
↓ 1 callers
Method
startCreate
startCreate starts the creation of a codespace. It may return success or an error, or errProvisioningInProgress indicating that the operation did not
internal/codespaces/api/api.go:959
↓ 1 callers
Method
startHandshake
startHandshake counts a TLS handshake that close waits for. It returns false once the server is closing.
script/ghmock/server.go:316
↓ 1 callers
Method
startSearch
startSearch launches an async search and returns a tea.Cmd that will deliver the result via msSearchResultMsg.
internal/prompter/multi_select_with_search.go:115
↓ 1 callers
Method
startTextualProgressIndicator
(label string)
pkg/iostreams/iostreams.go:343
↓ 1 callers
Function
status
status creates a string showing the result of a successful lock/unlock that is parameterized on a bunch of options. Example output: "Locked as RESOLV
pkg/cmd/issue/lock/lock.go:221
↓ 1 callers
Function
statusContextNode
(state string)
api/pull_request_test.go:407
↓ 1 callers
Function
statusRun
(opts *StatusOptions)
pkg/cmd/issue/status/status.go:63
↓ 1 callers
Function
stepLogFilenameRegexp
(job shared.Job, step shared.Step)
pkg/cmd/run/view/logs.go:278
↓ 1 callers
Method
stop
()
evals/src/graders/copilot-review.ts:13
↓ 1 callers
Function
stream
(...times: number[])
evals/src/review-loop.test.ts:301
↓ 1 callers
Function
stringPlaceholder
(format, name string)
script/ghmock/restscaffold.go:323
↓ 1 callers
Function
stringifyReference
(cmd *cobra.Command)
pkg/cmd/root/help_reference.go:43
↓ 1 callers
Function
stripDiffFormat
stripDiffFormat implements a primitive conversion from a diff string to a plain text representation by removing diff-specific formatting.
pkg/cmd/agent-task/shared/log.go:333
↓ 1 callers
Function
stripGitHubMetadata
stripGitHubMetadata removes github-* keys from the metadata map and re-serializes.
pkg/cmd/skills/publish/publish.go:1137
↓ 1 callers
Function
stripSpace
(str string)
api/queries_projects_v2_test.go:350
↓ 1 callers
Function
stubBaseRepoFn
(baseRepo ghrepo.Interface, err error)
pkg/cmd/pr/shared/finder_test.go:940
↓ 1 callers
Function
stubCodeReviewUpdate
stubCodeReviewUpdate registers the API stubs for updating the code-review skill from repository ID 1 to tree newsha999.
pkg/cmd/skills/update/update_test.go:1559
↓ 1 callers
Function
stubDeviceIDError
(err error)
internal/telemetry/telemetry_test.go:29
↓ 1 callers
Function
stubDiffRequest
(reg *httpmock.Registry, accept, diff string)
pkg/cmd/pr/diff/diff_test.go:508
↓ 1 callers
Function
stubEnsurePushed
stubEnsurePushed registers stubs for ensurePushed + runPublishRelease CurrentBranch calls.
pkg/cmd/skills/publish/publish_test.go:44
↓ 1 callers
Function
stubKeyringDelete
stubKeyringDelete makes keyring deletes return err without deleting anything.
internal/config/refreshable_telemetry_test.go:350
↓ 1 callers
Function
stubKeyringDeleteThenReadError
stubKeyringDeleteThenReadError makes keyring deletes report success and every later keyring operation fail with err, so the read that verifies the rem
internal/config/refreshable_telemetry_test.go:359
↓ 1 callers
Function
stubLookupEnv
(fn func(string) (string, bool))
internal/telemetry/telemetry_test.go:35
↓ 1 callers
Function
stubRemoteToRepoResolver
(remotes ghContext.Remotes, err error)
pkg/cmd/pr/shared/find_refs_resolution_test.go:498
↓ 1 callers
Function
stubSkillByPath
stubSkillByPath registers stubs for DiscoverSkillByPath (contents API + tree).
pkg/cmd/skills/install/install_test.go:269
← previous
next →
3,901–4,000 of 7,572, ranked by callers