Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 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:597
↓ 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:475
↓ 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:384
↓ 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:410
↓ 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:343
↓ 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
stubContentsAPI
(reg *httpmock.Registry, owner, repo, path, content string)
pkg/cmd/skills/install/install_test.go:2805
↓ 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
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:251
↓ 1 callers
Function
stubStateDir
(dir string)
internal/telemetry/telemetry_test.go:17
↓ 1 callers
Function
stubTreeAndBlob
(reg *httpmock.Registry, treeSHA string)
internal/skills/installer/installer_test.go:316
↓ 1 callers
Function
sub
(n: number)
evals/src/github.test.ts:82
↓ 1 callers
Function
submitPR
(opts CreateOptions, ctx CreateContext, state shared.IssueMetadataState, projectV1Support gh.ProjectsV1Support
pkg/cmd/pr/create/create.go:1096
↓ 1 callers
Method
submitReview
(head: string, event: "REQUEST_CHANGES" | "APPROVE", body: string)
evals/src/suites/events/smoke-protocol.ts:3
↓ 1 callers
Method
subscribe
subscribe creates the subscription, retrying while the API is unavailable.
pkg/cmd/event/listen/listen.go:401
↓ 1 callers
Function
subscriptionCommand
(call: Call)
evals/src/suites/events/commands.ts:28
↓ 1 callers
Function
successStatus
successStatus picks the first documented 2xx status.
script/ghmock/restscaffold.go:86
↓ 1 callers
Function
suggestNextTag
suggestNextTag increments the patch version of a semver tag.
pkg/cmd/skills/publish/publish.go:944
↓ 1 callers
Function
supportedContentType
supportedContentType maps a file extension to the content type the endpoint expects. The extension is all gh checks, since the endpoint accepts mislab
internal/attachments/userasset.go:172
↓ 1 callers
Function
swapURLHost
swapURLHost replaces the host component of rawURL with newHost, preserving scheme, port (if already present in rawURL), path, and query unchanged.
pkg/cmd/api/http.go:164
↓ 1 callers
Function
symlinkTestFile
symlinkTestFile creates a symlink, or skips the test where that needs a privilege the system doesn't grant, as on Windows by default.
pkg/cmd/issue/artifact/create/create_test.go:1589
↓ 1 callers
Function
symlinkTestFile
symlinkTestFile creates a symlink, or skips the test where that needs a privilege the system doesn't grant, as on Windows by default.
pkg/cmd/issue/artifact/download/download_test.go:1537
↓ 1 callers
Function
symlinkTestFile
symlinkTestFile creates a symlink, or skips the test where that needs a privilege the system doesn't grant, as on Windows by default.
pkg/cmd/issue/artifact/edit/edit_test.go:1763
↓ 1 callers
Function
syncFork
(client *api.Client, repo ghrepo.Interface, branch, SHA string, force bool)
pkg/cmd/repo/sync/http.go:74
↓ 1 callers
Function
syncLocalRepo
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:99
↓ 1 callers
Function
syncRemoteRepo
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:168
↓ 1 callers
Function
task
()
evals/src/graders.test.ts:464
↓ 1 callers
Method
taskChecks
(evidence: Evidence)
evals/src/suites/events/scenarios/definition.ts:26
↓ 1 callers
Function
telemetryFlags
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:47
↓ 1 callers
Function
tempFilePath
()
internal/update/update_test.go:485
↓ 1 callers
Function
testArtifactZip
(t *testing.T)
pkg/cmd/run/download/http_test.go:160
↓ 1 callers
Function
testCloser
testCloser is a helper to fail the test if a Closer fails to close.
pkg/iostreams/iostreams_progress_indicator_test.go:249
↓ 1 callers
Function
testCloser
testCloser is a helper to fail the test if a Closer fails to close.
internal/prompter/accessible_prompter_test.go:953
↓ 1 callers
Function
testConfig
()
pkg/cmd/issue/comment/comment_test.go:955
↓ 1 callers
Function
testConfig
()
pkg/cmd/pr/comment/comment_test.go:910
↓ 1 callers
Function
testScriptParamsFor
(t *testing.T, tsEnv testScriptEnv, fixtureRepositories *fixtureRepositoryManager, command string)
acceptance/acceptance_test.go:807
↓ 1 callers
Function
testSelectApiMock
()
pkg/cmd/codespace/select_test.go:96
↓ 1 callers
Function
testViewApiMock
()
pkg/cmd/codespace/view_test.go:95
↓ 1 callers
Function
testingCodeApp
()
pkg/cmd/codespace/code_test.go:101
↓ 1 callers
Function
testingLogsApp
()
pkg/cmd/codespace/logs_test.go:24
↓ 1 callers
Function
testingRebuildApp
(mockCodespace api.Codespace)
pkg/cmd/codespace/rebuild_test.go:25
↓ 1 callers
Function
testingSSHApp
()
pkg/cmd/codespace/ssh_test.go:283
↓ 1 callers
Function
timestamp
timestamp returns t in RFC 3339 format, or an empty string for a null time.
pkg/cmd/issue/artifact/view/view.go:337
↓ 1 callers
Function
tlsFailures
tlsFailures lists, once each and in order, the hosts whose TLS handshake with ghmock failed, with the reason.
script/ghmock/report.go:119
↓ 1 callers
Function
toConfigEntry
toConfigEntry is a helper function to convert a string value to a ConfigEntry with a given source. It's a bit of FP style but it allows us to map an
internal/config/config.go:96
↓ 1 callers
Function
toGitHubV4Strings
toGitHubV4Strings converts a string slice to a githubv4.String slice, optionally appending a suffix to each element.
api/queries_pr_review.go:705
← previous
next →
3,901–4,000 of 7,487, ranked by callers