MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 5 callersFunctionParseQualifiedHeadRef
ParseQualifiedHeadRef takes strings of the form <owner>:<branch> or <branch> and returns a QualifiedHeadRef. If the form <owner>:<branch> is used, the
pkg/cmd/pr/shared/find_refs_resolution.go:55
↓ 5 callersFunctionPrintSuccess
PrintSuccess prints the line for an artifact the command acted on. In a terminal, the line is icon and message on stdout. Otherwise it is a piped line
pkg/cmd/issue/artifact/shared/results.go:34
↓ 5 callersMethodPrompt
Prompt offers to set up gh as the git credential helper for hostname. On an expiring login the user can cancel the sign-in entirely, in which case the
pkg/cmd/auth/shared/git_credential.go:40
↓ 5 callersMethodPull
(remote, branch string)
pkg/cmd/extension/git.go:16
↓ 5 callersMethodRecordGitProtocol
RecordGitProtocol captures the git operations protocol selected for the host, as "https" or "ssh", or "unset" when no protocol was explicitly selected
pkg/cmd/auth/shared/telemetry.go:50
↓ 5 callersMethodRecordStorage
RecordStorage captures where the credential was stored: keyring when a secure store was used, plaintext otherwise.
pkg/cmd/auth/shared/telemetry.go:87
↓ 5 callersMethodReset
()
pkg/iostreams/color.go:228
↓ 5 callersFunctionResolveGitRoot
ResolveGitRoot returns the git repository root using the provided client, falling back to the current working directory on error.
internal/skills/installer/installer.go:311
↓ 5 callersFunctionSSOURL
SSOURL returns the URL of a SAML SSO challenge received by the server for clients that use ExtractHeader to extract the value of the "X-GitHub-SSO" re
pkg/cmd/factory/default.go:350
↓ 5 callersMethodSearchFeatures
()
internal/featuredetection/feature_detection.go:21
↓ 5 callersFunctionSelectRun
SelectRun prompts the user to select a run from a list of runs by using the recommended prompter interface
pkg/cmd/run/shared/shared.go:538
↓ 5 callersFunctionShortRef
ShortRef strips the "refs/heads/" or "refs/tags/" prefix from a fully qualified ref, returning the short name. If the ref is not fully qualified it is
internal/skills/discovery/discovery.go:139
↓ 5 callersFunctionSigstoreBundle
SigstoreBundle returns a test sigstore-go bundle.Bundle
pkg/cmd/attestation/test/data/data.go:17
↓ 5 callersMethodStandardSearchString
String returns the string representation of the query which can be used with the legacy search backend, which is used in global search GUI (i.e. githu
pkg/search/query.go:126
↓ 5 callersMethodStartSSHServer
(ctx context.Context)
internal/codespaces/rpc/invoker.go:47
↓ 5 callersFunctionStringSliceEnumFlag
(cmd *cobra.Command, p *[]string, name, shorthand string, defaultValues, options []string, usage string)
pkg/cmdutil/flags.go:38
↓ 5 callersFunctionStubUpload
StubUpload registers one upload of name against repositoryID, answering with status and body. It matches on the query the upload carries, so a reques
internal/attachments/test.go:67
↓ 5 callersMethodToplevelDir
ToplevelDir returns the top-level directory path of the current repository.
git/client.go:727
↓ 5 callersMethodUnqualifiedHeadRef
UnqualifiedHeadRef returns a head ref in the form of the branch name only.
pkg/cmd/pr/create/create.go:99
↓ 5 callersMethodUnwrap
()
pkg/cmd/pr/shared/finder.go:620
↓ 5 callersMethodUpdateAvailable
()
pkg/cmd/extension/extension.go:214
↓ 5 callersMethodUpsertMeasures
(Measures)
internal/gh/ghtelemetry/telemetry.go:18
↓ 5 callersMethodUsersForHost
UsersForHost retrieves a list of users configured for a specific host.
internal/gh/gh.go:299
↓ 5 callersMethodViewerCanPush
ViewerCanPush is true when the requesting user has push access
api/queries_repo.go:267
↓ 5 callersFunctionWithSampleRate
WithSampleRate allows setting a sample rate (0-100) for telemetry events. Rates 0 and 100 retain all events. Sampling is based on invocation ID, so an
internal/telemetry/telemetry.go:164
↓ 5 callersFunctionWorktreeForBranch
WorktreeForBranch returns the worktree that has branch checked out, or nil when the branch is not associated with any worktree.
git/objects.go:90
↓ 5 callersMethodaddf
(path, format string, args ...any)
script/ghmock/graphqlcheck.go:192
↓ 5 callersMethodappendRun
(rec runRecord)
script/ghmock/store.go:215
↓ 5 callersFunctioncompactJSON
(data []byte)
script/ghmock/report.go:546
↓ 5 callersFunctiondecodeJSONBody
(req *http.Request, dest any)
pkg/httpmock/stub.go:116
↓ 5 callersFunctiondedent
(s string)
pkg/cmd/root/help.go:304
↓ 5 callersFunctiondedupe
dedupe drops repeated problems, keeping the first of each.
script/ghmock/checker.go:271
↓ 5 callersFunctiondescribeJSON
describeJSON names the kind of a decoded JSON value for messages.
script/ghmock/checker.go:241
↓ 5 callersFunctioneditRun
(opts *EditOptions)
pkg/cmd/issue/edit/edit.go:291
↓ 5 callersFunctionextensionHTTPClient
(t *testing.T, path string, status int, body string)
pkg/cmd/extension/http_test.go:18
↓ 5 callersFunctionfixed
(context: Evidence)
evals/src/graders.test.ts:23
↓ 5 callersFunctionforbiddenError
forbiddenError tells a 403 response for an account without preview access apart from other denials. It keeps the HTTP error wrapped, so callers treat
pkg/cmd/event/client/client.go:246
↓ 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 callersMethodgitFixtureDir
()
script/ghmock/gitfixture.go:51
↓ 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:438
↓ 5 callersFunctionmergeRun
Run the merge command.
pkg/cmd/pr/merge/merge.go:600
↓ 5 callersFunctionnewChecker
(progress io.Writer)
script/ghmock/checker.go:50
↓ 5 callersFunctionparseWithName
parseWithName parses flags for a command whose name argument normally comes first, which would otherwise stop flag parsing. It returns the name.
script/ghmock/set.go:110
↓ 5 callersFunctionprintResultLine
printResultLine prints a piped result line. Every line has all five tab-separated columns, even empty ones, like gh pr checks rows.
pkg/cmd/issue/artifact/shared/results.go:100
↓ 5 callersFunctionrefreshRun
(opts *RefreshOptions)
pkg/cmd/auth/refresh/refresh.go:147
↓ 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:755
↓ 5 callersFunctionrunAddItem
(config addItemConfig)
pkg/cmd/project/item-add/item_add.go:84
↓ 5 callersFunctionrunCloneCommand
(httpClient *http.Client, cli string)
pkg/cmd/repo/clone/clone_test.go:114
↓ 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 callersFunctionsave
(path: string, value: unknown, secrets: string[] = [])
evals/src/core/io.ts:81
↓ 5 callersFunctionspecialKey
(code rune, mod tea.KeyMod)
pkg/cmd/extension/browse/model_test.go:880
↓ 5 callersMethodstatus
()
script/ghmock/store.go:46
↓ 5 callersFunctionstubExtensionUpdate
(updatePath string)
pkg/cmd/extension/manager_test.go:1607
↓ 5 callersMethodsubscriptions
Lists every active subscription of the caller, following pagination links.
evals/src/suites/events/github.ts:54
↓ 5 callersFunctiontestAsset
testAsset stubs file opening so upload reads body without touching the filesystem.
internal/attachments/client_test.go:23
↓ 5 callersFunctionuseTestSchemas
useTestSchemas points ghmock at the small schemas in testdata.
script/ghmock/run_test.go:63
↓ 5 callersFunctionvalidateName
validateName checks if a skill name is safe for use (filesystem-safe).
internal/skills/discovery/discovery.go:1089
↓ 5 callersFunctionvalidateRefreshableCredential
(credential gh.Credential)
internal/config/refreshable.go:616
↓ 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
↓ 5 callersFunctionwriteFiles
writeFiles puts real files in a temporary working directory, because uploading opens the path it is given. A name may include directories, which are c
internal/attachments/attach_test.go:20
↓ 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 callersMethodActiveToken
ActiveToken retrieves the active credential for the given hostname, searching environment variables, plain text config, and lastly encrypted storage.
internal/config/config.go:316
↓ 4 callersMethodActiveTokenWithRefresh
(string)
pkg/cmd/auth/gitcredential/helper.go:19
↓ 4 callersMethodActiveUser
ActiveUser will retrieve the username for the active user at the given hostname. This will not be accurate if the oauth token is set from an environme
internal/config/config.go:423
↓ 4 callersMethodAll
All returns a map of all aliases to their corresponding expansions.
internal/gh/gh.go:345
↓ 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 callersFunctionCheckType
CheckType refuses an artifact whose type this version of gh doesn't know. A new type can need handling gh doesn't have, so commands whose behavior dep
pkg/cmd/issue/artifact/shared/shared.go:282
↓ 4 callersMethodCheckoutNewBranch
(ctx context.Context, remoteName, branch string)
git/client.go:691
↓ 4 callersMethodChoose
()
pkg/cmd/pr/shared/templates.go:184
↓ 4 callersMethodCode
(Query)
pkg/search/searcher.go:30
↓ 4 callersMethodConfig
(ctx context.Context, name string)
git/client.go:322
↓ 4 callersMethodCurrentUserComments
()
pkg/cmd/pr/shared/commentable.go:37
↓ 4 callersFunctionDefault
Default returns the host name of the default GitHub instance.
internal/ghinstance/host.go:21
↓ 4 callersMethodDelete
Delete deletes one artifact from an issue. The API can't restore a deleted artifact.
pkg/cmd/issue/artifact/client/client.go:38
↓ 4 callersMethodDeleteLocalBranch
(ctx context.Context, branch string)
git/client.go:665
↓ 4 callersMethodDetailedItems
()
pkg/cmd/project/shared/queries/queries.go:261
↓ 4 callersMethodDetectConfiguredHelper
DetectConfiguredHelper reads the git credential helper configured for hostname and returns its category ("ours", "other", or "none"), or "error" when
pkg/cmd/auth/shared/git_credential.go:143
← previousnext →601–700 of 7,487, ranked by callers