MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionscalarJSON
scalarJSON says how a scalar appears in a JSON response.
script/ghmock/schemacmd.go:224
↓ 1 callersFunctionscanFilterForAgentHost
(agentHost *registry.AgentHost, scope registry.Scope)
pkg/cmd/skills/list/list.go:296
↓ 1 callersFunctionscanInstalledSkills
(skillsDir string, agentHostIDs []string, scope string, filter scanFilter)
pkg/cmd/skills/list/list.go:317
↓ 1 callersFunctionscanMarkdownRefs
scanMarkdownRefs finds every place the markdown names one of the attached files.
internal/attachments/references.go:245
↓ 1 callersFunctionscanTitle
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 callersFunctionschemaAt
schemaAt follows a dotted path, as used by ghmock set --at, into a schema.
script/ghmock/schemacmd.go:377
↓ 1 callersFunctionschemaCacheDir
()
script/ghmock/schemafiles.go:55
↓ 1 callersFunctionschemaCheck
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 callersMethodschemaFiles
schemaFiles describes each schema the checker tried to load.
script/ghmock/checker.go:108
↓ 1 callersFunctionschemaTypeName
(t string, ref *openapi3.SchemaRef)
script/ghmock/schemacmd.go:480
↓ 1 callersMethodscore
(parts []string)
script/ghmock/restcheck.go:123
↓ 1 callersFunctionscreenText
screenText is the terminal's screen as text, without trailing spaces or blank lines at the bottom.
script/ghmock/terminal.go:128
↓ 1 callersFunctionsearchByKeyword
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 callersFunctionsearchRepos
(client *http.Client, hostname string, limit int, owner string, filter FilterOptions)
pkg/cmd/repo/list/http.go:118
↓ 1 callersFunctionsearchResp
searchResp builds a mock search JSON response.
pkg/cmd/discussion/client/client_test.go:91
↓ 1 callersFunctionsearchResults
(numResults int)
pkg/cmd/extension/command_test.go:1150
↓ 1 callersFunctionselectRulesetID
(rsList *shared.RulesetList, p prompter.Prompter, cs *iostreams.ColorScheme)
pkg/cmd/ruleset/view/view.go:260
↓ 1 callersFunctionselectSkill
(opts *PreviewOptions, skills []discovery.Skill)
pkg/cmd/skills/preview/preview.go:453
↓ 1 callersFunctionselectWorkflow
(p iprompter, workflows []Workflow, promptMsg string, states []WorkflowState)
pkg/cmd/workflow/shared/shared.go:106
↓ 1 callersFunctionselectedAgentHosts
(agentID string)
pkg/cmd/skills/list/list.go:266
↓ 1 callersFunctionselectedScopes
(scope string)
pkg/cmd/skills/list/list.go:282
↓ 1 callersMethodsendAndWait
(prompt: string, timeout: number)
evals/src/graders/copilot-review.ts:9
↓ 1 callersMethodsendError
(err error)
internal/codespaces/connection/tunnels_api_server_mock.go:290
↓ 1 callersFunctionserializeProjectWithItems
serialize creates a map from field to field values
pkg/cmd/project/shared/queries/queries.go:1799
↓ 1 callersMethodserveGitHTTP
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 callersMethodserveRecordEvents
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:332
↓ 1 callersMethodserveRecordEventsJSON
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:350
↓ 1 callersMethodserveRecordEventsProtobuf
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
internal/barista/observability/telemetry.twirp.go:433
↓ 1 callersMethodserverConfig
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 callersFunctionset
(flag: string, value: string)
evals/src/core/calls.ts:62
↓ 1 callersFunctionsetAtPath
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 callersMethodsetInstalled
(fullName string, installed bool)
pkg/cmd/extension/browse/model.go:429
↓ 1 callersFunctionsetPath
(node any, segments []string, val any, walked string)
script/ghmock/set.go:391
↓ 1 callersFunctionsetPrepareCmd
(fn func(*exec.Cmd) Runnable)
internal/run/stub.go:53
↓ 1 callersFunctionsetRefresher
(t *testing.T, c gh.Config, r gh.TokenRefresher)
pkg/cmd/auth/token/token_test.go:521
↓ 1 callersFunctionsetRefresher
(t *testing.T, c gh.Config, r gh.TokenRefresher)
pkg/cmd/auth/status/status_test.go:1141
↓ 1 callersMethodsetRepoDir
(repoDir string)
git/command.go:62
↓ 1 callersFunctionsetSecret
(opts *SetOptions, pk *PubKey, host string, client *api.Client, baseRepo ghrepo.Interface, secretKey string, s
pkg/cmd/secret/set/set.go:330
↓ 1 callersMethodsetStatus
(status string)
pkg/cmd/extension/browse/model.go:438
↓ 1 callersFunctionsetTopics
(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface, topics []string)
pkg/cmd/repo/edit/edit.go:596
↓ 1 callersFunctionsetVariable
(client *api.Client, host string, opts setOptions)
pkg/cmd/variable/set/http.go:45
↓ 1 callersFunctionsetupLegacyUnkeyedKeyringState
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 callersFunctionsetupRunAddItemUserMocks
()
pkg/cmd/project/item-add/item_add_test.go:104
↓ 1 callersFunctionsetupTestHome
setupTestHome redirects HOME to a temp dir and returns the expected lockfile path.
internal/skills/lockfile/lockfile_test.go:15
↓ 1 callersFunctionshellInspect
(args []string)
script/build.go:257
↓ 1 callersMethodshouldAddToMergeQueue
Add the Pull Request to a merge queue Admins can bypass the queue and merge directly
pkg/cmd/pr/merge/merge.go:550
↓ 1 callersFunctionshouldFetchJobs
(opts *ViewOptions)
pkg/cmd/run/view/view.go:478
↓ 1 callersFunctionshouldIncludeSkill
(filter scanFilter, hasInstallMetadata bool)
pkg/cmd/skills/list/list.go:380
↓ 1 callersFunctionshouldListPublishedProjectSkills
(agentID string, scopes []registry.Scope, gitRoot string)
pkg/cmd/skills/list/list.go:310
↓ 1 callersFunctionshouldRetry
(err error)
pkg/cmd/release/shared/upload.go:130
↓ 1 callersFunctionshouldUseSearch
(filters prShared.FilterOptions)
pkg/cmd/pr/list/http.go:13
↓ 1 callersMethodshowStatus
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 callersFunctionsignerWorkflowSANPattern
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 callersFunctionsimulateRefreshTokenExpired
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 callersFunctionsingleCheckRunWithStatus
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 callersFunctionsingleCompletedCheckRunWithConclusion
(conclusion string)
api/pull_request_test.go:363
↓ 1 callersFunctionsingleStatusContextWithState
(state string)
api/pull_request_test.go:381
↓ 1 callersFunctionskillNameFromSourcePath
(sourcePath string)
pkg/cmd/skills/list/list.go:454
↓ 1 callersFunctionsliceWithout
(s []string, v string)
pkg/set/string_set.go:39
↓ 1 callersMethodsnapshot
The suite-specific facts graders need, captured once the agent has finished.
evals/src/core/suite.ts:63
↓ 1 callersMethodsnapshotConfig
(runID, source string)
script/ghmock/configfixture.go:16
↓ 1 callersMethodsnapshotGit
(runID, in string)
script/ghmock/gitfixture.go:65
↓ 1 callersFunctionsortListedSkills
(skills []listedSkill)
pkg/cmd/skills/list/list.go:485
↓ 1 callersFunctionsortReviewerStates
sortReviewerStates puts completed reviews before review requests and sorts names alphabetically
pkg/cmd/pr/view/view.go:413
↓ 1 callersFunctionsortTree
(node *treeNode)
pkg/cmd/skills/preview/preview.go:527
↓ 1 callersFunctionsortedCopy
(names []string)
script/ghmock/schemacmd.go:613
↓ 1 callersFunctionsourceFilesLaterThan
(t time.Time)
script/build.go:172
↓ 1 callersFunctionsourceInit
(gitClient *git.Client, io *iostreams.IOStreams, remoteURL, baseRemote string)
pkg/cmd/repo/create/create.go:737
↓ 1 callersFunctionsplitDiffSections
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 callersFunctionsplitNameAndOwner
(name string)
pkg/cmd/repo/create/create.go:970
↓ 1 callersFunctionsplitRepo
splitRepo splits "owner/repo" into its components.
pkg/cmd/skills/search/search.go:822
↓ 1 callersFunctionsshKeyUpload
(httpClient *http.Client, hostname, keyFile string, title string)
pkg/cmd/auth/shared/login_flow.go:336
↓ 1 callersFunctionstandsAlone
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 callersFunctionstarLine
(r *rand.Rand, width int)
pkg/cmd/repo/credits/credits.go:252
↓ 1 callersMethodstart
(context: TrialContext)
evals/src/core/suite.ts:79
↓ 1 callersMethodstartCreate
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 callersMethodstartHandshake
startHandshake counts a TLS handshake that close waits for. It returns false once the server is closing.
script/ghmock/server.go:316
↓ 1 callersMethodstartSearch
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 callersMethodstartTextualProgressIndicator
(label string)
pkg/iostreams/iostreams.go:343
↓ 1 callersFunctionstatus
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 callersFunctionstatusContextNode
(state string)
api/pull_request_test.go:407
↓ 1 callersFunctionstatusRun
(opts *StatusOptions)
pkg/cmd/issue/status/status.go:63
↓ 1 callersFunctionstepLogFilenameRegexp
(job shared.Job, step shared.Step)
pkg/cmd/run/view/logs.go:278
↓ 1 callersMethodstop
()
evals/src/graders/copilot-review.ts:13
↓ 1 callersFunctionstream
(...times: number[])
evals/src/review-loop.test.ts:301
↓ 1 callersFunctionstringPlaceholder
(format, name string)
script/ghmock/restscaffold.go:323
↓ 1 callersFunctionstringifyReference
(cmd *cobra.Command)
pkg/cmd/root/help_reference.go:43
↓ 1 callersFunctionstripDiffFormat
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 callersFunctionstripGitHubMetadata
stripGitHubMetadata removes github-* keys from the metadata map and re-serializes.
pkg/cmd/skills/publish/publish.go:1137
↓ 1 callersFunctionstripSpace
(str string)
api/queries_projects_v2_test.go:350
↓ 1 callersFunctionstubBaseRepoFn
(baseRepo ghrepo.Interface, err error)
pkg/cmd/pr/shared/finder_test.go:940
↓ 1 callersFunctionstubCodeReviewUpdate
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 callersFunctionstubDeviceIDError
(err error)
internal/telemetry/telemetry_test.go:29
↓ 1 callersFunctionstubDiffRequest
(reg *httpmock.Registry, accept, diff string)
pkg/cmd/pr/diff/diff_test.go:508
↓ 1 callersFunctionstubEnsurePushed
stubEnsurePushed registers stubs for ensurePushed + runPublishRelease CurrentBranch calls.
pkg/cmd/skills/publish/publish_test.go:44
↓ 1 callersFunctionstubKeyringDelete
stubKeyringDelete makes keyring deletes return err without deleting anything.
internal/config/refreshable_telemetry_test.go:350
↓ 1 callersFunctionstubKeyringDeleteThenReadError
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 callersFunctionstubLookupEnv
(fn func(string) (string, bool))
internal/telemetry/telemetry_test.go:35
↓ 1 callersFunctionstubRemoteToRepoResolver
(remotes ghContext.Remotes, err error)
pkg/cmd/pr/shared/find_refs_resolution_test.go:498
↓ 1 callersFunctionstubSkillByPath
stubSkillByPath registers stubs for DiscoverSkillByPath (contents API + tree).
pkg/cmd/skills/install/install_test.go:269
← previousnext →3,901–4,000 of 7,572, ranked by callers