MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 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:1025
↓ 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:1280
↓ 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 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
↓ 1 callersFunctioncmdsForExistingRemote
(remote *cliContext.Remote, pr *api.PullRequest, opts *CheckoutOptions, reuseWorktree bool)
pkg/cmd/pr/checkout/checkout.go:199
↓ 1 callersFunctioncmdsForMissingRemote
(pr *api.PullRequest, baseURLOrName, repoHost, defaultBranch, protocol string, opts *CheckoutOptions, reuseWor
pkg/cmd/pr/checkout/checkout.go:244
↓ 1 callersFunctioncodesignBinary
(binPath string)
pkg/cmd/extension/manager.go:855
↓ 1 callersMethodcollect
collect lists the response keys a selection asks for on an object whose __typename is typename, merging the selections of fields that share a key. vis
script/ghmock/trim.go:113
↓ 1 callersMethodcollectFragment
(cond string, dirs ast.DirectiveList, sel ast.SelectionSet, concrete *ast.Definition, required, checked bool,
script/ghmock/graphqlcheck.go:249
↓ 1 callersFunctioncollectInputs
(p iprompter, yamlContent []byte)
pkg/cmd/workflow/run/run.go:213
↓ 1 callersFunctioncollisionError
collisionError checks for name collisions among the selected skills.
pkg/cmd/skills/install/install.go:884
↓ 1 callersFunctioncolorForIssueState
(state, reason string)
pkg/cmd/search/shared/shared.go:174
↓ 1 callersFunctioncolorForPRState
(state string)
pkg/cmd/search/shared/shared.go:188
↓ 1 callersFunctioncommandFlagValue
(args []string, names ...string)
acceptance/acceptance_test.go:152
↓ 1 callersMethodcommandLine
commandLine is the ghmock run command for these options, quoted for a POSIX shell.
script/ghmock/run.go:230
↓ 1 callersFunctioncommentableCmd
commentableCmd builds the flag set the comment commands share, so that CommentablePreRun sees the same command shape it does in production.
pkg/cmd/pr/shared/commentable_test.go:24
↓ 1 callersFunctioncompactJSON
(s string)
pkg/cmd/discussion/view/view_test.go:1229
↓ 1 callersFunctioncompactJSON
(s string)
pkg/cmd/repo/read-dir/read_dir_test.go:524
↓ 1 callersFunctioncomparableSource
comparableSource reduces a destination read straight from the source to that same form. It still carries the syntax goldmark had already removed: the
internal/attachments/references.go:451
↓ 1 callersFunctioncompletedCheckRunNode
(conclusion string)
api/pull_request_test.go:398
↓ 1 callersFunctioncompletedLoop
()
evals/src/review-loop.test.ts:66
↓ 1 callersMethodconcreteType
concreteType picks the object type to build for a field whose type is an interface or union: the type in __typename, else the first fragment's type, e
script/ghmock/gqlscaffold.go:241
↓ 1 callersFunctioncondition
(d *ast.Directive, vars map[string]any)
script/ghmock/gqlscaffold.go:358
↓ 1 callersFunctionconfigureTestCredentialHelper
(t *testing.T, key string)
pkg/cmd/auth/shared/gitcredentials/helper_config_test.go:15
↓ 1 callersFunctionconfirmDeletion
(p prompter, apiCodespace *api.Codespace, isInteractive bool)
pkg/cmd/codespace/delete.go:209
↓ 1 callersFunctionconfirmForkDeletion
confirmForkDeletion asks before deleting a private repository that has forks, because GitHub deletes those forks with it. The caller often cannot see
pkg/cmd/repo/delete/delete.go:165
↓ 1 callersFunctionconfirmSubmission
(client *http.Client, opts *MergeOptions, action shared.Action, payload *mergePayload)
pkg/cmd/pr/merge/merge.go:717
↓ 1 callersFunctionconfirmSurvey
(p shared.Prompt, allowEditMsg bool)
pkg/cmd/pr/merge/merge.go:686
↓ 1 callersFunctionconfirmationPrompt
confirmationPrompt asks once for every artifact, naming each one, such as "Delete artifacts 2 (OAuth callback plan) and 5 (Barista feedback notes) fro
pkg/cmd/issue/artifact/delete/delete.go:192
↓ 1 callersFunctionconnect
Finds a free port to listen on and creates a new RPC invoker that connects to that port
internal/codespaces/rpc/invoker.go:77
↓ 1 callersMethodconnectListenerToForwardedPort
connectListenerToForwardedPort connects to the forwarded port via a local TCP port.
internal/codespaces/portforwarder/port_forwarder.go:194
↓ 1 callersFunctionconnectionReady
(codespace *api.Codespace)
internal/codespaces/codespaces.go:25
↓ 1 callersFunctioncontainsReview
(value: unknown, reviewId: number, expected?: Record<string, unknown>)
evals/src/suites/events/grading/observations.ts:37
↓ 1 callersFunctionconvertRequests
convertRequests function
internal/codespaces/connection/tunnels_api_server_mock.go:376
↓ 1 callersFunctioncopyArgs
(config copyConfig)
pkg/cmd/project/copy/copy.go:122
↓ 1 callersFunctioncopyGitPathFile
(sourceFile, destinationFile, source, destination string, mode fs.FileMode)
script/ghmock/gitfixture.go:209
↓ 1 callersFunctioncountFilesInDirRecursively
(t *testing.T, dir string)
pkg/cmd/run/download/download_test.go:826
↓ 1 callersFunctioncountLines
(path string)
pkg/cmd/attestation/download/metadata_test.go:79
↓ 1 callersFunctioncountNames
(requests []loggedRequest)
script/ghmock/report.go:413
↓ 1 callersFunctioncreateAction
createAction names an artifact in its failure line by what it was created from, or by its name when it came from --body.
pkg/cmd/issue/artifact/create/create.go:495
↓ 1 callersFunctioncreateArgs
(config createConfig)
pkg/cmd/project/create/create.go:94
↓ 1 callersFunctioncreateComment
(commentable Commentable, opts *CommentableOptions, uploader *attachments.Uploader)
pkg/cmd/pr/shared/commentable.go:212
↓ 1 callersFunctioncreateCustomVerifiers
(trustedRoot string, noPublicGood bool)
pkg/cmd/attestation/verification/sigstore.go:103
↓ 1 callersFunctioncreateDraftIssueArgs
(config createItemConfig)
pkg/cmd/project/item-create/item_create.go:112
↓ 1 callersFunctioncreateFakeEditPendingOpServer
()
internal/codespaces/api/api_test.go:760
↓ 1 callersFunctioncreateFakeEditServer
(t *testing.T, codespaceName string)
internal/codespaces/api/api_test.go:675
↓ 1 callersFunctioncreateFakeSearchReposServer
(t *testing.T, wantSearchText string, wantSort string, wantPerPage string, responseRepos []*Repository)
internal/codespaces/api/api_test.go:472
↓ 1 callersFunctioncreateFieldArgs
(config createFieldConfig)
pkg/cmd/project/field-create/field_create.go:122
↓ 1 callersFunctioncreateFromLocal
create repo on remote host from existing local repo
pkg/cmd/repo/create/create.go:534
↓ 1 callersFunctioncreateFromScratch
create new repo on remote host
pkg/cmd/repo/create/create.go:296
↓ 1 callersFunctioncreateFromTemplate
create new repo on remote host from template repo
pkg/cmd/repo/create/create.go:439
↓ 1 callersMethodcreateMetadataFile
(artifactDigest string, attestationsResp []*api.Attestation)
pkg/cmd/attestation/download/metadata.go:17
↓ 1 callersMethodcreateMetadataFile
(artifactDigest string, attestationsResp []*api.Attestation)
pkg/cmd/attestation/download/metadata.go:42
↓ 1 callersFunctioncreateSampleResult
()
pkg/cmd/attestation/verification/extensions_test.go:11
↓ 1 callersFunctioncreateSandbox
( github: GitHub, org: string, suite: string, journalPath: string, )
evals/src/core/sandbox.ts:57
↓ 1 callersFunctioncreateTestDir
Creates a temporary directory with the structure below. Returns a cleanup function that will remove the directory and all of its contents. The cleanup
pkg/cmdutil/args_test.go:272
↓ 1 callersMethodcreateTunnelPort
createTunnelPort creates a tunnel port while holding the manager mutex. TunnelManager operations mutate shared state on the Tunnel object and are not
internal/codespaces/portforwarder/port_forwarder.go:134
↓ 1 callersFunctioncredentialFromAccessToken
credentialFromAccessToken projects an OAuth access token onto gh.Credential, reusing refreshableCredentialFromAccessToken so the expiry mapping lives
internal/authflow/refresh.go:106
↓ 1 callersMethodcredentialRotatedByPeer
credentialRotatedByPeer re-reads the user's stored refreshable credential after the server rejected rejectedRefreshToken, and returns it when its refr
internal/config/refreshable.go:616
↓ 1 callersMethodcurrentHead
()
evals/src/suites/events/smoke-protocol.ts:2
↓ 1 callersMethodcurrentLogin
()
pkg/cmd/pr/shared/params.go:298
↓ 1 callersFunctioncutLast
cutLast splits s around the last occurrence of sep, returning the text before and after sep, and whether sep was found.
pkg/cmd/skills/install/install.go:603
↓ 1 callersFunctiondate
()
script/build.go:162
↓ 1 callersFunctiondecodeJSON
decodeJSON reads a JSON response body into v and closes it. A body cut short is reported as a *url.Error, like a request that failed in transit, so ca
pkg/cmd/event/client/client.go:188
↓ 1 callersFunctiondefaultFor
(key string)
internal/config/config.go:243
↓ 1 callersFunctiondefaultHost
()
internal/ghrepo/repo.go:39
↓ 1 callersFunctiondeferredUpdateIssueOptions
deferredUpdateIssueOptions resolves the user-supplied --type / --parent / --blocked-by / --blocking flags into the IDs that DeferredUpdateIssue expect
pkg/cmd/issue/create/create.go:502
↓ 1 callersFunctiondeferredUpdateIssueOptions
(client *api.Client, baseRepo ghrepo.Interface, issue *api.Issue, editOpts *EditOptions, issueTypeID string)
pkg/cmd/issue/edit/edit.go:564
↓ 1 callersFunctiondefinitionPath
(suite: string, scenario: string)
evals/src/core/suite.ts:127
↓ 1 callersMethoddelete
(name string)
acceptance/fixture_repository_test.go:150
↓ 1 callersFunctiondeleteAsset
(ctx context.Context, httpClient *http.Client, hostname string, assetURL safeurl.SafeURL)
pkg/cmd/release/shared/upload.go:210
↓ 1 callersFunctiondeleteBranchSurvey
(opts *MergeOptions, crossRepoPR, localBranchExists bool)
pkg/cmd/pr/merge/merge.go:666
↓ 1 callersFunctiondeleteCacheByID
(client *api.Client, repo ghrepo.Interface, id int64)
pkg/cmd/cache/delete/delete.go:203
← previousnext →3,001–3,100 of 7,572, ranked by callers