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
apiClose
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue, reason string, duplicateIssueID string)
pkg/cmd/issue/close/close.go:174
↓ 1 callers
Function
apiCreateDefaults
(c *apiClientMock)
pkg/cmd/codespace/create_test.go:833
↓ 1 callers
Function
apiDelete
(httpClient *http.Client, repo ghrepo.Interface, issueID string)
pkg/cmd/issue/delete/delete.go:119
↓ 1 callers
Function
apiReopen
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/reopen/reopen.go:118
↓ 1 callers
Function
appendAgentHostID
(agentHostIDs []string, agentHostID string)
pkg/cmd/skills/list/list.go:289
↓ 1 callers
Function
appendStr
(arr [][]string, a, b string)
pkg/cmd/attestation/verification/policy.go:102
↓ 1 callers
Function
appendUnreferenced
appendUnreferenced adds a paragraph for every attachment the author never referenced, in the order they were attached. Each one renders itself, since
internal/attachments/attach.go:243
↓ 1 callers
Method
applies
applies reports whether a fragment on cond applies to an object whose __typename is typename. Without a __typename, every fragment applies.
script/ghmock/trim.go:142
↓ 1 callers
Method
applies
(cond string, concrete *ast.Definition)
script/ghmock/gqlscaffold.go:339
↓ 1 callers
Function
applyEdits
applyEdits rewrites the markdown back to front, so that an earlier edit cannot shift a later one, and reports which arguments were actually written.
internal/attachments/references.go:768
↓ 1 callers
Method
applyFilter
()
pkg/cmd/extension/browse/model.go:408
↓ 1 callers
Function
archString
()
pkg/cmd/copilot/copilot_test.go:504
↓ 1 callers
Function
archiveItemArgs
(config archiveItemConfig)
pkg/cmd/project/item-archive/item_archive.go:130
↓ 1 callers
Function
archiveRepo
(client *http.Client, repo *api.Repository)
pkg/cmd/repo/archive/http.go:10
↓ 1 callers
Function
artifactFileName
artifactFileName names an artifact's file <number>-<name>, plus .md, .url for a link, or .html for an HTML document, unless the name already ends with
pkg/cmd/issue/artifact/download/download.go:279
↓ 1 callers
Function
artifactsPage
artifactsPage responds with a page holding an artifact for each number.
pkg/cmd/issue/artifact/client/client_test.go:846
↓ 1 callers
Function
asSearchError
asSearchError converts an api.HTTPError into search's own error type, which formats invalid queries differently from the rest of the CLI.
pkg/search/searcher.go:322
↓ 1 callers
Function
askedFields
askedFields lists the fields that GraphQL requests with this name asked for, or nil if there were none whose query could be read.
script/ghmock/report.go:378
↓ 1 callers
Function
assertLineFound
(scanner *bufio.Scanner, expectedLine string)
internal/docs/man_test.go:290
↓ 1 callers
Function
assertPipesAreInCodeBlocks
If not in a code block or a code span, kramdown treats pipes ("|") as table column separators, even if there's no table header, or left/right table ro
pkg/cmd/root/help_test.go:104
↓ 1 callers
Function
assetFromArg
assetFromArg turns one --attach argument into a UserAsset.
internal/attachments/flags.go:86
↓ 1 callers
Function
attach
attach uploads the --attach files, each once, and points every Markdown document at the files it references. Artifacts whose type doesn't support atta
pkg/cmd/issue/artifact/create/create.go:444
↓ 1 callers
Method
attach
attach points the document at the URLs of its attachments that uploaded, given urls, which holds an empty string for each file that did not. The error
internal/attachments/attach.go:213
↓ 1 callers
Function
attachmentArgForDestination
attachmentArgForDestination is where the two halves of this package meet: it takes a markdown destination and answers which attached file, if any, it
internal/attachments/references.go:366
↓ 1 callers
Function
attachmentArgsByPath
attachmentArgsByPath indexes the attached files by absolute path, ready for attachmentArgForDestination to look one up. An argument with no URL is ind
internal/attachments/references.go:340
↓ 1 callers
Function
authHelp
()
pkg/cmd/root/help.go:225
↓ 1 callers
Function
automaticSSHKeyPair
automaticSSHKeyPair returns the paths to the automatic key pair files, if they both exist
pkg/cmd/codespace/ssh.go:383
↓ 1 callers
Function
awaitError
(ctx context.Context, errc <-chan error)
internal/codespaces/connection/tunnels_api_server_mock.go:429
↓ 1 callers
Function
baseRepoFromOpts
(t *testing.T, v any)
pkg/cmd/issue/argparsetest/argparsetest.go:121
↓ 1 callers
Function
blockedNames
blockedNames lists, once each and in order, requests ghmock refused because they were for another host.
script/ghmock/report.go:135
↓ 1 callers
Function
blockedReason
blockedReason translates various MergeStateStatus GraphQL values into human-readable reason
pkg/cmd/pr/merge/merge.go:779
↓ 1 callers
Function
boolToStatus
(status bool)
pkg/cmd/repo/edit/edit.go:646
↓ 1 callers
Function
branchFunc
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:319
↓ 1 callers
Function
buildCertificateIdentityOption
(c verification.EnforcementCriteria)
pkg/cmd/attestation/verify/policy.go:146
↓ 1 callers
Function
buildClearItem
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:400
↓ 1 callers
Function
buildEditDraftIssue
(config editItemConfig, currentDraftIssue *queries.DraftIssue)
pkg/cmd/project/item-edit/item_edit.go:342
↓ 1 callers
Function
buildEntry
(httpClient *http.Client, opts buildEntryOptions)
pkg/cmd/auth/status/status.go:459
↓ 1 callers
Method
buildRequestURL
(params FetchParams)
pkg/cmd/attestation/api/client.go:104
↓ 1 callers
Function
buildRevision
buildRevision is the commit ghmock was built from, if Go recorded it.
script/ghmock/export.go:221
↓ 1 callers
Function
buildScanTargets
(opts *ListOptions)
pkg/cmd/skills/list/list.go:209
↓ 1 callers
Function
buildSigstoreVerifyPolicy
(c verification.EnforcementCriteria, a artifact.DigestedArtifact)
pkg/cmd/attestation/verify/policy.go:170
↓ 1 callers
Function
buildURL
TODO: support non-github.com hostnames
pkg/cmd/project/list/list.go:114
↓ 1 callers
Function
buildUpdateItem
(config editItemConfig, date time.Time)
pkg/cmd/project/item-edit/item_edit.go:366
↓ 1 callers
Function
buildVerificationPolicy
buildVerificationPolicy constructs a verification policy for GitHub releases
pkg/cmd/release/shared/attestation.go:102
↓ 1 callers
Function
builtWithTags
builtWithTags reports whether the binary at exe was built with the given build tags, so switching tags (for example between `make debug` and `make`) f
script/build.go:120
↓ 1 callers
Function
call
(id: string, at: number, ...args: string[])
evals/src/graders.test.ts:449
↓ 1 callers
Function
call
(args: string[])
evals/src/commands.test.ts:6
↓ 1 callers
Method
callRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:116
↓ 1 callers
Method
callRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:208
↓ 1 callers
Function
callRequestReceived
Call twirp.ServerHooks.RequestReceived if the hook is available
internal/barista/observability/telemetry.twirp.go:1032
↓ 1 callers
Method
canMerge
Check if the current state of the pull request allows for merging
pkg/cmd/pr/merge/merge.go:242
↓ 1 callers
Function
cancelWorkflowRun
(client *api.Client, repo ghrepo.Interface, runID string, force bool)
pkg/cmd/run/cancel/cancel.go:143
↓ 1 callers
Function
candidatePaths
candidatePaths returns the ways a destination could name a file on disk. goldmark reports the destination alone, without the angle brackets or the whi
internal/attachments/references.go:425
↓ 1 callers
Function
captureSnapshot
( github: EventsGitHub, subscriber: EventsGitHub, fixture: Pick<Fixture, "repo" | "baseSha" | "pr" | "seeded
evals/src/suites/events/suite.ts:69
↓ 1 callers
Function
changelogForRange
(client *git.Client, refRange string)
pkg/cmd/release/create/create.go:622
↓ 1 callers
Method
check
check records what the schema check found for a request and its response.
script/ghmock/server.go:68
↓ 1 callers
Method
check
check compares a response with GitHub's description of it. It returns the problems it found, or a note saying why it couldn't check.
script/ghmock/restcheck.go:162
↓ 1 callers
Function
checkAltStaysInside
checkAltStaysInside renders the image this asset will produce and parses it back, so alt text that escapeAlt failed to neutralize is refused before th
internal/attachments/userasset.go:209
↓ 1 callers
Function
checkAndUpdateOldKeyPair
checkAndUpdateOldKeyPair handles backward compatibility with the old keypair names. If the old public and private keys both exist they are renamed to
pkg/cmd/codespace/ssh.go:426
↓ 1 callers
Function
checkArchiveTypeOption
(opts *DownloadOptions)
pkg/cmd/release/download/download.go:125
↓ 1 callers
Function
checkBeforeSave
checkBeforeSave checks a changed response against GitHub's schema before it is saved. It returns a line saying what the check did, or an error listing
script/ghmock/set.go:219
↓ 1 callers
Function
checkBuildsDir
checkBuildsDir checks that a binary is inside buildsDir, after following symlinks, so a link can't point outside it.
script/ghmock/run.go:459
↓ 1 callers
Method
checkErrors
(v any)
script/ghmock/graphqlcheck.go:196
↓ 1 callers
Method
checkForPendingOperation
(ctx context.Context, codespaceName string)
internal/codespaces/api/api.go:1215
↓ 1 callers
Function
checkForUnauthorizedOrDeniedErr
(err transport.Error)
pkg/cmd/attestation/artifact/oci/client.go:27
↓ 1 callers
Function
checkForUpdate
(ctx context.Context, f *cmdutil.Factory, currentVersion string)
internal/ghcmd/cmd.go:331
↓ 1 callers
Function
checkFormatFlags
(cmd *cobra.Command)
pkg/cmdutil/json_flags.go:174
↓ 1 callers
Function
checkGraphQLResponse
checkGraphQLResponse compares a response body with the query gh sent. Paths in problems use the same dotted form as ghmock set --at.
script/ghmock/graphqlcheck.go:134
↓ 1 callers
Function
checkImmutableReleases
checkImmutableReleases checks if immutable releases are enabled for the repo.
pkg/cmd/skills/publish/publish.go:730
↓ 1 callers
Function
checkInstalledSkillDirs
checkInstalledSkillDirs warns when agent host skill directories exist in the repo and are not gitignored.
pkg/cmd/skills/publish/publish.go:899
↓ 1 callers
Function
checkInterrupted
()
evals/src/smoke.ts:92
↓ 1 callers
Function
checkJSONFlags
(cmd *cobra.Command)
pkg/cmdutil/json_flags.go:121
↓ 1 callers
Function
checkOverwrite
(opts *InstallOptions, skills []discovery.Skill, targetDir string, canPrompt bool)
pkg/cmd/skills/install/install.go:1038
↓ 1 callers
Function
checkPermission
checkPermission rejects a permission that cannot upload. It is an allowlist, so an unlisted value is rejected rather than sent.
internal/attachments/client.go:73
↓ 1 callers
Method
checkScalar
(path string, val any, name string)
script/ghmock/graphqlcheck.go:427
↓ 1 callers
Function
checkSecuritySettings
checkSecuritySettings checks whether recommended security features are enabled.
pkg/cmd/skills/publish/publish.go:784
↓ 1 callers
Function
checkTagProtection
checkTagProtection checks whether tag protection rulesets are enabled.
pkg/cmd/skills/publish/publish.go:758
↓ 1 callers
Function
checkUpstreamProvenance
checkUpstreamProvenance fetches the skill's SKILL.md via the contents API to check if it contains github-repo metadata pointing to a different reposit
pkg/cmd/skills/install/install.go:1292
↓ 1 callers
Method
checkValue
(path string, val any, typ *ast.Type, sel ast.SelectionSet, required bool)
script/ghmock/graphqlcheck.go:378
↓ 1 callers
Function
checkVideoReferenceImages
checkVideoReferenceImages returns an error naming every video the markdown embeds through a reference definition. Rewriting one would produce an image
internal/attachments/references.go:201
↓ 1 callers
Function
checkoutBranch
(opts *DevelopOptions, branchRepo ghrepo.Interface, checkoutBranch string, worktreeTarget prShared.WorktreeTar
pkg/cmd/issue/develop/develop.go:353
↓ 1 callers
Function
childSchema
childSchema finds the schema for one step into a value: an array index or an object key. It looks through allOf, oneOf and anyOf.
script/ghmock/schemacmd.go:401
↓ 1 callers
Method
cleanup
()
acceptance/fixture_repository_test.go:137
↓ 1 callers
Function
clear
()
pkg/cmd/repo/credits/credits.go:299
↓ 1 callers
Function
clearItemFieldValue
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:426
↓ 1 callers
Function
clearLine
()
internal/prompter/huh_prompter_test.go:105
↓ 1 callers
Function
clearNonblocking
(file *os.File)
internal/safepaths/open_nonblock_unix.go:14
↓ 1 callers
Method
client
()
evals/src/core/executor.ts:180
↓ 1 callers
Function
cloneLabels
(client *http.Client, destination ghrepo.Interface, opts *cloneOptions)
pkg/cmd/label/clone.go:112
↓ 1 callers
Function
cloneRun
(opts *CloneOptions)
pkg/cmd/gist/clone/clone.go:75
↓ 1 callers
Function
cloneRun
(opts *CloneOptions)
pkg/cmd/repo/clone/clone.go:111
↓ 1 callers
Method
close
()
evals/src/core/observer.ts:87
↓ 1 callers
Function
closeArgs
(config closeConfig)
pkg/cmd/project/close/close.go:112
↓ 1 callers
Function
closeMatches
closeMatches finds candidates that differ from name only in case, by a typo or two, or that contain it.
script/ghmock/schemacmd.go:630
↓ 1 callers
Function
closeRun
(opts *CloseOptions)
pkg/cmd/pr/close/close.go:65
↓ 1 callers
Function
closingBracket
closingBracket finds the "]" that ends a label opened at open, counting the brackets of anything nested inside it and ignoring those in literal.
internal/attachments/references.go:552
↓ 1 callers
Function
cmdGitSSH
cmdGitSSH replaces the SSH transport, not the Git protocol. Git's requested upload/receive-pack runs against the corresponding local bare repository.
script/ghmock/gittransport.go:162
↓ 1 callers
Function
cmdOutput
(args ...string)
script/build.go:246
↓ 1 callers
Function
cmdRef
(w io.Writer, cmd *cobra.Command, depth int)
pkg/cmd/root/help_reference.go:54
↓ 1 callers
Function
cmdRun
(args []string, stdout, stderr io.Writer)
script/ghmock/run.go:136
← previous
next →
2,901–3,000 of 7,487, ranked by callers