MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionValidDigestAlgorithms
ValidDigestAlgorithms returns a list of supported digest algorithms
pkg/cmd/attestation/artifact/digest/digest.go:33
↓ 1 callersFunctionValidURL
Maximum length of a URL: 8192 bytes
pkg/cmd/pr/shared/params.go:55
↓ 1 callersMethodVerbosePrint
(msg string)
pkg/cmd/attestation/io/handler.go:56
↓ 1 callersMethodView
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/view/http.go:18
↓ 1 callersMethodViewerLoginName
ViewerLoginName returns the login name of the viewer.
pkg/cmd/project/shared/queries/queries.go:1230
↓ 1 callersFunctionWithBaseURL
(u string)
pkg/markdown/markdown.go:34
↓ 1 callersFunctionWithPrompter
WithPrompter is a test option to set the prompter for the test client.
pkg/cmd/project/shared/queries/queries.go:35
↓ 1 callersFunctionWithSpecificPorts
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 callersMethodWrite
(p []byte)
script/ghmock/terminal.go:149
↓ 1 callersMethodWrite
(data []byte)
pkg/cmd/pr/create/regexp_writer.go:20
↓ 1 callersMethodYellowf
(t string, args ...any)
pkg/iostreams/color.go:114
↓ 1 callersFunctionacceptanceTestGroups
(t *testing.T)
acceptance/acceptance_test.go:654
↓ 1 callersFunctionaccessTokenNeedsRefresh
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 callersFunctionacquireFLock
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 callersFunctionactionsExplainer
(cs *iostreams.ColorScheme)
pkg/cmd/actions/actions.go:25
↓ 1 callersFunctionaddAgentSkillsTopic
addAgentSkillsTopic adds the "agent-skills" topic to the repo, preserving existing topics.
pkg/cmd/skills/publish/publish.go:704
↓ 1 callersFunctionaddCacheStatusesHeader
(rt http.RoundTripper, statuses ...int)
api/http_client.go:201
↓ 1 callersFunctionaddGitAuthentication
Inject git authentication string for specific git commands.
internal/run/stub.go:144
↓ 1 callersFunctionaddItemArgs
(config addItemConfig)
pkg/cmd/project/item-add/item_add.go:117
↓ 1 callersMethodaddJob
(jobID int64, zf *zip.File)
pkg/cmd/run/view/logs.go:187
↓ 1 callersFunctionaddLabels
(httpClient *http.Client, id string, repo ghrepo.Interface, labels []string)
pkg/cmd/pr/shared/editable_http.go:152
↓ 1 callersFunctionaddParamsMap
(m map[string]any, key string)
pkg/cmd/api/fields.go:122
↓ 1 callersFunctionaddParamsSlice
(m map[string]any, prevkey, newkey string)
pkg/cmd/api/fields.go:135
↓ 1 callersFunctionaddQueryParam
(query url.Values, key string, value any)
pkg/cmd/api/http.go:131
↓ 1 callersFunctionaddRow
(tp *tableprinter.TablePrinter, io *iostreams.IOStreams, o check)
pkg/cmd/pr/checks/output.go:11
↓ 1 callersFunctionaddSegment
(inrune, segment []rune)
pkg/search/query.go:368
↓ 1 callersMethodaddStep
(jobID int64, stepNumber int, zf *zip.File)
pkg/cmd/run/view/logs.go:182
↓ 1 callersFunctionaddedPaths
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 callersFunctionagentSessionWebURL
(repo ghrepo.Interface, j *capi.Job)
pkg/cmd/agent-task/create/create.go:197
↓ 1 callersFunctionaggregateChecks
(checkContexts []api.CheckContext, requiredChecks bool)
pkg/cmd/pr/checks/aggregate.go:36
↓ 1 callersFunctionallowsAdminOverride
(status string)
pkg/cmd/pr/merge/merge.go:798
↓ 1 callersFunctionapi
(t: TestContext, expected: Expected[])
evals/src/harness.test.ts:63
↓ 1 callersFunctionapiClose
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue, reason string, duplicateIssueID string)
pkg/cmd/issue/close/close.go:174
↓ 1 callersFunctionapiCreateDefaults
(c *apiClientMock)
pkg/cmd/codespace/create_test.go:833
↓ 1 callersFunctionapiDelete
(httpClient *http.Client, repo ghrepo.Interface, issueID string)
pkg/cmd/issue/delete/delete.go:119
↓ 1 callersFunctionapiReopen
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/reopen/reopen.go:118
↓ 1 callersFunctionappendAgentHostID
(agentHostIDs []string, agentHostID string)
pkg/cmd/skills/list/list.go:289
↓ 1 callersFunctionappendStr
(arr [][]string, a, b string)
pkg/cmd/attestation/verification/policy.go:102
↓ 1 callersFunctionappendUnreferenced
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 callersMethodapplies
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 callersMethodapplies
(cond string, concrete *ast.Definition)
script/ghmock/gqlscaffold.go:339
↓ 1 callersFunctionapplyEdits
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 callersMethodapplyFilter
()
pkg/cmd/extension/browse/model.go:408
↓ 1 callersFunctionarchString
()
pkg/cmd/copilot/copilot_test.go:504
↓ 1 callersFunctionarchiveItemArgs
(config archiveItemConfig)
pkg/cmd/project/item-archive/item_archive.go:130
↓ 1 callersFunctionarchiveRepo
(client *http.Client, repo *api.Repository)
pkg/cmd/repo/archive/http.go:10
↓ 1 callersFunctionartifactFileName
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 callersFunctionartifactsPage
artifactsPage responds with a page holding an artifact for each number.
pkg/cmd/issue/artifact/client/client_test.go:846
↓ 1 callersFunctionasSearchError
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 callersFunctionaskedFields
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 callersFunctionassertLineFound
(scanner *bufio.Scanner, expectedLine string)
internal/docs/man_test.go:290
↓ 1 callersFunctionassertPipesAreInCodeBlocks
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 callersFunctionassetFromArg
assetFromArg turns one --attach argument into a UserAsset.
internal/attachments/flags.go:86
↓ 1 callersFunctionattach
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 callersMethodattach
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 callersFunctionattachmentArgForDestination
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 callersFunctionattachmentArgsByPath
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 callersFunctionauthHelp
()
pkg/cmd/root/help.go:225
↓ 1 callersFunctionautomaticSSHKeyPair
automaticSSHKeyPair returns the paths to the automatic key pair files, if they both exist
pkg/cmd/codespace/ssh.go:383
↓ 1 callersFunctionawaitError
(ctx context.Context, errc <-chan error)
internal/codespaces/connection/tunnels_api_server_mock.go:429
↓ 1 callersFunctionbaseRepoFromOpts
(t *testing.T, v any)
pkg/cmd/issue/argparsetest/argparsetest.go:121
↓ 1 callersFunctionblockedNames
blockedNames lists, once each and in order, requests ghmock refused because they were for another host.
script/ghmock/report.go:135
↓ 1 callersFunctionblockedReason
blockedReason translates various MergeStateStatus GraphQL values into human-readable reason
pkg/cmd/pr/merge/merge.go:779
↓ 1 callersFunctionboolToStatus
(status bool)
pkg/cmd/repo/edit/edit.go:645
↓ 1 callersFunctionbranchFunc
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:333
↓ 1 callersFunctionbuildCertificateIdentityOption
(c verification.EnforcementCriteria)
pkg/cmd/attestation/verify/policy.go:146
↓ 1 callersFunctionbuildClearItem
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:400
↓ 1 callersFunctionbuildEditDraftIssue
(config editItemConfig, currentDraftIssue *queries.DraftIssue)
pkg/cmd/project/item-edit/item_edit.go:342
↓ 1 callersFunctionbuildEntry
(httpClient *http.Client, opts buildEntryOptions)
pkg/cmd/auth/status/status.go:459
↓ 1 callersMethodbuildRequestURL
(params FetchParams)
pkg/cmd/attestation/api/client.go:104
↓ 1 callersFunctionbuildRevision
buildRevision is the commit ghmock was built from, if Go recorded it.
script/ghmock/export.go:221
↓ 1 callersFunctionbuildScanTargets
(opts *ListOptions)
pkg/cmd/skills/list/list.go:209
↓ 1 callersFunctionbuildSigstoreVerifyPolicy
(c verification.EnforcementCriteria, a artifact.DigestedArtifact)
pkg/cmd/attestation/verify/policy.go:170
↓ 1 callersFunctionbuildURL
TODO: support non-github.com hostnames
pkg/cmd/project/list/list.go:114
↓ 1 callersFunctionbuildUpdateItem
(config editItemConfig, date time.Time)
pkg/cmd/project/item-edit/item_edit.go:366
↓ 1 callersFunctionbuildVerificationPolicy
buildVerificationPolicy constructs a verification policy for GitHub releases
pkg/cmd/release/shared/attestation.go:102
↓ 1 callersFunctionbuiltWithTags
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 callersFunctioncall
(id: string, at: number, ...args: string[])
evals/src/graders.test.ts:449
↓ 1 callersFunctioncall
(args: string[])
evals/src/commands.test.ts:6
↓ 1 callersMethodcallRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:116
↓ 1 callersMethodcallRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:208
↓ 1 callersFunctioncallRequestReceived
Call twirp.ServerHooks.RequestReceived if the hook is available
internal/barista/observability/telemetry.twirp.go:1032
↓ 1 callersMethodcanMerge
Check if the current state of the pull request allows for merging
pkg/cmd/pr/merge/merge.go:242
↓ 1 callersFunctioncancelWorkflowRun
(client *api.Client, repo ghrepo.Interface, runID string, force bool)
pkg/cmd/run/cancel/cancel.go:143
↓ 1 callersFunctioncandidatePaths
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 callersFunctioncaptureSnapshot
( github: EventsGitHub, subscriber: EventsGitHub, fixture: Pick<Fixture, "repo" | "baseSha" | "pr" | "seeded
evals/src/suites/events/suite.ts:69
↓ 1 callersFunctionchangelogForRange
(client *git.Client, refRange string)
pkg/cmd/release/create/create.go:622
↓ 1 callersMethodcheck
check records what the schema check found for a request and its response.
script/ghmock/server.go:68
↓ 1 callersMethodcheck
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 callersFunctioncheckAltStaysInside
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 callersFunctioncheckAndUpdateOldKeyPair
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 callersFunctioncheckArchiveTypeOption
(opts *DownloadOptions)
pkg/cmd/release/download/download.go:125
↓ 1 callersFunctioncheckBeforeSave
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 callersFunctioncheckBuildsDir
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 callersMethodcheckErrors
(v any)
script/ghmock/graphqlcheck.go:196
↓ 1 callersMethodcheckForPendingOperation
(ctx context.Context, codespaceName string)
internal/codespaces/api/api.go:1215
↓ 1 callersFunctioncheckForUnauthorizedOrDeniedErr
(err transport.Error)
pkg/cmd/attestation/artifact/oci/client.go:27
↓ 1 callersFunctioncheckForUpdate
(ctx context.Context, f *cmdutil.Factory, currentVersion string)
internal/ghcmd/cmd.go:358
↓ 1 callersFunctioncheckFormatFlags
(cmd *cobra.Command)
pkg/cmdutil/json_flags.go:174
↓ 1 callersFunctioncheckGraphQLResponse
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
← previousnext →2,901–3,000 of 7,572, ranked by callers