GitLabgitlab-org
cli
main
1package view
3import (
4 "context"
5 "fmt"
6 "strconv"
7 "strings"
9 "github.com/MakeNowJust/heredoc/v2"
10 "github.com/spf13/cobra"
12 gitlab "gitlab.com/gitlab-org/api/client-go/v3"
14 "gitlab.com/gitlab-org/cli/internal/cmdutils"
15 "gitlab.com/gitlab-org/cli/internal/commands/mr/mrutils"
16 "gitlab.com/gitlab-org/cli/internal/config"
17 "gitlab.com/gitlab-org/cli/internal/iostreams"
18 "gitlab.com/gitlab-org/cli/internal/mcpannotations"
19 "gitlab.com/gitlab-org/cli/internal/utils"
20)
22type options struct {
23 showComments bool
24 showSystemLogs bool
25 showResolved bool
26 showUnresolved bool
27 openInBrowser bool
28 outputFormat string
30 commentPageNumber int
31 commentLimit int
33 io *iostreams.IOStreams
34 gitlabClient func() (*gitlab.Client, error)
35 config func() config.Config
36}
38type MRWithDiscussions struct {
39 *gitlab.MergeRequest
40 Discussions []*gitlab.Discussion
41}
43func NewCmdView(f cmdutils.Factory) *cobra.Command {
44 opts := &options{
45 io: f.IO(),
46 gitlabClient: f.GitLabClient,
47 config: f.Config,
48 }
49 mrViewCmd := &cobra.Command{
50 Use: "view [<id | branch>]",
51 Short: `Display the title, body, and other information about a merge request.`,
52 Long: heredoc.Docf(`
53 You can use a branch name or ID. Use %[1]s--web%[1]s to open in a browser.
55 When output is redirected, the plain-text preview reports %[1]sconflicts: true%[1]s or %[1]sconflicts: false%[1]s. It reports %[1]sconflicts: unknown%[1]s while GitLab is still checking mergeability. In JSON output, check %[1]sdetailed_merge_status%[1]s before relying on %[1]shas_conflicts%[1]s.
56 `, "`"),
57 Example: heredoc.Doc(`
58 glab mr view 123
59 glab mr view branch-name
60 glab mr view 123 --comments
61 glab mr view 123 --output json --jq '{detailed_merge_status, has_conflicts}'
62 glab mr view 123 --web`),
63 Aliases: []string{"show"},
64 Args: cobra.MaximumNArgs(1),
65 Annotations: map[string]string{
66 mcpannotations.Safe: "true",
67 },
68 RunE: func(cmd *cobra.Command, args []string) error {
69 return opts.run(cmd.Context(), f, args)
70 },
71 }
73 mrViewCmd.Flags().BoolVarP(&opts.showComments, "comments", "c", false, "Show merge request comments and activities.")
74 mrViewCmd.Flags().BoolVarP(&opts.showSystemLogs, "system-logs", "s", false, "Show system activities and logs.")
75 mrViewCmd.Flags().BoolVar(&opts.showResolved, "resolved", false, "Show only resolved discussions (implies --comments).")
76 mrViewCmd.Flags().BoolVar(&opts.showUnresolved, "unresolved", false, "Show only unresolved discussions (implies --comments).")
77 cmdutils.EnableJSONOutput(mrViewCmd, opts.io, &opts.outputFormat)
78 mrViewCmd.Flags().BoolVarP(&opts.openInBrowser, "web", "w", false, "Open merge request in a browser. Uses default browser or browser specified in BROWSER variable.")
79 mrViewCmd.Flags().IntVarP(&opts.commentPageNumber, "page", "p", 0, "Page number.")
80 mrViewCmd.Flags().IntVarP(&opts.commentLimit, "per-page", "P", 20, "Number of items to list per page.")
82 return mrViewCmd
83}
85func (o *options) run(ctx context.Context, f cmdutils.Factory, args []string) error {
86 // Opening in a browser only needs the web URL, so it skips the extra
87 // merge request and approval state requests the terminal output needs.
88 if o.openInBrowser {
89 return o.openMRInBrowser(ctx, f, args)
90 }
92 client, err := o.gitlabClient()
93 if err != nil {
94 return err
95 }
97 // Only JSON output prints these fields, and the diverged commits count costs a Gitaly call.
98 var getOpts *gitlab.GetMergeRequestsOptions
99 if o.outputFormat == "json" {
100 getOpts = &gitlab.GetMergeRequestsOptions{
101 IncludeDivergedCommitsCount: new(true),
102 RenderHTML: new(true),
103 IncludeRebaseInProgress: new(true),
104 }
105 }
107 mr, baseRepo, err := mrutils.MRFromArgsWithOpts(ctx, f, args, getOpts, "any")
108 if err != nil {
109 return err
110 }
112 // Only the TTY preview shows approval state. Project.ApprovalsBeforeMerge
113 // isn't a pointer, so support can't be checked first. Try it and ignore a failure.
114 ttyPreview := o.outputFormat != "json" && o.io.IsOutputTTY()
115 var mrApprovals *gitlab.MergeRequestApprovalState
116 if ttyPreview {
117 mrApprovals, _, _ = client.MergeRequestApprovals.GetApprovalState(baseRepo.FullName(), mr.IID)
118 }
120 cfg := o.config()
122 discussions := []*gitlab.Discussion{}
124 // --resolved and --unresolved imply --comments
125 if o.showResolved || o.showUnresolved {
126 o.showComments = true
127 }
129 if o.showComments {
130 l := &gitlab.ListMergeRequestDiscussionsOptions{
131 ListOptions: gitlab.ListOptions{
132 Page: int64(o.commentPageNumber),
133 PerPage: int64(o.commentLimit),
134 Sort: "asc",
135 },
136 }
138 discussions, err = mrutils.ListAllDiscussions(ctx, client, baseRepo.FullName(), mr.IID, l)
139 if err != nil {
140 return err
141 }
143 // Filter discussions based on resolution status
144 if o.showResolved || o.showUnresolved {
145 var state string
146 switch {
147 case o.showResolved && o.showUnresolved:
148 state = "resolvable"
149 case o.showResolved:
150 state = "resolved"
151 default:
152 state = "unresolved"
153 }
154 discussions = mrutils.FilterDiscussions(discussions, mrutils.FilterOpts{State: state})
155 }
156 }
158 glamourStyle, _ := cfg.Get(baseRepo.RepoHost(), "glamour_style")
159 o.io.ResolveBackgroundColor(glamourStyle)
160 if err := o.io.StartPager(); err != nil {
161 return err
162 }
163 defer o.io.StopPager()
165 switch {
166 case o.outputFormat == "json":
167 return printJSONMR(o, mr, discussions)
168 case ttyPreview:
169 printTTYMRPreview(o, mr, mrApprovals, discussions)
170 default:
171 printRawMRPreview(o, mr, discussions)
172 }
173 return nil
174}
176func (o *options) openMRInBrowser(ctx context.Context, f cmdutils.Factory, args []string) error {
177 webURL, baseRepo, err := mrutils.MRWebURLFromArgs(ctx, f, args, "any")
178 if err != nil {
179 return err
180 }
182 if o.io.IsOutputTTY() {
183 o.io.LogErrorf("Opening %s in your browser.\n", utils.DisplayURL(webURL))
184 }
186 browser, _ := o.config().Get(baseRepo.RepoHost(), "browser")
187 return utils.OpenInBrowser(webURL, browser)
188}
190func labelsList(mr *gitlab.MergeRequest) string {
191 return strings.Join(mr.Labels, ", ")
192}
194func assigneesList(mr *gitlab.MergeRequest) string {
195 assignees := utils.Map(mr.Assignees, func(a *gitlab.BasicUser) string {
196 return a.Username
197 })
199 return strings.Join(assignees, ", ")
200}
202func reviewersList(mr *gitlab.MergeRequest) string {
203 reviewers := utils.Map(mr.Reviewers, func(r *gitlab.BasicUser) string {
204 return r.Username
205 })
207 return strings.Join(reviewers, ", ")
208}
210func mrState(c *iostreams.ColorPalette, mr *gitlab.MergeRequest) string {
211 switch mr.State {
212 case "opened":
213 return c.Green("open")
214 case "merged":
215 return c.Blue(mr.State)
216 default:
217 return c.Red(mr.State)
218 }
219}
221func printTTYMRPreview(opts *options, mr *gitlab.MergeRequest, mrApprovals *gitlab.MergeRequestApprovalState, discussions []*gitlab.Discussion) {
222 c := opts.io.Color()
223 out := opts.io.StdOut
224 mrTimeAgo := utils.TimeToPrettyTimeAgo(*mr.CreatedAt)
225 // Header
226 opts.io.LogInfof("%s", mr.Title)
227 opts.io.LogInfof(c.Gray(" !%d\n"), mr.IID)
228 opts.io.LogInfof("%s", mrState(c, mr))
229 opts.io.LogInfof(c.Gray(" • @%s opened %s • merge: %s → %s\n"), mr.Author.Username, mrTimeAgo, mr.SourceBranch, mr.TargetBranch)
230 opts.io.LogInfo()
232 // Description
233 if mr.Description != "" {
234 mr.Description, _ = utils.RenderMarkdown(mr.Description, opts.io.BackgroundColor())
235 opts.io.LogInfo(mr.Description)
236 }
238 opts.io.LogInfof(c.Gray("\n%d upvotes • %d downvotes • %d comments\n"), mr.Upvotes, mr.Downvotes, mr.UserNotesCount)
240 // Meta information
241 if labels := labelsList(mr); labels != "" {
242 opts.io.LogInfof("%s", c.Bold("Labels: "))
243 opts.io.LogInfo(labels)
244 }
245 if assignees := assigneesList(mr); assignees != "" {
246 opts.io.LogInfof("%s", c.Bold("Assignees: "))
247 opts.io.LogInfo(assignees)
248 }
249 if reviewers := reviewersList(mr); reviewers != "" {
250 opts.io.LogInfof("%s", c.Bold("Reviewers: "))
251 opts.io.LogInfo(reviewers)
252 }
253 if mr.Milestone != nil {
254 opts.io.LogInfof("%s", c.Bold("Milestone: "))
255 opts.io.LogInfo(mr.Milestone.Title)
256 }
257 if timeStats := utils.FormatTimeStats(mr.TimeStats); timeStats != "" {
258 opts.io.LogInfof("%s", c.Bold("Time tracking: "))
259 opts.io.LogInfo(timeStats)
260 }
261 if mr.State == "closed" {
262 if mr.ClosedBy != nil {
263 opts.io.LogInfof("Closed by: %s %s\n", mr.ClosedBy.Username, mrTimeAgo)
264 } else {
265 opts.io.LogInfof("Closed %s\n", mrTimeAgo)
266 }
267 }
268 if mr.Pipeline != nil {
269 opts.io.LogInfof("%s", c.Bold("Pipeline status: "))
270 var status string
271 switch s := mr.Pipeline.Status; s {
272 case "failed":
273 status = c.Red(s)
274 case "success":
275 status = c.Green(s)
276 default:
277 status = c.Gray(s)
278 }
279 opts.io.LogInfof("%s (View pipeline with `%s`)\n", status, c.Bold("glab ci view "+mr.SourceBranch))
281 if mr.MergeWhenPipelineSucceeds && mr.Pipeline.Status != "success" {
282 opts.io.LogInfof("%s Requires pipeline to succeed before merging.\n", c.WarnIcon())
283 }
284 }
285 if mrApprovals != nil {
286 opts.io.LogInfo(c.Bold("Approvals status:"))
287 mrutils.PrintMRApprovalState(opts.io, mrApprovals)
288 }
289 opts.io.LogInfof("%s This merge request has %s changes.\n", c.GreenCheck(), c.Yellow(mr.ChangesCount))
290 if mr.State == "merged" && mr.MergeUser != nil && mr.MergedAt != nil {
291 opts.io.LogInfof("%s The changes were merged into %s by %s %s.\n", c.GreenCheck(), mr.TargetBranch, mr.MergeUser.Name, utils.TimeToPrettyTimeAgo(*mr.MergedAt))
292 }
294 if mr.HasConflicts {
295 opts.io.LogInfof(c.Red("%s This branch has conflicts that must be resolved.\n"), c.FailedIcon())
296 }
298 // Comments
299 if opts.showComments {
300 opts.io.LogInfo(heredoc.Doc(`
301 --------------------------------------------
302 Discussions
303 --------------------------------------------
304 `))
305 if len(discussions) > 0 {
306 mrutils.PrintDiscussions(out, opts.io, discussions, mrutils.PrintDiscussionsOptions{
307 ShowSystemLogs: opts.showSystemLogs,
308 ShowSingleNoteDiscussionPrefix: false,
309 })
310 } else {
311 switch {
312 case opts.showResolved && !opts.showUnresolved:
313 opts.io.LogInfo("This merge request has no resolved threads.")
314 case opts.showUnresolved && !opts.showResolved:
315 opts.io.LogInfo("This merge request has no unresolved threads.")
316 default:
317 opts.io.LogInfo("This merge request has no comments.")
318 }
319 }
320 }
322 opts.io.LogInfo()
323 opts.io.LogInfof(c.Gray("View this merge request on GitLab: %s\n"), mr.WebURL)
324}
326func printRawMRPreview(opts *options, mr *gitlab.MergeRequest, discussions []*gitlab.Discussion) {
327 opts.io.LogInfof("%s", rawMRPreview(opts, mr, discussions))
328}
330func rawMRPreview(opts *options, mr *gitlab.MergeRequest, discussions []*gitlab.Discussion) string {
331 var out strings.Builder
333 assignees := assigneesList(mr)
334 reviewers := reviewersList(mr)
335 labels := labelsList(mr)
336 conflicts := strconv.FormatBool(mr.HasConflicts)
337 switch mr.DetailedMergeStatus {
338 case "unchecked", "checking", "preparing":
339 conflicts = "unknown"
340 }
342 fmt.Fprintf(&out, "title:\t%s\n", mr.Title) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
343 fmt.Fprintf(&out, "state:\t%s\n", mrState(opts.io.Color(), mr)) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
344 fmt.Fprintf(&out, "author:\t%s\n", mr.Author.Username) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
345 fmt.Fprintf(&out, "labels:\t%s\n", labels) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
346 fmt.Fprintf(&out, "assignees:\t%s\n", assignees) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
347 fmt.Fprintf(&out, "reviewers:\t%s\n", reviewers) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
348 fmt.Fprintf(&out, "source_branch:\t%s\n", mr.SourceBranch) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
349 fmt.Fprintf(&out, "target_branch:\t%s\n", mr.TargetBranch) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
350 fmt.Fprintf(&out, "conflicts:\t%s\n", conflicts) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
351 fmt.Fprintf(&out, "comments:\t%d\n", mr.UserNotesCount) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
352 if mr.Milestone != nil {
353 fmt.Fprintf(&out, "milestone:\t%s\n", mr.Milestone.Title) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
354 }
355 if ts := mr.TimeStats; ts != nil {
356 if ts.HumanTimeEstimate != "" {
357 fmt.Fprintf(&out, "time_estimate:\t%s\n", ts.HumanTimeEstimate) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
358 }
359 if ts.HumanTotalTimeSpent != "" {
360 fmt.Fprintf(&out, "time_spent:\t%s\n", ts.HumanTotalTimeSpent) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
361 }
362 }
363 fmt.Fprintf(&out, "number:\t%d\n", mr.IID) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
364 fmt.Fprintf(&out, "url:\t%s\n", mr.WebURL) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
365 fmt.Fprintf(&out, "--\n") //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
366 fmt.Fprintf(&out, "%s\n", mr.Description) //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
368 if opts.showComments {
369 if len(discussions) > 0 {
370 mrutils.PrintDiscussions(&out, opts.io, discussions, mrutils.PrintDiscussionsOptions{
371 ShowSystemLogs: opts.showSystemLogs,
372 ShowSingleNoteDiscussionPrefix: false,
373 })
374 } else {
375 fmt.Fprintln(&out, "This merge request has no comments.") //nolint:forbidigo // writing to strings.Builder, not stdout/stderr
376 }
377 }
379 return out.String()
380}
382func printJSONMR(opts *options, mr *gitlab.MergeRequest, discussions []*gitlab.Discussion) error {
383 if opts.showComments {
384 return opts.io.PrintJSON(MRWithDiscussions{mr, discussions})
385 }
386 return opts.io.PrintJSON(mr)
387}
Diagnostics8 git calls · 260 ms
CallStatusSizeTime0260 ms
discover200185 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=185 git.server.agent=git/2.56.g1891de4-Linux git.server.object_format=sha1 git.server.caps=agent ls-refs fetch server-option object-format git.server.fetch=shallow wait-for-done filter git.protocol.version=2 git.pkt.frames=9 git.pkt.data=7 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=185 git.pkt.payload.max=35
ls-refs20058 KiB2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=59849 git.response.cache=UPDATING git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=731 git.pkt.data=730 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=59849 git.pkt.payload.max=143 git.ls_refs.count=730 git.ls_refs.head=refs/heads/main
fetchcombine:blob:none+tree:2 · deepen 12004.2 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=4273 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=combine:blob:none+tree:2 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=1 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=7 git.pkt.data=5 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=4273 git.pkt.payload.max=4173 git.sideband.band1.bytes=4173 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=11 git.pack.bytes=4173 git.fetch.wide.objects=11 git.fetch.wide.extra_bytes=3930 git.fetch.wide.blobs=0
fetchtree:0 · deepen 1020032 KiB · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=32926 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=tree:0 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=22 git.pkt.data=20 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=32926 git.pkt.payload.max=32046 git.sideband.band1.bytes=32046 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=80 git.pack.bytes=32046 git.pack.ofs_delta=36 git.pack.ref_delta=0 git.pack.chain.max=2 git.pack.trailer=cb0bad5d7ffc514895d8b21c4dd470327f90bc91 git.pack.full=44Open pack map
fetchtree:02001.8 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=1857 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=dce174ff8c632a19d17eea99c8a9b7c37fb2b592 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=1857 git.pkt.payload.max=1830 git.sideband.band1.bytes=1830 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=1830 git.pack.trailer=fb03183b7909876778f740d196d7516811003517Open pack map
fetchtree:0200746 B · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=746 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=tree:0 git.fetch.wants=f3d413a22af5a9c2fe9aa49709b1cb36d1351a7f git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=746 git.pkt.payload.max=719 git.sideband.band1.bytes=719 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=719 git.pack.trailer=330baf80c59a4208b55120dff7dd824b7952b790Open pack map
fetchtree:0200138 B · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=247 git.response.bytes=138 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=tree:0 git.fetch.wants=00952a766b46b28c5923c4b7c7931d90f8e154a5 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=138 git.pkt.payload.max=111 git.sideband.band1.bytes=111 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=111 git.pack.trailer=32847c375d27828204f822a8b513dfb0caa8a797Open pack map
fetch2003.9 KiB247 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=3969 git.response.cache=MISS git.response.duration_ms=247 git.fetch.wants=82ac1cdd47431e1a9b574e6ce447162d2d41496f git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=3969 git.pkt.payload.max=3942 git.sideband.band1.bytes=3942 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://gitlab.com/gitlab-org/cli
- Ref
- refs/heads/main
- Commit
- 0dd7574dce9e385c5c30540e6c15657adc6bdce9
- cf-ray
- a5e2d9ca5bff14c2
- Request
- ce61dfad…
- Protocol
- v2 · sha1
- Agent
- git/2.56.g1891de4-Linux
- Filter
- advertised
- Fetch
- shallow wait-for-done filter
- Capabilities
- agent ls-refs fetch server-option object-format