Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
↓ 1 callers
Function
ValidDigestAlgorithms
ValidDigestAlgorithms returns a list of supported digest algorithms
pkg/cmd/attestation/artifact/digest/digest.go:33
↓ 1 callers
Function
ValidURL
Maximum length of a URL: 8192 bytes
pkg/cmd/pr/shared/params.go:55
↓ 1 callers
Method
VerbosePrint
(msg string)
pkg/cmd/attestation/io/handler.go:56
↓ 1 callers
Method
View
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/view/http.go:18
↓ 1 callers
Method
ViewerLoginName
ViewerLoginName returns the login name of the viewer.
pkg/cmd/project/shared/queries/queries.go:1230
↓ 1 callers
Function
WithBaseURL
(u string)
pkg/markdown/markdown.go:34
↓ 1 callers
Function
WithPrompter
WithPrompter is a test option to set the prompter for the test client.
pkg/cmd/project/shared/queries/queries.go:35
↓ 1 callers
Function
WithSpecificPorts
WithSpecificPorts allows you to specify a map of ports to TunnelPorts that will be returned by the mock HTTP client. Note that this does not take a co
internal/codespaces/connection/tunnels_api_server_mock.go:37
↓ 1 callers
Method
Write
(p []byte)
script/ghmock/terminal.go:149
↓ 1 callers
Method
Write
(data []byte)
pkg/cmd/pr/create/regexp_writer.go:20
↓ 1 callers
Method
Yellowf
(t string, args ...any)
pkg/iostreams/color.go:114
↓ 1 callers
Function
acceptanceTestGroups
(t *testing.T)
acceptance/acceptance_test.go:654
↓ 1 callers
Function
accessTokenNeedsRefresh
accessTokenNeedsRefresh reports whether the credential's access token has expired or falls within refreshExpiryLeeway of expiring as of now. A credent
internal/config/refreshable.go:370
↓ 1 callers
Function
acquireFLock
acquireFLock attempts to acquire an exclusive file lock to serialize concurrent access. Returns the locked file handle and an unlock function, or an e
internal/skills/lockfile/lockfile.go:155
↓ 1 callers
Function
actionsExplainer
(cs *iostreams.ColorScheme)
pkg/cmd/actions/actions.go:25
↓ 1 callers
Function
addAgentSkillsTopic
addAgentSkillsTopic adds the "agent-skills" topic to the repo, preserving existing topics.
pkg/cmd/skills/publish/publish.go:704
↓ 1 callers
Function
addCacheStatusesHeader
(rt http.RoundTripper, statuses ...int)
api/http_client.go:201
↓ 1 callers
Function
addGitAuthentication
Inject git authentication string for specific git commands.
internal/run/stub.go:144
↓ 1 callers
Function
addItemArgs
(config addItemConfig)
pkg/cmd/project/item-add/item_add.go:117
↓ 1 callers
Method
addJob
(jobID int64, zf *zip.File)
pkg/cmd/run/view/logs.go:187
↓ 1 callers
Function
addLabels
(httpClient *http.Client, id string, repo ghrepo.Interface, labels []string)
pkg/cmd/pr/shared/editable_http.go:152
↓ 1 callers
Function
addParamsMap
(m map[string]any, key string)
pkg/cmd/api/fields.go:122
↓ 1 callers
Function
addParamsSlice
(m map[string]any, prevkey, newkey string)
pkg/cmd/api/fields.go:135
↓ 1 callers
Function
addQueryParam
(query url.Values, key string, value any)
pkg/cmd/api/http.go:131
↓ 1 callers
Function
addRow
(tp *tableprinter.TablePrinter, io *iostreams.IOStreams, o check)
pkg/cmd/pr/checks/output.go:11
↓ 1 callers
Function
addSegment
(inrune, segment []rune)
pkg/search/query.go:368
↓ 1 callers
Method
addStep
(jobID int64, stepNumber int, zf *zip.File)
pkg/cmd/run/view/logs.go:182
↓ 1 callers
Function
addedPaths
addedPaths lists where fields were added. Indexes become *, so a field added to every item of a list is listed once.
script/ghmock/scaffold.go:322
↓ 1 callers
Function
agentSessionWebURL
(repo ghrepo.Interface, j *capi.Job)
pkg/cmd/agent-task/create/create.go:197
↓ 1 callers
Function
aggregateChecks
(checkContexts []api.CheckContext, requiredChecks bool)
pkg/cmd/pr/checks/aggregate.go:36
↓ 1 callers
Function
allowsAdminOverride
(status string)
pkg/cmd/pr/merge/merge.go:798
↓ 1 callers
Function
api
(t: TestContext, expected: Expected[])
evals/src/harness.test.ts:63
↓ 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:645
↓ 1 callers
Function
branchFunc
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:333
↓ 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:358
↓ 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
← previous
next →
2,901–3,000 of 7,572, ranked by callers