MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 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:897
↓ 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 callersFunctioncredentialFromRefreshable
credentialFromRefreshable projects a renewed RefreshableCredential onto the universal gh.Credential shape, tagging it with the given source. Timestamp
internal/config/refreshable.go:395
↓ 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:616
↓ 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:177
↓ 1 callersFunctiondefaultFor
(key string)
internal/config/config.go:240
↓ 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:503
↓ 1 callersFunctiondeferredUpdateIssueOptions
(client *api.Client, baseRepo ghrepo.Interface, issue *api.Issue, editOpts *EditOptions, issueTypeID string)
pkg/cmd/issue/edit/edit.go:565
↓ 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
↓ 1 callersFunctiondeleteCacheByKey
deleteCacheByKey deletes cache entries by given key (and optional ref) and returns the number of deleted entries. Note that a key/ref combination doe
pkg/cmd/cache/delete/delete.go:218
↓ 1 callersFunctiondeleteCaches
(opts *DeleteOptions, client *api.Client, repo ghrepo.Interface, toDelete []string)
pkg/cmd/cache/delete/delete.go:159
↓ 1 callersFunctiondeleteComment
(commentable Commentable, opts *CommentableOptions)
pkg/cmd/pr/shared/commentable.go:360
↓ 1 callersFunctiondeleteFieldArgs
(config deleteFieldConfig)
pkg/cmd/project/field-delete/field_delete.go:79
↓ 1 callersFunctiondeleteItemArgs
(config deleteConfig)
pkg/cmd/project/delete/delete.go:106
↓ 1 callersFunctiondeleteItemArgs
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:110
↓ 1 callersFunctiondeleteLabel
(client *http.Client, repo ghrepo.Interface, name string)
pkg/cmd/label/delete.go:96
↓ 1 callersMethoddeleteLocalBranch
Delete local branch if requested and if allowed.
pkg/cmd/pr/merge/merge.go:380
↓ 1 callersFunctiondeleteRun
(opts *DeleteOptions)
pkg/cmd/issue/delete/delete.go:76
↓ 1 callersFunctiondeleteWorkflowRun
(client *api.Client, repo ghrepo.Interface, runID string)
pkg/cmd/run/delete/delete.go:139
↓ 1 callersMethoddescribe
A one-line progress message for an action the actor took.
evals/src/core/suite.ts:50
↓ 1 callersFunctiondescribeGraphQL
describeGraphQL writes what GitHub's GraphQL schema says about a type or a field.
script/ghmock/schemacmd.go:82
↓ 1 callersFunctiondescribeREST
describeREST writes what GitHub's REST description says about a request and the body of one of its responses.
script/ghmock/schemacmd.go:261
↓ 1 callersFunctiondescribeResponse
(name string, list []response, pos int)
script/ghmock/set.go:460
↓ 1 callersFunctiondetachAttrs
detachAttrs returns SysProcAttr configured to place the child in its own process group so that terminal signals delivered to the parent's group (SIGIN
internal/telemetry/detach_unix.go:10
↓ 1 callersFunctiondetectCodeAndManifests
detectCodeAndManifests walks the skill directories looking for code files and dependency manifests.
pkg/cmd/skills/publish/publish.go:867
↓ 1 callersFunctiondetectDefaultBranch
detectDefaultBranch returns the default branch of the remote repo via the API.
pkg/cmd/skills/publish/publish.go:686
↓ 1 callersFunctiondetectMissingRepoDiagnostic
detectMissingRepoDiagnostic explains why remote checks were skipped.
pkg/cmd/skills/publish/publish.go:1016
↓ 1 callersFunctiondetectPreviousTag
(client *git.Client, headRef string)
pkg/cmd/release/create/create.go:608
↓ 1 callersFunctiondeterminePageSize
(numRequestedItems int)
pkg/cmd/label/http.go:129
↓ 1 callersFunctiondevelopRunCreate
(opts *DevelopOptions, apiClient *api.Client, issueRepo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/develop/develop.go:201
↓ 1 callersFunctiondevelopRunList
(opts *DevelopOptions, apiClient *api.Client, issueRepo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/develop/develop.go:319
↓ 1 callersFunctiondirectoryWriteError
(path string)
internal/safepaths/root.go:465
↓ 1 callersFunctiondirtyExcludingLabels
(e Editable)
pkg/cmd/pr/shared/editable_http.go:142
↓ 1 callersFunctiondisableAccessiblePrompterConfig
()
internal/ghcmd/cmd_test.go:611
↓ 1 callersFunctiondisableAutoMerge
(client *http.Client, repo ghrepo.Interface, prID string)
pkg/cmd/pr/merge/http.go:106
↓ 1 callersMethoddisableAutoMerge
Attempt to disable auto merge on the pull request.
pkg/cmd/pr/merge/merge.go:206
↓ 1 callersFunctiondisableColorLabelsConfig
()
internal/ghcmd/cmd_test.go:623
↓ 1 callersFunctiondisablePromptConfig
()
internal/ghcmd/cmd_test.go:603
↓ 1 callersFunctiondisableSpinnersConfig
()
internal/ghcmd/cmd_test.go:615
↓ 1 callersMethoddiscard
discard forgets the requests and response positions recorded so far, such as anything gh did while printing its version.
script/ghmock/server.go:114
← previousnext →3,001–3,100 of 7,487, ranked by callers