Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
6,141 in github.com/cli/cli
⨍
Functions
6,141
◇
Types & classes
1,328
↓ 5 callers
Method
Update
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 callers
Method
UpdateAvailable
()
pkg/cmd/extension/extension.go:214
↓ 5 callers
Method
ViewerCanPush
ViewerCanPush is true when the requesting user has push access
api/queries_repo.go:267
↓ 5 callers
Function
WithRepoDir
(repoDir string)
git/command.go:107
↓ 5 callers
Function
decodeJSONBody
(req *http.Request, dest any)
pkg/httpmock/stub.go:116
↓ 5 callers
Function
dedent
(s string)
pkg/cmd/root/help.go:304
↓ 5 callers
Function
editRun
(opts *EditOptions)
pkg/cmd/issue/edit/edit.go:293
↓ 5 callers
Function
extensionHTTPClient
(t *testing.T, path string, status int, body string)
pkg/cmd/extension/http_test.go:18
↓ 5 callers
Method
getAsset
()
internal/attachments/userasset.go:47
↓ 5 callers
Method
getBundle
(url safeurl.SafeURL)
pkg/cmd/attestation/api/client.go:234
↓ 5 callers
Function
getSecrets
(client *http.Client, host string, u *safeurl.MutableSafeURL)
pkg/cmd/secret/list/list.go:318
↓ 5 callers
Function
gpgKeyUpload
(httpClient *http.Client, hostname string, keyFile io.Reader, title string)
pkg/cmd/gpg-key/add/http.go:18
↓ 5 callers
Method
hostname
()
pkg/cmd/status/status.go:202
↓ 5 callers
Function
issueResponseAllIssues2Fields
issueResponseAllIssues2Fields returns a GraphQL response for an issue with all Issues 2.0 fields populated.
pkg/cmd/issue/view/view_test.go:660
↓ 5 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/repo/list/list.go:119
↓ 5 callers
Function
makeTestAttestation
()
pkg/cmd/attestation/api/mock_client.go:17
↓ 5 callers
Function
matchSkillConventions
matchSkillConventions checks if a blob path matches any known skill convention.
internal/skills/discovery/discovery.go:439
↓ 5 callers
Function
mergeRun
Run the merge command.
pkg/cmd/pr/merge/merge.go:600
↓ 5 callers
Function
removeRun
(opts *DeleteOptions)
pkg/cmd/secret/delete/delete.go:90
↓ 5 callers
Function
requireAPIHTTPError
(t *testing.T, err error, statusCode int)
pkg/cmd/release/create/http_test.go:164
↓ 5 callers
Method
revParse
(ctx context.Context, args ...string)
git/client.go:757
↓ 5 callers
Function
runAddItem
(config addItemConfig)
pkg/cmd/project/item-add/item_add.go:84
↓ 5 callers
Function
runCommand
(rt http.RoundTripper, pm *prompter.MockPrompter, isTTY bool, cli string)
pkg/cmd/issue/delete/delete_test.go:28
↓ 5 callers
Function
runCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/ready/ready_test.go:91
↓ 5 callers
Function
runCopy
(config copyConfig)
pkg/cmd/project/copy/copy.go:88
↓ 5 callers
Function
runCreate
(config createConfig)
pkg/cmd/project/create/create.go:72
↓ 5 callers
Function
runCreateItem
(config createItemConfig)
pkg/cmd/project/item-create/item_create.go:85
↓ 5 callers
Function
runDelete
(config deleteConfig)
pkg/cmd/project/delete/delete.go:79
↓ 5 callers
Function
runDeleteItem
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:83
↓ 5 callers
Function
singleSkillTreeJSON
singleSkillTreeJSON returns tree entries for a single skill with the given name.
pkg/cmd/skills/install/install_test.go:289
↓ 5 callers
Function
stubExtensionUpdate
(updatePath string)
pkg/cmd/extension/manager_test.go:1607
↓ 5 callers
Function
testAsset
testAsset stubs file opening so upload reads body without touching the filesystem.
internal/attachments/client_test.go:23
↓ 5 callers
Function
testUploader
(reg *httpmock.Registry)
internal/attachments/attach_test.go:27
↓ 5 callers
Function
validateName
validateName checks if a skill name is safe for use (filesystem-safe).
internal/skills/discovery/discovery.go:1090
↓ 5 callers
Function
verifyNotifyCodespaceOfClientActivity
Test that the RPC invoker notifies the codespace of client activity on connection
internal/codespaces/rpc/invoker_test.go:90
↓ 5 callers
Function
verifyRun
(config *VerifyConfig)
pkg/cmd/release/verify/verify.go:118
↓ 5 callers
Method
warnf
(format string, args ...any)
pkg/cmd/pr/merge/merge.go:554
↓ 5 callers
Function
wrapInternal
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 callers
Method
writeError
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 callers
Function
AccessControlEntriesToVisibility
AccessControlEntriesToVisibility converts the access control entries used by Dev Tunnels to a friendly visibility value.
internal/codespaces/portforwarder/port_forwarder.go:357
↓ 4 callers
Method
AddRemote
(ctx context.Context, name, urlStr string, trackingBranches []string)
git/client.go:845
↓ 4 callers
Method
All
All returns a map of all aliases to their corresponding expansions.
internal/gh/gh.go:229
↓ 4 callers
Function
AuthTokenWriteable
(authCfg gh.AuthConfig, hostname string)
pkg/cmd/auth/shared/writeable.go:18
↓ 4 callers
Method
AuthorLogin
()
pkg/cmd/pr/shared/comments.go:17
↓ 4 callers
Method
Boldf
(t string, args ...any)
pkg/iostreams/color.go:67
↓ 4 callers
Function
BuildAliasList
(cmd *cobra.Command, aliases []string)
pkg/cmd/root/help.go:330
↓ 4 callers
Function
BuildRepoURL
BuildRepoURL returns the canonical repository URL stored in skill metadata.
internal/skills/source/source.go:15
↓ 4 callers
Method
Choose
()
pkg/cmd/pr/shared/templates.go:184
↓ 4 callers
Method
Code
(Query)
pkg/search/searcher.go:30
↓ 4 callers
Method
CurrentUserComments
()
pkg/cmd/pr/shared/commentable.go:36
↓ 4 callers
Function
Default
Default returns the host name of the default GitHub instance.
internal/ghinstance/host.go:21
↓ 4 callers
Function
Delete
Delete secret from keyring.
internal/keyring/keyring.go:62
↓ 4 callers
Method
Description
()
pkg/cmd/extension/browse/browse.go:81
↓ 4 callers
Method
DetailedItems
()
pkg/cmd/project/shared/queries/queries.go:261
↓ 4 callers
Method
Digest
Digest returns the artifact's digest
pkg/cmd/attestation/artifact/artifact.go:77
↓ 4 callers
Method
Dirty
()
pkg/cmd/pr/shared/editable.go:80
↓ 4 callers
Function
DiscoverSkillsWithOptions
DiscoverSkillsWithOptions finds all skills in a repository at the given commit SHA, with configurable discovery behavior.
internal/skills/discovery/discovery.go:576
↓ 4 callers
Method
Edit
(string, string)
pkg/cmd/pr/merge/merge.go:23
↓ 4 callers
Function
EditorName
(editorCommand string)
pkg/surveyext/editor.go:162
↓ 4 callers
Method
Executable
()
pkg/cmd/codespace/common.go:28
↓ 4 callers
Function
FetchRepository
(client *Client, repo ghrepo.Interface, fields []string)
api/queries_repo.go:286
↓ 4 callers
Function
FilterAttestations
(predicateType string, attestations []*Attestation)
pkg/cmd/attestation/api/attestation.go:27
↓ 4 callers
Method
FindSelected
()
pkg/cmd/extension/browse/browse.go:270
↓ 4 callers
Function
FlagErrorWrap
FlagErrorWrap returns a new FlagError that wraps the specified error.
pkg/cmdutil/errors.go:17
↓ 4 callers
Function
FormatSize
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 callers
Method
GetByDigest
GetByDigest fetches the attestation by digest and either owner or repo depending on which is provided
pkg/cmd/attestation/api/client.go:89
↓ 4 callers
Method
GetByNumber
GetByNumber returns a single discussion by its number.
pkg/cmd/discussion/client/client.go:31
↓ 4 callers
Method
GetCodespace
(ctx context.Context, name string, includeConnection bool)
internal/codespaces/codespaces.go:40
↓ 4 callers
Function
GetGist
(client *http.Client, hostname, gistID string)
pkg/cmd/gist/shared/shared.go:64
↓ 4 callers
Method
GetImageDigest
where name is formed like ghcr.io/github/my-image-repo
pkg/cmd/attestation/artifact/oci/client.go:49
↓ 4 callers
Function
GetSecretApp
(app string, entity SecretEntity)
pkg/cmd/secret/shared/shared.go:66
↓ 4 callers
Function
GetSecretEntity
(orgName, envName string, userSecrets bool)
pkg/cmd/secret/shared/shared.go:46
↓ 4 callers
Function
GetWorkflows
(client *api.Client, repo ghrepo.Interface, limit int)
pkg/cmd/workflow/shared/shared.go:58
↓ 4 callers
Method
GitDir
(ctx context.Context)
git/client.go:737
↓ 4 callers
Function
GitHubTUFOptions
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/tuf.go:48
↓ 4 callers
Method
HasMetadata
()
pkg/cmd/pr/shared/state.go:55
↓ 4 callers
Function
Install
Install fetches and writes skills to the target directory.
internal/skills/installer/installer.go:56
↓ 4 callers
Function
IsAuthCheckEnabled
(cmd *cobra.Command)
pkg/cmdutil/auth_check.go:41
↓ 4 callers
Function
IsFailureState
(c Conclusion)
pkg/cmd/run/shared/shared.go:318
↓ 4 callers
Method
IsHiddenDirConvention
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 callers
Method
IsOurs
IsOurs returns true if the helper command is the GitHub CLI credential helper
pkg/cmd/auth/shared/gitcredentials/helper_config.go:78
↓ 4 callers
Method
IsSome
IsSome returns true if the [Option] is a [Some] variant.
pkg/option/option.go:111
↓ 4 callers
Function
IsSupportedSecretEntity
(app App, entity SecretEntity)
pkg/cmd/secret/shared/shared.go:86
↓ 4 callers
Method
LatestVersion
()
pkg/extensions/extension.go:23
↓ 4 callers
Function
ListArtifacts
(httpClient *http.Client, repo ghrepo.Interface, runID string)
pkg/cmd/run/shared/artifacts.go:23
↓ 4 callers
Method
ListPorts
(ctx context.Context)
internal/codespaces/portforwarder/port_forwarder.go:48
↓ 4 callers
Method
Matches
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 callers
Method
MembersToIDs
(names []string)
api/queries_repo.go:754
↓ 4 callers
Function
MetadataSurvey
(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface, fetcher RepoMetadataFetcher, state *IssueMetada
pkg/cmd/pr/shared/survey.go:157
↓ 4 callers
Function
MockInit
()
internal/keyring/keyring.go:76
↓ 4 callers
Function
NewAssignableBot
(id, login string)
api/queries_repo.go:1211
↓ 4 callers
Function
NewClient
(httpClient *http.Client, hostname string, ios *iostreams.IOStreams)
pkg/cmd/project/shared/queries/queries.go:19
↓ 4 callers
Function
NewCmdExtension
(io *iostreams.IOStreams, em extensions.ExtensionManager, ext extensions.Extension, checkExtensionReleaseInfo
pkg/cmd/root/extension.go:22
↓ 4 callers
Function
NewCmdRoot
(f *cmdutil.Factory, telemetry ghtelemetry.CommandRecorder, version, buildDate string)
pkg/cmd/root/root.go:64
↓ 4 callers
Function
NewCmdUpdate
NewCmdUpdate creates the "skills update" command.
pkg/cmd/skills/update/update.go:66
↓ 4 callers
Function
NewCodespaceConnection
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 callers
Function
NewDigestedArtifact
(client oci.Client, reference, digestAlg string)
pkg/cmd/attestation/artifact/artifact.go:64
↓ 4 callers
Function
NewMockHttpClient
(opts ...mockClientOpt)
internal/codespaces/connection/tunnels_api_server_mock.go:43
↓ 4 callers
Function
NewQualifiedHeadRef
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 callers
Function
NormalizeRepoName
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
← previous
next →
501–600 of 6,141, ranked by callers