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
checkTraversal
checkTraversal returns an error if any component is exactly "..". Such a component survives percent-encoding as a real path segment and would traverse
internal/safeurl/safeurl.go:75
↓ 2 callers
Function
checkoutRun
(opts *CheckoutOptions)
pkg/cmd/pr/checkout/checkout.go:112
↓ 2 callers
Function
checksRun
(opts *ChecksOptions)
pkg/cmd/pr/checks/checks.go:148
↓ 2 callers
Function
checksRunWebMode
(opts *ChecksOptions)
pkg/cmd/pr/checks/checks.go:128
↓ 2 callers
Method
chooseCodespace
(ctx context.Context, codespaces []*api.Codespace)
pkg/cmd/codespace/codespace_selector.go:119
↓ 2 callers
Function
classifyWindowsPathRedirect
(info os.FileInfo, readlink func() error)
internal/safepaths/link_windows.go:22
↓ 2 callers
Method
cleanup
* Removes every live resource the journal records, including the sandbox repository. Suites that create nothing * beyond the sandbox can omit it; `
evals/src/core/suite.ts:84
↓ 2 callers
Function
cleanupSandbox
( github: GitHub, journal: Journal, journalPath: string, beforeDelete?: () => Promise<void>, )
evals/src/core/sandbox.ts:88
↓ 2 callers
Function
clearCacheRun
(opts *ClearCacheOptions)
pkg/cmd/config/clear-cache/clear_cache.go:44
↓ 2 callers
Function
clearConfigEnv
clearConfigEnv unsets the debug variables for the test, so cases expecting no override are not affected by the environment running the tests. t.Setenv
internal/debug/config_test.go:104
↓ 2 callers
Function
cloneJSON
(v any)
script/ghmock/restscaffold.go:360
↓ 2 callers
Function
cloneRun
(opts *cloneOptions)
pkg/cmd/label/clone.go:76
↓ 2 callers
Function
cloneWithRetry
(opts *CreateOptions, remoteURL, branch string)
pkg/cmd/repo/create/create.go:710
↓ 2 callers
Function
closeRun
(opts *CloseOptions)
pkg/cmd/issue/close/close.go:91
↓ 2 callers
Function
cmdManualPath
(c *cobra.Command)
internal/docs/markdown.go:212
↓ 2 callers
Function
cmdScaffold
(args []string, stdout, stderr io.Writer)
script/ghmock/scaffold.go:47
↓ 2 callers
Function
cmdSchema
(args []string, stdout, stderr io.Writer)
script/ghmock/schemacmd.go:60
↓ 2 callers
Function
cmdSchemas
cmdSchemas runs ghmock schemas update, which downloads both schema files again, to the files ghmock uses.
script/ghmock/schemacmd.go:687
↓ 2 callers
Function
codeRun
(opts *CodeOptions)
pkg/cmd/search/code/code.go:113
↓ 2 callers
Method
collectFields
collectFields lists the fields a selection set asks for on an object of type concrete. concrete is nil when the object's type isn't known, which happe
script/ghmock/graphqlcheck.go:231
↓ 2 callers
Function
colorDiffLines
(w io.Writer, r io.Reader)
pkg/cmd/pr/diff/diff.go:247
↓ 2 callers
Function
commentRun
(opts *CommentOptions)
pkg/cmd/discussion/comment/comment.go:142
↓ 2 callers
Function
commitsRun
(opts *CommitsOptions)
pkg/cmd/search/commits/commits.go:128
↓ 2 callers
Method
completeLogin
completeLogin sets the host git protocol, ensures the user entry is persisted, and activates the user. It is shared by Login and LoginRefreshable once
internal/config/config.go:548
↓ 2 callers
Function
configWithTokenRefresher
configWithTokenRefresher returns a config accessor that injects the OAuth token refresher into the AuthConfig the first time the configuration is reso
pkg/cmd/factory/default.go:269
↓ 2 callers
Function
configureStoreCredentialHelper
(t *testing.T)
pkg/cmd/auth/shared/gitcredentials/updater_test.go:17
↓ 2 callers
Function
confirmSubmission
(p Prompt, allowPreview, allowMetadata, allowDraft, isDraft bool)
pkg/cmd/pr/shared/survey.go:55
↓ 2 callers
Function
containsCommit
(workDir: string, env: NodeJS.ProcessEnv, sha: string)
evals/src/core/io.ts:68
↓ 2 callers
Function
contamination
(value: unknown, hiddenPaths: string[])
evals/src/core/observer.ts:165
↓ 2 callers
Function
content
(embedFS fs.ReadFileFS, rootDir string)
internal/licenses/licenses.go:17
↓ 2 callers
Method
contentType
()
script/ghmock/store.go:34
↓ 2 callers
Function
copilotBinaryPath
()
pkg/cmd/copilot/copilot.go:203
↓ 2 callers
Function
copilotReviewer
( createClient: (options: CopilotClientOptions) => ReviewClient = options => new CopilotClient(options), )
evals/src/graders/copilot-review.ts:17
↓ 2 callers
Function
copyLogWithLinePrefix
(w io.Writer, r io.Reader, prefix string)
pkg/cmd/run/view/view.go:605
↓ 2 callers
Function
couldBeOwner
couldBeOwner returns true if s looks like a valid GitHub username/org. GitHub usernames: 1-39 chars, alphanumeric or hyphen, no leading/trailing hyphe
pkg/cmd/skills/search/search.go:682
↓ 2 callers
Method
create
(name string)
acceptance/fixture_repository_test.go:27
↓ 2 callers
Function
createFakeListEndpointServer
(t *testing.T, initialTotal int, finalTotal int)
internal/codespaces/api/api_test.go:30
↓ 2 callers
Function
createGist
(client *http.Client, hostname, description string, public bool, files map[string]*shared.GistFile)
pkg/cmd/gist/create/create.go:261
↓ 2 callers
Method
createJSONLinesFileName
(artifact string)
pkg/cmd/attestation/download/metadata.go:32
↓ 2 callers
Function
createLabel
(client *http.Client, repo ghrepo.Interface, opts *createOptions)
pkg/cmd/label/create.go:129
↓ 2 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/discussion/create/create.go:98
↓ 2 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/agent-task/create/create.go:123
↓ 2 callers
Function
createRun
(opts *createOptions)
pkg/cmd/label/create.go:94
↓ 2 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/issue/artifact/create/create.go:285
↓ 2 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/gist/create/create.go:107
↓ 2 callers
Function
createRun
(opts *createOptions)
pkg/cmd/repo/autolink/create/create.go:93
↓ 2 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/repo/create/create.go:264
↓ 2 callers
Method
createSession
(config: SessionConfig)
evals/src/graders/copilot-review.ts:12
↓ 2 callers
Function
createTarGzBuffer
createTarGzBuffer creates a tar.gz archive in memory with the given files.
pkg/cmd/copilot/copilot_test.go:174
↓ 2 callers
Function
createZipBuffer
createZipBuffer creates a zip archive in memory with the given files.
pkg/cmd/copilot/copilot_test.go:197
↓ 2 callers
Function
createZipReader
(t *testing.T, files map[string]string)
pkg/cmd/run/view/logs_test.go:517
↓ 2 callers
Method
credential
credential projects the stored record onto the universal gh.Credential shape, tagging it with the given source (the access token becomes Token). Refre
internal/config/refreshable.go:567
↓ 2 callers
Function
creditsRun
(opts *CreditsOptions)
pkg/cmd/repo/credits/credits.go:115
↓ 2 callers
Function
decodeJSON
(data []byte, v any)
script/ghmock/set.go:434
↓ 2 callers
Function
deduplicateByName
deduplicateByName caps the number of results with the same qualified skill name. Since results are pre-sorted by relevance score, the first occurrence
pkg/cmd/skills/search/search.go:425
↓ 2 callers
Function
defaultConfig
()
pkg/cmd/factory/default_test.go:480
↓ 2 callers
Function
deleteAsset
(httpClient *http.Client, host string, assetURL safeurl.SafeURL)
pkg/cmd/release/delete-asset/delete_asset.go:115
↓ 2 callers
Function
deleteAssetRun
(opts *DeleteAssetOptions)
pkg/cmd/release/delete-asset/delete_asset.go:60
↓ 2 callers
Function
deleteDeployKey
(httpClient *http.Client, repo ghrepo.Interface, id string)
pkg/cmd/repo/deploy-key/delete/http.go:11
↓ 2 callers
Function
deleteGPGKey
(httpClient *http.Client, host, id string)
pkg/cmd/gpg-key/delete/http.go:15
↓ 2 callers
Function
deleteGist
(apiClient *api.Client, hostname string, gistID string)
pkg/cmd/gist/delete/delete.go:145
↓ 2 callers
Function
deleteRelease
(httpClient *http.Client, host string, releaseURL safeurl.SafeURL)
pkg/cmd/release/delete/delete.go:124
↓ 2 callers
Function
deleteRelease
(httpClient *http.Client, host string, releaseURL safeurl.SafeURL)
pkg/cmd/release/create/http.go:208
↓ 2 callers
Method
deleteRemoteBranch
Delete the remote branch if requested and if allowed.
pkg/cmd/pr/merge/merge.go:517
↓ 2 callers
Method
deleteRepository
(name string)
acceptance/fixture_repository_test.go:156
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/cache/delete/delete.go:119
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/release/delete/delete.go:67
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/gpg-key/delete/delete.go:57
↓ 2 callers
Function
deleteRun
(opts *deleteOptions)
pkg/cmd/label/delete.go:63
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/issue/artifact/delete/delete.go:96
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/alias/delete/delete.go:53
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/gist/delete/delete.go:79
↓ 2 callers
Function
deleteRun
(opts *deleteOptions)
pkg/cmd/repo/autolink/delete/delete.go:72
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/repo/delete/delete.go:103
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/repo/deploy-key/delete/delete.go:45
↓ 2 callers
Function
deleteRun
(opts *DeleteOptions)
pkg/cmd/ssh-key/delete/delete.go:58
↓ 2 callers
Function
deleteRun
(ctx context.Context, opts *DeleteOptions)
pkg/cmd/event/subscription/delete/delete.go:60
↓ 2 callers
Function
deleteSSHKey
(httpClient *http.Client, host string, keyID string)
pkg/cmd/ssh-key/delete/http.go:14
↓ 2 callers
Function
deleteTag
(httpClient *http.Client, baseRepo ghrepo.Interface, tagName string)
pkg/cmd/release/delete/delete.go:131
↓ 2 callers
Function
detachCmds
detachCmds returns the commands for a detached checkout. When reusing an existing linked worktree, FETCH_HEAD must be written inside it (it is per-wor
pkg/cmd/pr/checkout/checkout.go:322
↓ 2 callers
Function
detectEmptyFiles
(files map[string]*shared.GistFile)
pkg/cmd/gist/create/create.go:298
↓ 2 callers
Function
detectGitHubRemote
detectGitHubRemote attempts to detect the GitHub owner/repo from git remotes in the given directory. Remotes are tried in the order returned by gitCli
pkg/cmd/skills/publish/publish.go:972
↓ 2 callers
Function
detectWith
(lookup func(string) (string, bool))
internal/agents/detect.go:48
↓ 2 callers
Function
developRun
(opts *DevelopOptions)
pkg/cmd/issue/develop/develop.go:167
↓ 2 callers
Function
diffRun
(opts *DiffOptions)
pkg/cmd/pr/diff/diff.go:127
↓ 2 callers
Function
digestLocalFileArtifact
(filename, digestAlg string)
pkg/cmd/attestation/artifact/file.go:10
↓ 2 callers
Function
directiveCondition
(dirs ast.DirectiveList, variables map[string]any)
script/ghmock/graphqlcheck.go:265
↓ 2 callers
Function
discriminatorValue
discriminatorValue is the value that selects alt, such as "private" for GitHub's private-user schema.
script/ghmock/restscaffold.go:344
↓ 2 callers
Function
displayExtensionVersion
(ext extensions.Extension, version string)
pkg/cmd/extension/command.go:723
↓ 2 callers
Function
displayName
displayName returns a user's login for the terminal. A null user shows as ghost, like a deleted user in gh pr view, so callers use it only when the us
pkg/cmd/issue/artifact/view/view.go:321
↓ 2 callers
Method
displayName
displayName formats the codespace name for the interactive selector prompt.
pkg/cmd/codespace/common.go:194
↓ 2 callers
Function
documentedStatuses
documentedStatuses lists a response's status codes in numeric order, with "default" last.
script/ghmock/schemacmd.go:339
↓ 2 callers
Method
download
download fetches the file to path. It checks the file and writes it to a temporary file first, so a failed download never replaces a good copy.
script/ghmock/schemafiles.go:108
↓ 2 callers
Function
downloadAction
(number int)
pkg/cmd/issue/artifact/download/download.go:246
↓ 2 callers
Function
downloadAsset
(dest *destinationWriter, httpClient *http.Client, assetURL safeurl.SafeURL, fileName string, isArchive bool)
pkg/cmd/release/download/download.go:303
↓ 2 callers
Function
downloadAsset
downloadAsset downloads a single asset to the given file path. assetURL is an absolute URL supplied by the API, so it is requested as given rather th
pkg/cmd/extension/http.go:82
↓ 2 callers
Function
downloadCopilot
downloadCopilot downloads and installs the Copilot CLI to installDir. It returns the path to the installed Copilot binary.
pkg/cmd/copilot/copilot.go:239
↓ 2 callers
Function
downloadRun
(opts *DownloadOptions)
pkg/cmd/issue/artifact/download/download.go:142
↓ 2 callers
Function
edit
(editorCommand, fn, initialValue string, stdin io.Reader, stdout io.Writer, stderr io.Writer, cursor showable,
pkg/surveyext/editor_manual.go:43
↓ 2 callers
Function
editRun
(opts *EditOptions)
pkg/cmd/discussion/edit/edit.go:122
← previous
next →
1,701–1,800 of 7,487, ranked by callers