MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions6,141 in github.com/cli/cli

↓ 5 callersMethodUpdate
Update updates a discussion. The returned discussion may be non-nil even when err is non-nil, indicating a secondary mutation failure (e.g., labels).
pkg/cmd/discussion/client/client.go:45
↓ 5 callersMethodUpdateAvailable
()
pkg/cmd/extension/extension.go:214
↓ 5 callersMethodViewerCanPush
ViewerCanPush is true when the requesting user has push access
api/queries_repo.go:267
↓ 5 callersFunctionWithRepoDir
(repoDir string)
git/command.go:107
↓ 5 callersFunctiondecodeJSONBody
(req *http.Request, dest any)
pkg/httpmock/stub.go:116
↓ 5 callersFunctiondedent
(s string)
pkg/cmd/root/help.go:304
↓ 5 callersFunctioneditRun
(opts *EditOptions)
pkg/cmd/issue/edit/edit.go:293
↓ 5 callersFunctionextensionHTTPClient
(t *testing.T, path string, status int, body string)
pkg/cmd/extension/http_test.go:18
↓ 5 callersMethodgetAsset
()
internal/attachments/userasset.go:47
↓ 5 callersMethodgetBundle
(url safeurl.SafeURL)
pkg/cmd/attestation/api/client.go:234
↓ 5 callersFunctiongetSecrets
(client *http.Client, host string, u *safeurl.MutableSafeURL)
pkg/cmd/secret/list/list.go:318
↓ 5 callersFunctiongpgKeyUpload
(httpClient *http.Client, hostname string, keyFile io.Reader, title string)
pkg/cmd/gpg-key/add/http.go:18
↓ 5 callersMethodhostname
()
pkg/cmd/status/status.go:202
↓ 5 callersFunctionissueResponseAllIssues2Fields
issueResponseAllIssues2Fields returns a GraphQL response for an issue with all Issues 2.0 fields populated.
pkg/cmd/issue/view/view_test.go:660
↓ 5 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/repo/list/list.go:119
↓ 5 callersFunctionmakeTestAttestation
()
pkg/cmd/attestation/api/mock_client.go:17
↓ 5 callersFunctionmatchSkillConventions
matchSkillConventions checks if a blob path matches any known skill convention.
internal/skills/discovery/discovery.go:439
↓ 5 callersFunctionmergeRun
Run the merge command.
pkg/cmd/pr/merge/merge.go:600
↓ 5 callersFunctionremoveRun
(opts *DeleteOptions)
pkg/cmd/secret/delete/delete.go:90
↓ 5 callersFunctionrequireAPIHTTPError
(t *testing.T, err error, statusCode int)
pkg/cmd/release/create/http_test.go:164
↓ 5 callersMethodrevParse
(ctx context.Context, args ...string)
git/client.go:757
↓ 5 callersFunctionrunAddItem
(config addItemConfig)
pkg/cmd/project/item-add/item_add.go:84
↓ 5 callersFunctionrunCommand
(rt http.RoundTripper, pm *prompter.MockPrompter, isTTY bool, cli string)
pkg/cmd/issue/delete/delete_test.go:28
↓ 5 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/ready/ready_test.go:91
↓ 5 callersFunctionrunCopy
(config copyConfig)
pkg/cmd/project/copy/copy.go:88
↓ 5 callersFunctionrunCreate
(config createConfig)
pkg/cmd/project/create/create.go:72
↓ 5 callersFunctionrunCreateItem
(config createItemConfig)
pkg/cmd/project/item-create/item_create.go:85
↓ 5 callersFunctionrunDelete
(config deleteConfig)
pkg/cmd/project/delete/delete.go:79
↓ 5 callersFunctionrunDeleteItem
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:83
↓ 5 callersFunctionsingleSkillTreeJSON
singleSkillTreeJSON returns tree entries for a single skill with the given name.
pkg/cmd/skills/install/install_test.go:289
↓ 5 callersFunctionstubExtensionUpdate
(updatePath string)
pkg/cmd/extension/manager_test.go:1607
↓ 5 callersFunctiontestAsset
testAsset stubs file opening so upload reads body without touching the filesystem.
internal/attachments/client_test.go:23
↓ 5 callersFunctiontestUploader
(reg *httpmock.Registry)
internal/attachments/attach_test.go:27
↓ 5 callersFunctionvalidateName
validateName checks if a skill name is safe for use (filesystem-safe).
internal/skills/discovery/discovery.go:1090
↓ 5 callersFunctionverifyNotifyCodespaceOfClientActivity
Test that the RPC invoker notifies the codespace of client activity on connection
internal/codespaces/rpc/invoker_test.go:90
↓ 5 callersFunctionverifyRun
(config *VerifyConfig)
pkg/cmd/release/verify/verify.go:118
↓ 5 callersMethodwarnf
(format string, args ...any)
pkg/cmd/pr/merge/merge.go:554
↓ 5 callersFunctionwrapInternal
wrapInternal wraps an error with a prefix as an Internal error. The original error cause is accessible by github.com/pkg/errors.Cause.
internal/barista/observability/telemetry.twirp.go:831
↓ 5 callersMethodwriteError
writeError writes an HTTP response with a valid Twirp error format, and triggers hooks. If err is not a twirp.Error, it will get wrapped with twirp.In
internal/barista/observability/telemetry.twirp.go:266
↓ 4 callersFunctionAccessControlEntriesToVisibility
AccessControlEntriesToVisibility converts the access control entries used by Dev Tunnels to a friendly visibility value.
internal/codespaces/portforwarder/port_forwarder.go:357
↓ 4 callersMethodAddRemote
(ctx context.Context, name, urlStr string, trackingBranches []string)
git/client.go:845
↓ 4 callersMethodAll
All returns a map of all aliases to their corresponding expansions.
internal/gh/gh.go:229
↓ 4 callersFunctionAuthTokenWriteable
(authCfg gh.AuthConfig, hostname string)
pkg/cmd/auth/shared/writeable.go:18
↓ 4 callersMethodAuthorLogin
()
pkg/cmd/pr/shared/comments.go:17
↓ 4 callersMethodBoldf
(t string, args ...any)
pkg/iostreams/color.go:67
↓ 4 callersFunctionBuildAliasList
(cmd *cobra.Command, aliases []string)
pkg/cmd/root/help.go:330
↓ 4 callersFunctionBuildRepoURL
BuildRepoURL returns the canonical repository URL stored in skill metadata.
internal/skills/source/source.go:15
↓ 4 callersMethodChoose
()
pkg/cmd/pr/shared/templates.go:184
↓ 4 callersMethodCode
(Query)
pkg/search/searcher.go:30
↓ 4 callersMethodCurrentUserComments
()
pkg/cmd/pr/shared/commentable.go:36
↓ 4 callersFunctionDefault
Default returns the host name of the default GitHub instance.
internal/ghinstance/host.go:21
↓ 4 callersFunctionDelete
Delete secret from keyring.
internal/keyring/keyring.go:62
↓ 4 callersMethodDescription
()
pkg/cmd/extension/browse/browse.go:81
↓ 4 callersMethodDetailedItems
()
pkg/cmd/project/shared/queries/queries.go:261
↓ 4 callersMethodDigest
Digest returns the artifact's digest
pkg/cmd/attestation/artifact/artifact.go:77
↓ 4 callersMethodDirty
()
pkg/cmd/pr/shared/editable.go:80
↓ 4 callersFunctionDiscoverSkillsWithOptions
DiscoverSkillsWithOptions finds all skills in a repository at the given commit SHA, with configurable discovery behavior.
internal/skills/discovery/discovery.go:576
↓ 4 callersMethodEdit
(string, string)
pkg/cmd/pr/merge/merge.go:23
↓ 4 callersFunctionEditorName
(editorCommand string)
pkg/surveyext/editor.go:162
↓ 4 callersMethodExecutable
()
pkg/cmd/codespace/common.go:28
↓ 4 callersFunctionFetchRepository
(client *Client, repo ghrepo.Interface, fields []string)
api/queries_repo.go:286
↓ 4 callersFunctionFilterAttestations
(predicateType string, attestations []*Attestation)
pkg/cmd/attestation/api/attestation.go:27
↓ 4 callersMethodFindSelected
()
pkg/cmd/extension/browse/browse.go:270
↓ 4 callersFunctionFlagErrorWrap
FlagErrorWrap returns a new FlagError that wraps the specified error.
pkg/cmdutil/errors.go:17
↓ 4 callersFunctionFormatSize
FormatSize formats a byte count using binary units (B, KB, MB, GB, TB, PB). Values below a kilobyte are shown as whole bytes; larger values are shown
internal/text/text.go:156
↓ 4 callersMethodGetByDigest
GetByDigest fetches the attestation by digest and either owner or repo depending on which is provided
pkg/cmd/attestation/api/client.go:89
↓ 4 callersMethodGetByNumber
GetByNumber returns a single discussion by its number.
pkg/cmd/discussion/client/client.go:31
↓ 4 callersMethodGetCodespace
(ctx context.Context, name string, includeConnection bool)
internal/codespaces/codespaces.go:40
↓ 4 callersFunctionGetGist
(client *http.Client, hostname, gistID string)
pkg/cmd/gist/shared/shared.go:64
↓ 4 callersMethodGetImageDigest
where name is formed like ghcr.io/github/my-image-repo
pkg/cmd/attestation/artifact/oci/client.go:49
↓ 4 callersFunctionGetSecretApp
(app string, entity SecretEntity)
pkg/cmd/secret/shared/shared.go:66
↓ 4 callersFunctionGetSecretEntity
(orgName, envName string, userSecrets bool)
pkg/cmd/secret/shared/shared.go:46
↓ 4 callersFunctionGetWorkflows
(client *api.Client, repo ghrepo.Interface, limit int)
pkg/cmd/workflow/shared/shared.go:58
↓ 4 callersMethodGitDir
(ctx context.Context)
git/client.go:737
↓ 4 callersFunctionGitHubTUFOptions
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/tuf.go:48
↓ 4 callersMethodHasMetadata
()
pkg/cmd/pr/shared/state.go:55
↓ 4 callersFunctionInstall
Install fetches and writes skills to the target directory.
internal/skills/installer/installer.go:56
↓ 4 callersFunctionIsAuthCheckEnabled
(cmd *cobra.Command)
pkg/cmdutil/auth_check.go:41
↓ 4 callersFunctionIsFailureState
(c Conclusion)
pkg/cmd/run/shared/shared.go:318
↓ 4 callersMethodIsHiddenDirConvention
IsHiddenDirConvention returns true if the skill was discovered in a hidden (dot-prefixed) directory such as .claude/skills/ or .agents/skills/.
internal/skills/discovery/discovery.go:91
↓ 4 callersMethodIsOurs
IsOurs returns true if the helper command is the GitHub CLI credential helper
pkg/cmd/auth/shared/gitcredentials/helper_config.go:78
↓ 4 callersMethodIsSome
IsSome returns true if the [Option] is a [Some] variant.
pkg/option/option.go:111
↓ 4 callersFunctionIsSupportedSecretEntity
(app App, entity SecretEntity)
pkg/cmd/secret/shared/shared.go:86
↓ 4 callersMethodLatestVersion
()
pkg/extensions/extension.go:23
↓ 4 callersFunctionListArtifacts
(httpClient *http.Client, repo ghrepo.Interface, runID string)
pkg/cmd/run/shared/artifacts.go:23
↓ 4 callersMethodListPorts
(ctx context.Context)
internal/codespaces/portforwarder/port_forwarder.go:48
↓ 4 callersMethodMatches
Matches checks whether the provided baseBranchName and headRef match the refs. It is used to determine whether Pull Requests returned from the API
pkg/cmd/pr/shared/find_refs_resolution.go:106
↓ 4 callersMethodMembersToIDs
(names []string)
api/queries_repo.go:754
↓ 4 callersFunctionMetadataSurvey
(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface, fetcher RepoMetadataFetcher, state *IssueMetada
pkg/cmd/pr/shared/survey.go:157
↓ 4 callersFunctionMockInit
()
internal/keyring/keyring.go:76
↓ 4 callersFunctionNewAssignableBot
(id, login string)
api/queries_repo.go:1211
↓ 4 callersFunctionNewClient
(httpClient *http.Client, hostname string, ios *iostreams.IOStreams)
pkg/cmd/project/shared/queries/queries.go:19
↓ 4 callersFunctionNewCmdExtension
(io *iostreams.IOStreams, em extensions.ExtensionManager, ext extensions.Extension, checkExtensionReleaseInfo
pkg/cmd/root/extension.go:22
↓ 4 callersFunctionNewCmdRoot
(f *cmdutil.Factory, telemetry ghtelemetry.CommandRecorder, version, buildDate string)
pkg/cmd/root/root.go:64
↓ 4 callersFunctionNewCmdUpdate
NewCmdUpdate creates the "skills update" command.
pkg/cmd/skills/update/update.go:66
↓ 4 callersFunctionNewCodespaceConnection
NewCodespaceConnection initializes a connection to a codespace. This connections allows for port forwarding which enables the use of most features of
internal/codespaces/connection/connection.go:42
↓ 4 callersFunctionNewDigestedArtifact
(client oci.Client, reference, digestAlg string)
pkg/cmd/attestation/artifact/artifact.go:64
↓ 4 callersFunctionNewMockHttpClient
(opts ...mockClientOpt)
internal/codespaces/connection/tunnels_api_server_mock.go:43
↓ 4 callersFunctionNewQualifiedHeadRef
NewQualifiedHeadRef creates a QualifiedHeadRef. If the empty string is provided for the owner, it will be treated as None.
pkg/cmd/pr/shared/find_refs_resolution.go:32
↓ 4 callersFunctionNormalizeRepoName
NormalizeRepoName takes in the repo name the user inputted and normalizes it using the same logic as GitHub (GitHub.com/new)
pkg/cmd/repo/shared/repo.go:11
← previousnext →501–600 of 6,141, ranked by callers