MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 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:646
↓ 1 callersFunctionbranchFunc
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:319
↓ 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:331
↓ 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
↓ 1 callersFunctioncheckImmutableReleases
checkImmutableReleases checks if immutable releases are enabled for the repo.
pkg/cmd/skills/publish/publish.go:730
↓ 1 callersFunctioncheckInstalledSkillDirs
checkInstalledSkillDirs warns when agent host skill directories exist in the repo and are not gitignored.
pkg/cmd/skills/publish/publish.go:899
↓ 1 callersFunctioncheckInterrupted
()
evals/src/smoke.ts:92
↓ 1 callersFunctioncheckJSONFlags
(cmd *cobra.Command)
pkg/cmdutil/json_flags.go:121
↓ 1 callersFunctioncheckOverwrite
(opts *InstallOptions, skills []discovery.Skill, targetDir string, canPrompt bool)
pkg/cmd/skills/install/install.go:1038
↓ 1 callersFunctioncheckPermission
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 callersMethodcheckScalar
(path string, val any, name string)
script/ghmock/graphqlcheck.go:427
↓ 1 callersFunctioncheckSecuritySettings
checkSecuritySettings checks whether recommended security features are enabled.
pkg/cmd/skills/publish/publish.go:784
↓ 1 callersFunctioncheckTagProtection
checkTagProtection checks whether tag protection rulesets are enabled.
pkg/cmd/skills/publish/publish.go:758
↓ 1 callersFunctioncheckUpstreamProvenance
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 callersMethodcheckValue
(path string, val any, typ *ast.Type, sel ast.SelectionSet, required bool)
script/ghmock/graphqlcheck.go:378
↓ 1 callersFunctioncheckVideoReferenceImages
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 callersFunctioncheckoutBranch
(opts *DevelopOptions, branchRepo ghrepo.Interface, checkoutBranch string, worktreeTarget prShared.WorktreeTar
pkg/cmd/issue/develop/develop.go:353
↓ 1 callersFunctionchildSchema
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 callersMethodcleanup
()
acceptance/fixture_repository_test.go:137
↓ 1 callersFunctionclear
()
pkg/cmd/repo/credits/credits.go:299
↓ 1 callersFunctionclearItemFieldValue
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:426
↓ 1 callersFunctionclearLine
()
internal/prompter/huh_prompter_test.go:105
↓ 1 callersFunctionclearNonblocking
(file *os.File)
internal/safepaths/open_nonblock_unix.go:14
↓ 1 callersMethodclient
()
evals/src/core/executor.ts:180
↓ 1 callersFunctioncloneLabels
(client *http.Client, destination ghrepo.Interface, opts *cloneOptions)
pkg/cmd/label/clone.go:112
↓ 1 callersFunctioncloneRun
(opts *CloneOptions)
pkg/cmd/gist/clone/clone.go:75
↓ 1 callersFunctioncloneRun
(opts *CloneOptions)
pkg/cmd/repo/clone/clone.go:111
↓ 1 callersMethodclose
()
evals/src/core/observer.ts:87
↓ 1 callersFunctioncloseArgs
(config closeConfig)
pkg/cmd/project/close/close.go:112
↓ 1 callersFunctioncloseMatches
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 callersFunctioncloseRun
(opts *CloseOptions)
pkg/cmd/pr/close/close.go:65
↓ 1 callersFunctionclosingBracket
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 callersFunctioncmdGitSSH
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 callersFunctioncmdOutput
(args ...string)
script/build.go:246
↓ 1 callersFunctioncmdRef
(w io.Writer, cmd *cobra.Command, depth int)
pkg/cmd/root/help_reference.go:54
↓ 1 callersFunctioncmdRun
(args []string, stdout, stderr io.Writer)
script/ghmock/run.go:136
← previousnext →2,901–3,000 of 7,487, ranked by callers