MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionnormalizeHost
(host string)
internal/skills/source/source.go:70
↓ 1 callersFunctionnormalizeJSON
(j []byte)
pkg/cmd/codespace/ports.go:398
↓ 1 callersFunctionnormalizeTask
(t string)
script/build.go:269
↓ 1 callersFunctionnullability
nullability says whether a field's value can be null, or for input fields, whether the field is required.
script/ghmock/schemacmd.go:185
↓ 1 callersFunctionnumbered
(n int)
script/ghmock/run_test.go:1688
↓ 1 callersFunctionnumbers
numbers returns the numbers from first to last.
pkg/cmd/issue/artifact/client/client_test.go:860
↓ 1 callersFunctionobservedAt
(evidence: Evidence, action: Action, call: GhCall)
evals/src/suites/events/grading/observations.ts:139
↓ 1 callersFunctionobservedProcess
(t: TestContext, source: string)
evals/src/harness.test.ts:31
↓ 1 callersFunctionoffSchema
(e loggedRequest)
script/ghmock/run_test.go:1683
↓ 1 callersFunctionok
(stdout: string)
evals/src/smoke.test.ts:86
↓ 1 callersFunctiononlyIn
onlyIn lists the fields in a that b doesn't ask for. A new object is listed once, without the fields inside it.
script/ghmock/trim.go:192
↓ 1 callersMethodopenDir
openDir opens the directory the file at path goes in, through safepaths, creating it and any missing parents: Dir, or with Output, the file's parent d
pkg/cmd/issue/artifact/download/download.go:455
↓ 1 callersFunctionopenInBrowser
(opts *ListOptions, repo ghrepo.Interface)
pkg/cmd/discussion/list/list.go:268
↓ 1 callersFunctionopenInBrowser
openInBrowser opens a document's page on GitHub, or a link's URL. The page comes from the API, so the message shows it like gh issue view --web does.
pkg/cmd/issue/artifact/view/view.go:169
↓ 1 callersMethodopenVerifiedDirectory
(parent *os.Root, name, displayPath string)
internal/safepaths/root.go:358
↓ 1 callersMethodopenVerifiedEntry
(parent *os.Root, name, displayPath string)
internal/safepaths/root.go:401
↓ 1 callersFunctionoperationName
operationName resolves the requested operation, or the document's sole operation when no name is supplied. Invalid selections retain the supplied name
script/ghmock/request.go:92
↓ 1 callersMethodoptionalSeconds
optionalSeconds reads a raw lifetime in seconds (an ExpiresIn field) from config, returning 0 when the key is absent so a credential without the value
internal/config/refreshable.go:288
↓ 1 callersMethodoptionalTimestamp
(path []string)
internal/config/refreshable.go:303
↓ 1 callersMethodotherBinScaffolding
(name string)
pkg/cmd/extension/manager.go:646
↓ 1 callersFunctionpagerConfig
()
internal/ghcmd/cmd_test.go:599
↓ 1 callersFunctionpaginate
paginate slices results to the requested page window.
pkg/cmd/skills/search/search.go:408
↓ 1 callersMethodpaginateOrgLogins
paginateOrgLogins after cursor and append them to the list of logins.
pkg/cmd/project/shared/queries/queries.go:1400
↓ 1 callersFunctionparse
(argv: string[])
evals/src/smoke.ts:35
↓ 1 callersFunctionparseArgv
(args: string[], spec: ArgvSpec = {})
evals/src/core/calls.ts:56
↓ 1 callersFunctionparseArtifactURL
parseArtifactURL reads an artifact URL into its repository, issue number and artifact number. Like an issue URL, it may be http, and its query and fra
pkg/cmd/issue/artifact/shared/shared.go:172
↓ 1 callersFunctionparseArtifactURLs
parseArtifactURLs reads every argument as an artifact URL on the same issue.
pkg/cmd/issue/artifact/shared/shared.go:147
↓ 1 callersFunctionparseCheckStatusFromCheckConclusionState
(state CheckConclusionState)
api/queries_pr.go:473
↓ 1 callersFunctionparseCheckStatusFromCheckRunState
(state CheckRunState)
api/queries_pr.go:456
↓ 1 callersFunctionparseCheckStatusFromStatusState
(state StatusState)
api/queries_pr.go:440
↓ 1 callersFunctionparseFields
TODO copypasta from gh api
pkg/cmd/workflow/run/run.go:171
↓ 1 callersFunctionparseGitHubURL
parseGitHubURL extracts owner/repo from a GitHub remote URL. Only github.com and GHEC data residency (*.ghe.com) URLs are recognized.
pkg/cmd/skills/publish/publish.go:1000
↓ 1 callersFunctionparseGraphQL
(body []byte)
script/ghmock/request.go:72
↓ 1 callersFunctionparseInstalledSkill
parseInstalledSkill parses a SKILL.md file and returns an installedSkill.
pkg/cmd/skills/update/update.go:654
↓ 1 callersFunctionparseInstalledSkill
(data []byte, name, dir string, agentHostIDs []string, scope string)
pkg/cmd/skills/list/list.go:391
↓ 1 callersMethodparsePortVisibilities
(args []string)
pkg/cmd/codespace/ports.go:283
↓ 1 callersFunctionparseRepoID
parseRepoID parses the github-repo-id metadata value. A missing value returns 0, as skills installed by earlier versions don't record it.
pkg/cmd/skills/update/update.go:699
↓ 1 callersFunctionparseReviewers
parseReviewers parses given Reviews and ReviewRequests
pkg/cmd/pr/view/view.go:375
↓ 1 callersFunctionparseSection
(baseRepo ghrepo.Interface, opts *BrowseOptions)
pkg/cmd/browse/browse.go:230
↓ 1 callersFunctionparseSkillFromOpts
(opts *InstallOptions)
pkg/cmd/skills/install/install.go:588
↓ 1 callersFunctionparseSource
parseSource reads one file or URL argument. An http:// or https:// argument is always a link, and any `#` stays part of the URL. Like every link, a UR
pkg/cmd/issue/artifact/create/create.go:250
↓ 1 callersFunctionparseTopics
(s string)
pkg/cmd/repo/edit/edit.go:559
↓ 1 callersFunctionparseTwirpPath
parseTwirpPath extracts path components form a valid Twirp route. Expected format: "[<prefix>]/<package>.<Service>/<Method>" e.g.: prefix, pkgService,
internal/barista/observability/telemetry.twirp.go:667
↓ 1 callersFunctionpatchEnvVariable
(client *api.Client, host string, repoID int64, envName, variableName, value string)
pkg/cmd/variable/set/http.go:156
↓ 1 callersFunctionpatchOrgVariable
(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64)
pkg/cmd/variable/set/http.go:143
↓ 1 callersFunctionpatchRepoVariable
(client *api.Client, repo ghrepo.Interface, variableName, value string)
pkg/cmd/variable/set/http.go:167
↓ 1 callersMethodperform
(step: ActorStep, pr: PullRequest)
evals/src/suites/events/actor.ts:107
↓ 1 callersFunctionpickExample
pickExample returns a copy of the example for a response body, preferring the one named default.
script/ghmock/restscaffold.go:97
↓ 1 callersFunctionpickStatus
pickStatus finds the response to describe: the one asked for, or else the first success. It returns a nil response if there's no such status.
script/ghmock/schemacmd.go:359
↓ 1 callersFunctionpinIssue
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/pin/pin.go:115
↓ 1 callersFunctionpngArg
()
internal/attachments/references_test.go:17
↓ 1 callersFunctionpngBytes
()
pkg/cmd/repo/read-file/read_file_test.go:1060
↓ 1 callersMethodpollForPermissions
(ctx context.Context, createParams *api.CreateCodespaceParams)
pkg/cmd/codespace/create.go:422
↓ 1 callersFunctionpolling
()
evals/src/graders.test.ts:109
↓ 1 callersMethodpopulateLatestVersions
(exts []*Extension)
pkg/cmd/extension/manager.go:202
↓ 1 callersFunctionpopulateLogSegments
populateLogSegments populates log segments from the provided jobs and data available in the given ZIP archive map. Any missing logs will be assigned a
pkg/cmd/run/view/logs.go:93
↓ 1 callersFunctionpopulateResolvedRemotes
(remotes RemoteSet, resolved []string)
git/client.go:1049
↓ 1 callersFunctionpopulateStatusChecks
(client *http.Client, repo ghrepo.Interface, pr *api.PullRequest, requiredChecks bool, includeEvent bool)
pkg/cmd/pr/checks/checks.go:256
↓ 1 callersFunctionportableGitPath
(path, root string)
script/ghmock/archive.go:157
↓ 1 callersFunctionpossibleDists
()
pkg/cmd/extension/manager.go:800
↓ 1 callersMethodpostAsset
postAsset does the request and reads the asset URL back. It takes the file rather than the UserAsset, because nothing about sending the bytes depends
internal/attachments/client.go:105
↓ 1 callersFunctionpostEnvVariable
(client *api.Client, host string, repoID int64, envName, variableName, value string)
pkg/cmd/variable/set/http.go:110
↓ 1 callersFunctionpostOrgVariable
(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64)
pkg/cmd/variable/set/http.go:96
↓ 1 callersFunctionpostRepoVariable
(client *api.Client, repo ghrepo.Interface, variableName, value string)
pkg/cmd/variable/set/http.go:122
↓ 1 callersFunctionprStateWithDraft
(pr *api.PullRequest)
pkg/cmd/pr/view/view.go:503
↓ 1 callersFunctionpreloadClosedByPullRequestsReferences
(client *http.Client, repo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/view/http.go:56
↓ 1 callersFunctionpreloadIssueComments
(client *http.Client, repo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/view/http.go:11
↓ 1 callersFunctionpreloadPrChecks
(client *http.Client, repo ghrepo.Interface, pr *api.PullRequest)
pkg/cmd/pr/shared/finder.go:561
↓ 1 callersFunctionpreloadPrClosingIssuesReferences
(client *http.Client, repo ghrepo.Interface, pr *api.PullRequest)
pkg/cmd/pr/shared/finder.go:522
↓ 1 callersFunctionpreloadPrComments
(client *http.Client, repo ghrepo.Interface, pr *api.PullRequest)
pkg/cmd/pr/shared/finder.go:482
↓ 1 callersFunctionpreloadPrReviews
(httpClient *http.Client, repo ghrepo.Interface, pr *api.PullRequest)
pkg/cmd/pr/shared/finder.go:442
↓ 1 callersFunctionpreloadWorkflowNames
(client *api.Client, repo ghrepo.Interface, runs []Run)
pkg/cmd/run/shared/shared.go:445
↓ 1 callersFunctionprepareExportDir
prepareExportDir creates dir, or checks that it's empty, so an export never mixes with other files.
script/ghmock/export.go:149
↓ 1 callersFunctionpressN
()
internal/prompter/huh_prompter_test.go:101
↓ 1 callersFunctionpressY
()
internal/prompter/huh_prompter_test.go:97
↓ 1 callersFunctionpreviewPR
(opts CreateOptions, openURL string)
pkg/cmd/pr/create/create.go:1236
↓ 1 callersFunctionprintAliases
(w io.Writer, cmd *cobra.Command)
internal/docs/markdown.go:29
↓ 1 callersFunctionprintArtifacts
(ios *iostreams.IOStreams, now time.Time, artifacts []client.Artifact)
pkg/cmd/issue/artifact/list/list.go:174
↓ 1 callersFunctionprintBody
printBody writes one artifact's body to standard output with nothing else, so a script gets the body as it's stored. A link's body is its URL. There i
pkg/cmd/issue/artifact/download/download.go:205
↓ 1 callersFunctionprintContent
printContent prints a gist with optional description and content similar to `gh search code` including highlighted matches in the form: {{gist ID}}
pkg/cmd/gist/list/list.go:224
↓ 1 callersFunctionprintDifferences
(w io.Writer, base, other runResult, n int)
script/ghmock/report.go:292
↓ 1 callersFunctionprintDiscussions
(opts *ListOptions, repoName string, discussions []client.Discussion, totalCount int)
pkg/cmd/discussion/list/list.go:316
↓ 1 callersFunctionprintDraftIssueResults
(config editItemConfig, item queries.DraftIssue)
pkg/cmd/project/item-edit/item_edit.go:410
↓ 1 callersFunctionprintEditHistory
printEditHistory lists every version the API returned, newest first, with who saved it and when. "Current" marks the newest version, and "Viewing" mar
pkg/cmd/issue/artifact/view/view.go:294
↓ 1 callersFunctionprintError
(w io.Writer, err error)
pkg/cmd/ssh-key/list/list.go:121
↓ 1 callersFunctionprintEventListenHint
printEventListenHint points agents at `gh event listen` after a successful read of a pull request REST endpoint, because agents tend to poll such endp
pkg/cmd/api/hint.go:18
↓ 1 callersFunctionprintEventListenHint
printEventListenHint points agents at `gh event listen`, because agents tend to poll `gh run view` when asked to wait for the checks of a pull request
pkg/cmd/run/view/hint.go:15
↓ 1 callersFunctionprintEventListenHint
printEventListenHint points agents at `gh event listen`, because agents tend to poll `gh pr view` when asked to wait for a pull request to change.
pkg/cmd/pr/view/hint.go:14
↓ 1 callersFunctionprintFailure
printFailure reports an artifact gh couldn't delete, on stderr. In a terminal, it's the failure line the other artifact commands print. Piped, it's "<
pkg/cmd/issue/artifact/delete/delete.go:181
↓ 1 callersFunctionprintHeaders
(w io.Writer, headers http.Header, colorize bool)
pkg/cmd/api/api.go:628
↓ 1 callersFunctionprintHumanArtifact
(opts *ViewOptions, repo ghrepo.Interface, a *client.ArtifactWithVersions, viewing *client.Version)
pkg/cmd/issue/artifact/view/view.go:215
↓ 1 callersFunctionprintHumanCommentAndReplies
(opts *ViewOptions, c *client.DiscussionComment)
pkg/cmd/discussion/view/view.go:630
↓ 1 callersFunctionprintHumanIssuePreview
(opts *ViewOptions, baseRepo ghrepo.Interface, issue *api.Issue)
pkg/cmd/issue/view/view.go:247
↓ 1 callersFunctionprintHumanPrPreview
(opts *ViewOptions, baseRepo ghrepo.Interface, pr *api.PullRequest)
pkg/cmd/pr/view/view.go:208
↓ 1 callersFunctionprintHumanView
(opts *ViewOptions, d *client.Discussion)
pkg/cmd/discussion/view/view.go:343
↓ 1 callersFunctionprintInspectionSummary
(logger *io.Handler, bundles []BundleInspection)
pkg/cmd/attestation/inspect/inspect.go:252
↓ 1 callersFunctionprintJSON
(config deleteItemConfig, id githubv4.ID)
pkg/cmd/project/item-delete/item_delete.go:128
↓ 1 callersFunctionprintJSONFields
(w io.Writer, cmd *cobra.Command)
internal/docs/markdown.go:18
↓ 1 callersFunctionprintLabels
(io *iostreams.IOStreams, labels []label)
pkg/cmd/label/list.go:135
↓ 1 callersFunctionprintLinkedBranches
(io *iostreams.IOStreams, branches []api.LinkedBranch)
pkg/cmd/issue/develop/develop.go:342
← previousnext →3,601–3,700 of 7,572, ranked by callers