MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 3 callersFunctionstubPushDefault
(pushDefault git.PushDefault, err error)
pkg/cmd/pr/shared/finder_test.go:946
↓ 3 callersFunctionstubPushRevision
(parsedPushRevision git.RemoteTrackingRef, err error)
pkg/cmd/pr/shared/finder_test.go:958
↓ 3 callersFunctionstubRemotePushDefault
(remotePushDefault string, err error)
pkg/cmd/pr/shared/finder_test.go:952
↓ 3 callersFunctionswapDirectoryContents
swapDirectoryContents replaces the entries inside dest with the entries inside src, preserving dest's inode. It first moves every existing entry into
pkg/cmd/skills/update/update.go:523
↓ 3 callersFunctiontab
Step helpers — each returns a single interactionStep. These send raw terminal escape sequences that bubbletea's input parser understands. Common ANSI
internal/prompter/huh_prompter_test.go:65
↓ 3 callersFunctiontestChecker
testChecker returns a checker that uses the schemas in testdata.
script/ghmock/run_test.go:76
↓ 3 callersFunctiontestingPortsApp
()
pkg/cmd/codespace/ports_test.go:203
↓ 3 callersFunctiontextField
textField builds a ProjectV2Field (TEXT) fixture with the given id and name.
pkg/cmd/project/shared/queries/resolve_fields_test.go:12
↓ 3 callersMethodupgradeExtensions
(exts []*Extension, force bool)
pkg/cmd/extension/manager.go:488
↓ 3 callersMethodvalidate
Throws an `InfrastructureError` when shared state, not the agent, makes the run ungradable.
evals/src/core/suite.ts:61
↓ 3 callersFunctionvalidateFixtureRepositoryDeclaration
(file string)
acceptance/user_capability_test.go:84
↓ 3 callersFunctionvalidateName
validateName checks that a request name looks like "graphql Operation" or "METHOD /path".
script/ghmock/set.go:135
↓ 3 callersFunctionwait
(id: string, at: number)
evals/src/review-loop.test.ts:52
↓ 3 callersFunctionwaitForWorkflow
(list func() ([]string, error), expected string, sleep func(time.Duration))
acceptance/acceptance_test.go:166
↓ 3 callersFunctionwatchRun
(opts *WatchOptions)
pkg/cmd/run/watch/watch.go:108
↓ 3 callersFunctionwriteDescription
(w io.Writer, text string)
script/ghmock/schemacmd.go:602
↓ 3 callersFunctionwriteError
writeError writes Twirp errors in the response and triggers hooks.
internal/barista/observability/telemetry.twirp.go:596
↓ 3 callersFunctionwriteFile
(p string, contents []byte, mode os.FileMode)
pkg/cmd/extension/manager.go:728
↓ 3 callersFunctionwriteGhWrapper
(path: string, binary: string, socket: string)
evals/src/core/observer.ts:92
↓ 3 callersFunctionwriteLocalTestSkill
writeLocalTestSkill creates a skill directory with a SKILL.md file.
pkg/cmd/skills/install/install_test.go:281
↓ 3 callersFunctionwriteSkill
writeSkill creates skills/<name>/SKILL.md with the given content.
pkg/cmd/skills/publish/publish_test.go:1596
↓ 2 callersMethodAccept
()
script/ghmock/tls.go:151
↓ 2 callersMethodAccessibleColorsEnabled
()
pkg/iostreams/iostreams.go:471
↓ 2 callersMethodAccessiblePrompter
AccessiblePrompter returns the configured accessible_prompter setting, optionally scoped by host.
internal/gh/gh.go:46
↓ 2 callersMethodActionsFeatures
()
internal/featuredetection/feature_detection.go:26
↓ 2 callersFunctionAddAuthTokenHeader
AddAuthTokenHeader adds an authentication token header for the host specified by the request, using the primitive token source. It is the backward-com
api/http_client.go:234
↓ 2 callersFunctionAddJSONFlagsWithoutShorthand
(cmd *cobra.Command, exportTarget *Exporter, fields []string)
pkg/cmdutil/json_flags.go:35
↓ 2 callersMethodAlgorithm
Algorithm returns the artifact's algorithm
pkg/cmd/attestation/artifact/artifact.go:82
↓ 2 callersMethodAreFlagsValid
AreFlagsValid checks that the provided flag combination is valid and returns an error otherwise
pkg/cmd/attestation/verify/options.go:64
↓ 2 callersMethodAreFlagsValid
()
pkg/cmd/attestation/download/options.go:30
↓ 2 callersFunctionAssetsFromArgs
(args []string)
pkg/cmd/release/shared/upload.go:36
↓ 2 callersMethodAuthToken
()
pkg/cmd/auth/shared/prompt.go:7
↓ 2 callersFunctionAuthTokenRefreshable
AuthTokenRefreshable reports whether the token is stored by gh and can be renewed with `gh auth refresh`. TODO: this matches a token prefix itself. I
pkg/cmd/auth/shared/writeable.go:14
↓ 2 callersMethodBaseRepo
()
pkg/cmd/pr/shared/find_refs_resolution.go:112
↓ 2 callersMethodBody
Body is the body of the project item.
pkg/cmd/project/shared/queries/queries.go:622
↓ 2 callersMethodBrowse
(string)
pkg/cmd/extension/browse/browse.go:39
↓ 2 callersMethodBrowseURL
()
pkg/cmd/codespace/ports.go:134
↓ 2 callersFunctionBuildMockResult
(b *bundle.Bundle, buildConfigURI, buildSignerURI, sourceRepoOwnerURI, sourceRepoURI, issuer string)
pkg/cmd/attestation/verification/mock_verifier.go:68
↓ 2 callersFunctionBuildSigstoreJsMockResult
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:91
↓ 2 callersMethodCachedClient
(ttl time.Duration)
pkg/cmd/status/status.go:206
↓ 2 callersFunctionCalculateDigestWithAlgorithm
(r io.Reader, alg string)
pkg/cmd/attestation/artifact/digest/digest.go:37
↓ 2 callersFunctionCapiClientFunc
(f *cmdutil.Factory)
pkg/cmd/agent-task/shared/capi.go:21
↓ 2 callersMethodCheck
Check returns an error if a file already exists at destination
pkg/cmd/release/download/download.go:416
↓ 2 callersFunctionCheckAuth
(cfg gh.Config)
pkg/cmdutil/auth_check.go:29
↓ 2 callersFunctionCheckForExtensionUpdate
CheckForExtensionUpdate checks whether an update exists for a specific extension based on extension type and recency of last check within past 24 hour
internal/update/update.go:52
↓ 2 callersFunctionCheckForUpdate
CheckForUpdate checks whether an update exists for the GitHub CLI based on recency of last check within past 24 hours.
internal/update/update.go:93
↓ 2 callersFunctionCheckUploadTarget
CheckUploadTarget is CheckIssue for a command that uploads files with --attach. It refuses a pull request the same way, and its one lookup also return
pkg/cmd/issue/artifact/shared/shared.go:246
↓ 2 callersMethodClose
()
pkg/cmd/release/download/download.go:401
↓ 2 callersMethodClose
()
internal/codespaces/portforwarder/port_forwarder.go:52
↓ 2 callersFunctionColorForProjectState
(project queries.Project)
pkg/cmd/project/shared/format/display.go:14
↓ 2 callersMethodColorLabels
()
pkg/iostreams/iostreams.go:122
↓ 2 callersFunctionCommentablePreRun
(cmd *cobra.Command, opts *CommentableOptions, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/pr/shared/commentable.go:70
↓ 2 callersFunctionCompleteEventTypes
CompleteEventTypes returns the known event types that complete the last comma-separated item of toComplete, each prefixed with the preceding items and
pkg/cmd/event/shared/completion.go:20
↓ 2 callersFunctionConcurrentUpload
(httpClient *http.Client, hostname string, uploadURL safeurl.SafeURL, numWorkers int, assets []*AssetForUpload
pkg/cmd/release/shared/upload.go:111
↓ 2 callersFunctionConfigDir
()
internal/config/config.go:1048
↓ 2 callersMethodConfigureOurs
ConfigureOurs sets up the git credential helper chain to use the GitHub CLI credential helper for git repositories including gists.
pkg/cmd/auth/shared/gitcredentials/helper_config.go:22
↓ 2 callersMethodConfirm
(message string)
pkg/cmd/codespace/delete.go:36
↓ 2 callersMethodConfirm
Confirm prompts the user to confirm an action.
internal/prompter/prompter.go:38
↓ 2 callersMethodConfirmCalls
ConfirmCalls gets all the calls that were made to Confirm. Check the length with: len(mockedPrompter.ConfirmCalls())
internal/prompter/prompter_mock.go:221
↓ 2 callersMethodConnect
Connect connects the client to the tunnel.
internal/codespaces/connection/connection.go:89
↓ 2 callersFunctionContent
Content returns the full license report, including the main report and all third-party licenses.
internal/licenses/licenses.go:13
↓ 2 callersMethodCopyFile
CopyFile copies content into a file beneath the root. Creation permissions follow [Root.Create].
internal/safepaths/root.go:253
↓ 2 callersMethodCreate
Create creates a new file beneath the root. Creation is exclusive unless an existing regular file is safely opened and truncated for replacement. file
internal/safepaths/root.go:167
↓ 2 callersMethodCreateCodespace
(ctx context.Context, params *api.CreateCodespaceParams)
pkg/cmd/codespace/common.go:77
↓ 2 callersMethodCreateJob
CreateJob queues a new job using the v1 Jobs API. It may or may not return Pull Request information. If Pull Request information is required following
pkg/cmd/agent-task/capi/job.go:62
↓ 2 callersFunctionCreateRepoTransformToV4
(apiClient *Client, hostname string, method string, path safeurl.SafeURL, body io.Reader)
api/queries_repo.go:1619
↓ 2 callersMethodCreated
()
pkg/cmd/pr/shared/comments.go:20
↓ 2 callersMethodCurrentUsername
()
pkg/cmd/status/status.go:214
↓ 2 callersMethodCurrentVersion
()
pkg/cmd/extension/extension.go:88
↓ 2 callersMethodDataType
DataType is the data type of the project field, e.g. TEXT, NUMBER, DATE, SINGLE_SELECT, or ITERATION. It returns an empty string for unknown field typ
pkg/cmd/project/shared/queries/queries.go:1006
↓ 2 callersFunctionDeferredUpdateIssue
DeferredUpdateIssue runs issue mutations described by opts in parallel and returns any failures as a single joined error so a single failure does not
api/queries_issue.go:668
↓ 2 callersMethodDeleteComment
DeleteComment deletes a discussion comment or reply.
pkg/cmd/discussion/client/client.go:49
↓ 2 callersFunctionDiscoverLocalSkills
DiscoverLocalSkills finds non-hidden-dir skills in a local directory using the same conventions as remote discovery. Hidden-dir skills are excluded; u
internal/skills/discovery/discovery.go:979
↓ 2 callersFunctionDiscoverSkillByPath
DiscoverSkillByPath looks up a single skill by its exact path in the repository.
internal/skills/discovery/discovery.go:739
↓ 2 callersFunctionDiscoverSkillFiles
DiscoverSkillFiles returns all file paths belonging to a skill directory by fetching the skill's subtree directly using its tree SHA.
internal/skills/discovery/discovery.go:842
↓ 2 callersFunctionDiscoverSkills
DiscoverSkills finds all non-hidden-dir skills in a repository at the given commit SHA. Hidden-dir skills are excluded; use DiscoverSkillsWithOptions
internal/skills/discovery/discovery.go:579
↓ 2 callersMethodDisplayName
()
api/queries_pr_review.go:188
↓ 2 callersMethodDisplayNames
DisplayNames returns a list of display names for the assigned actors.
api/queries_issue.go:161
↓ 2 callersMethodDisplayValue
DisplayValue returns a single-line, human-readable rendering of the field value suitable for a table cell. Multi-value fields (labels, assignees, etc.
pkg/cmd/project/shared/queries/queries.go:481
↓ 2 callersMethodDisplayableReviews
()
api/queries_pr_review.go:117
↓ 2 callersMethodEditCodespace
(ctx context.Context, codespaceName string, params *EditCodespaceParams)
internal/codespaces/api/api.go:1162
↓ 2 callersMethodEditor
Editor returns the configured editor, optionally scoped by host.
internal/gh/gh.go:54
↓ 2 callersMethodEmoji
()
api/reaction_groups.go:46
↓ 2 callersFunctionEntityName
(orgOption string, repoI ghrepo.Interface)
pkg/cmd/ruleset/shared/shared.go:123
↓ 2 callersMethodError
()
pkg/cmdutil/errors.go:64
↓ 2 callersMethodError
()
pkg/cmd/event/listen/listen.go:288
↓ 2 callersMethodErrorf
(string, ...any)
internal/browser/stub.go:20
↓ 2 callersFunctionEventTypesHelp
EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline.
pkg/cmd/event/shared/help.go:34
↓ 2 callersMethodEventsFeatures
()
internal/featuredetection/feature_detection.go:28
↓ 2 callersMethodExists
(key string)
pkg/cmd/run/view/view.go:37
↓ 2 callersMethodExpiringCredentials
ExpiringCredentials returns the configured expiring_credentials setting, optionally scoped by host.
internal/gh/gh.go:66
↓ 2 callersMethodExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:268
↓ 2 callersFunctionExtBrowse
(opts ExtBrowseOpts)
pkg/cmd/extension/browse/browse.go:111
↓ 2 callersFunctionExtractContents
ExtractContents returns the template contents without the YAML front-matter
pkg/githubtemplate/github_template.go:117
↓ 2 callersFunctionExtractName
ExtractName returns the name of the template from YAML front-matter
pkg/githubtemplate/github_template.go:87
↓ 2 callersFunctionExtractTitle
ExtractTitle returns the title of the template from YAML front-matter
pkg/githubtemplate/github_template.go:102
↓ 2 callersMethodFetch
Below are commands that make network calls and need authentication credentials supplied from gh.
git/client.go:878
↓ 2 callersFunctionFetchDescriptionsConcurrent
FetchDescriptionsConcurrent fetches descriptions with bounded concurrency.
internal/skills/discovery/discovery.go:693
↓ 2 callersFunctionFetchOptions
(client *api.Client, repo ghrepo.Interface, editable *Editable, projectV1Support gh.ProjectsV1Support)
pkg/cmd/pr/shared/editable.go:517
↓ 2 callersFunctionFetchRepoVisibility
FetchRepoVisibility returns the repository visibility: "public", "private", or "internal".
internal/skills/discovery/discovery.go:192
← previousnext →1,301–1,400 of 7,572, ranked by callers