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
↓ 2 callers
Function
sampleDiscussions
()
pkg/cmd/discussion/list/list_test.go:641
↓ 2 callers
Function
sandboxFilePath
(root, currentDir, name string)
acceptance/acceptance_test.go:1243
↓ 2 callers
Function
sanitizeBaseURL
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 callers
Function
sanitizeFileName
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 callers
Function
sanitizedReader
(r io.Reader)
pkg/cmd/pr/diff/diff.go:355
↓ 2 callers
Function
scanAllAgents
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:524
↓ 2 callers
Function
scanAngleDest
scanAngleDest reads a "<...>" destination beginning at the "<", returning the index just past the closing ">".
internal/attachments/references.go:666
↓ 2 callers
Function
scanBareDest
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 callers
Function
scopesSentence
(scopes []string)
pkg/cmd/auth/shared/login_flow.go:335
↓ 2 callers
Function
searchPullRequests
(httpClient *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit i
pkg/cmd/pr/list/http.go:32
↓ 2 callers
Function
searchQuery
(owner string, filter FilterOptions)
pkg/cmd/repo/list/http.go:176
↓ 2 callers
Function
seedSubscriptions
( github: EventsGitHub, subscriber: EventsGitHub, repo: string, workDir: string, env: NodeJS.ProcessEnv, j
evals/src/suites/events/fixtures.ts:60
↓ 2 callers
Function
selectAcceptanceTestGroups
(available []string, requested string)
acceptance/acceptance_test.go:676
↓ 2 callers
Function
selectSSHKeys
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 callers
Function
selectScripts
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 callers
Function
selectVersion
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 callers
Function
selectedRepositoryCount
(client *http.Client, host string, selectedReposURL safeurl.SafeURL)
pkg/cmd/secret/list/list.go:337
↓ 2 callers
Function
serveSchemas
serveSchemas points schema downloads at a local server. A file missing from files gets a 404.
script/ghmock/schemafiles_test.go:21
↓ 2 callers
Method
setCommonOptions
(f *cmdutil.Factory, args []string)
pkg/cmd/issue/lock/lock.go:107
↓ 2 callers
Function
setDefaultRun
(opts *SetDefaultOptions)
pkg/cmd/repo/setdefault/setdefault.go:126
↓ 2 callers
Method
setRefreshableInConfig
(hostname, username string, credential gh.Credential)
internal/config/refreshable.go:341
↓ 2 callers
Method
setRefreshableInKeyring
(hostname, username string, credential gh.Credential)
internal/config/refreshable.go:333
↓ 2 callers
Function
setRun
(opts *SetOptions)
pkg/cmd/alias/set/set.go:95
↓ 2 callers
Function
setRun
(opts *SetOptions)
pkg/cmd/config/set/set.go:64
↓ 2 callers
Function
setupGitRun
(opts *SetupGitOptions)
pkg/cmd/auth/setupgit/setupgit.go:75
↓ 2 callers
Function
setupJsonFlags
(cmd *cobra.Command, exportTarget *Exporter, fields []string)
pkg/cmdutil/json_flags.go:54
↓ 2 callers
Function
setupMockOAuthConfig
setupMockOAuthConfig configures a blank config with a default host and optional token behavior.
pkg/cmd/agent-task/agent_task_test.go:15
↓ 2 callers
Function
shellQuote
(s string)
pkg/cmd/auth/shared/gitcredentials/helper_config.go:119
↓ 2 callers
Function
shiftTab
()
internal/prompter/huh_prompter_test.go:69
↓ 2 callers
Function
shouldRetry
(err error)
pkg/cmd/attestation/api/client.go:279
↓ 2 callers
Function
showEscapes
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 callers
Method
shutdown
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 callers
Function
simplifyURL
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 callers
Function
singleLineFieldValue
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 callers
Function
skillSearchFunc
skillSearchFunc returns a search function for MultiSelectWithSearch that filters skills by case-insensitive substring match on name and description.
pkg/cmd/skills/install/install.go:837
↓ 2 callers
Method
skipped
(dirs ast.DirectiveList)
script/ghmock/gqlscaffold.go:343
↓ 2 callers
Function
skippedBy
skippedBy evaluates @skip and @include with the variables gh sent.
script/ghmock/gqlscaffold.go:348
↓ 2 callers
Function
sortComments
(cs api.Comments, rs api.PullRequestReviews)
pkg/cmd/pr/shared/comments.go:144
↓ 2 callers
Function
sortLines
(s string)
pkg/cmd/codespace/delete_test.go:339
↓ 2 callers
Function
splitLines
(s string)
script/ghmock/report.go:539
↓ 2 callers
Function
splitPath
(p string)
script/ghmock/restcheck.go:84
↓ 2 callers
Function
statusRun
(opts *StatusOptions)
pkg/cmd/status/status.go:633
↓ 2 callers
Function
statusRun
(opts *StatusOptions)
pkg/cmd/pr/status/status.go:82
↓ 2 callers
Function
stimulusVariant
(value: unknown, variants: readonly string[])
evals/src/core/executor.ts:44
↓ 2 callers
Function
stripControl
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 callers
Function
stubAllSecureRemote
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 callers
Function
stubCommit
(pr *api.PullRequest, oid string)
pkg/cmd/pr/merge/merge_test.go:244
↓ 2 callers
Function
stubHomeDir
(t *testing.T, dir string)
pkg/cmd/auth/login/login_test.go:28
↓ 2 callers
Function
stubPinnedExtension
(path string, pinnedVersion string)
pkg/cmd/extension/manager_test.go:1527
↓ 2 callers
Function
stubRemotes
(remotes ghContext.Remotes, err error)
pkg/cmd/pr/shared/finder_test.go:934
↓ 2 callers
Method
subscribe
* 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 callers
Function
subscriptionLimitHit
(events: unknown[])
evals/src/suites/events/limit.ts:5
↓ 2 callers
Function
summarize
(entries []loggedRequest)
script/ghmock/server_test.go:34
↓ 2 callers
Function
switchRun
(opts *SwitchOptions)
pkg/cmd/auth/switch/switch.go:77
↓ 2 callers
Function
syncBranchCmds
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 callers
Function
syncRun
(opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:91
↓ 2 callers
Function
temporary
(t: TestContext)
evals/src/harness.test.ts:25
↓ 2 callers
Function
testCodeApiMock
()
pkg/cmd/codespace/code_test.go:106
↓ 2 callers
Method
tick
(now: number, wait?: Call, source: "timer" | "post-tool" = "timer")
evals/src/suites/events/actor.ts:40
↓ 2 callers
Function
toFilterState
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 callers
Function
tokenHasUserCapability
(token string)
acceptance/user_capability_test.go:29
↓ 2 callers
Function
tokenHasWorkflowScope
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 callers
Function
tokenRefresherHttpClientFunc
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:225
↓ 2 callers
Function
trailingPathSeparatorError
(path string)
internal/safepaths/root.go:486
↓ 2 callers
Function
transformSecurityAndAnalysisOpts
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:672
↓ 2 callers
Function
truncate
(s string, n int)
script/ghmock/report.go:554
↓ 2 callers
Function
typeForFilename
(fn string)
pkg/cmd/release/shared/upload.go:75
↓ 2 callers
Method
typeName
()
script/ghmock/introspection.go:14
↓ 2 callers
Function
unarchiveRun
(opts *UnarchiveOptions)
pkg/cmd/repo/unarchive/unarchive.go:67
↓ 2 callers
Method
unavailable
unavailable describes each schema that couldn't be loaded.
script/ghmock/checker.go:129
↓ 2 callers
Function
unescapePunctuation
unescapePunctuation drops the backslash from every backslash-escaped ASCII punctuation character, which is how markdown spells a literal one.
internal/attachments/references.go:464
↓ 2 callers
Function
unfinishedJournals
(root: string)
evals/src/core/sandbox.ts:121
↓ 2 callers
Function
unlockLockable
unlockLockable will unlock an issue or pull request
pkg/cmd/issue/lock/lock.go:329
↓ 2 callers
Function
unpinRun
(opts *UnpinOptions)
pkg/cmd/issue/unpin/unpin.go:83
↓ 2 callers
Function
updateBranchRun
(opts *UpdateBranchOptions)
pkg/cmd/pr/update-branch/update_branch.go:79
↓ 2 callers
Function
updateLabel
(apiClient *api.Client, repo ghrepo.Interface, opts *editOptions)
pkg/cmd/label/create.go:162
↓ 2 callers
Function
updateRun
(opts *UpdateOptions)
pkg/cmd/skills/update/update.go:143
↓ 2 callers
Function
uploadDeployKey
(httpClient *http.Client, repo ghrepo.Interface, keyFile io.Reader, title string, isWritable bool)
pkg/cmd/repo/deploy-key/add/http.go:14
↓ 2 callers
Function
uploadMatcher
(repositoryID int64, name string)
internal/attachments/test.go:81
↓ 2 callers
Function
uploadWithDelete
(ctx context.Context, httpClient *http.Client, hostname string, uploadURL safeurl.SafeURL, a AssetForUpload)
pkg/cmd/release/shared/upload.go:141
↓ 2 callers
Function
useCacheDir
useCacheDir gives a test its own cache folder and returns ghmock's folder inside it.
script/ghmock/schemafiles_test.go:42
↓ 2 callers
Function
userAndOrgs
Returns the current username and any orgs that user is a member of.
pkg/cmd/repo/create/http.go:358
↓ 2 callers
Function
v1Projects
v1Projects retrieves set of RepoProjects relevant to given repository: - Projects for repository - Projects for repository organization, if it belongs
api/queries_repo.go:1517
↓ 2 callers
Function
v2Projects
v2Projects retrieves set of ProjectV2 relevant to given repository: - ProjectsV2 owned by current user - ProjectsV2 linked to repository - ProjectsV2
api/queries_repo.go:1557
↓ 2 callers
Function
validateChildPath
(name string)
internal/safepaths/root.go:283
↓ 2 callers
Function
validateNWO
validateNWO returns an error if nwo is not a valid "owner/repo" repository reference.
pkg/cmd/codespace/common.go:256
↓ 2 callers
Method
validateName
(name string)
pkg/cmd/release/download/download.go:432
↓ 2 callers
Function
validateScope
(key, hostname string)
pkg/cmd/config/set/set.go:105
↓ 2 callers
Function
validateSquashMergeCommitMsg
(value string)
pkg/cmd/repo/edit/edit.go:694
↓ 2 callers
Function
verifyAttestations
(art artifact.DigestedArtifact, att []*api.Attestation, sgVerifier verification.SigstoreVerifier, ec verificat
pkg/cmd/attestation/verify/attestation.go:74
↓ 2 callers
Function
version
()
script/build.go:151
↓ 2 callers
Function
viewRuleset
(httpClient *http.Client, hostname string, path safeurl.SafeURL)
pkg/cmd/ruleset/view/http.go:28
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/discussion/view/view.go:239
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/ruleset/view/view.go:110
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/release/view/view.go:75
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/agent-task/view/view.go:134
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/issue/artifact/view/view.go:113
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/gist/view/view.go:81
↓ 2 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/repo/license/view/view.go:75
↓ 2 callers
Function
viewRun
(opts *viewOptions)
pkg/cmd/repo/autolink/view/view.go:62
← previous
next →
2,201–2,300 of 7,487, ranked by callers