A terminal client for Tangled.
tui go tangled cli
8

Configure Feed

Select the types of activity you want to include in your feed.

pr_create: replace target repo with repo did and correct patch mime type

Aly Raffauf (Jul 15, 2026, 2:15 PM EDT) 33b11090 6b6f0bff

+29 -18
+29 -18
internal/cli/pr_create.go
··· 13 13 "github.com/spf13/cobra" 14 14 ) 15 15 16 - const patchMimeType = "application/vnd.git.patch+gzip" 16 + const patchMimeType = "application/gzip" 17 17 18 18 var ( 19 19 prCreateTitle string ··· 85 85 } 86 86 87 87 uri, err := createPullRecord(ctx, atClient, auth.CurrentDID().String(), prCreateRecord{ 88 - Title: prCreateTitle, 89 - Body: body, 90 - TargetRepo: target.URI, 91 - Base: base, 92 - Head: head, 93 - Patch: blob, 88 + Title: prCreateTitle, 89 + Body: body, 90 + RepoDid: target.Value.RepoDid, 91 + Base: base, 92 + Head: head, 93 + Patch: blob, 94 94 }) 95 95 if err != nil { 96 96 return err ··· 113 113 } 114 114 115 115 type prCreateRecord struct { 116 - Title string 117 - Body string 118 - TargetRepo string 119 - Base string 120 - Head string 121 - Patch *atproto.Blob 116 + Title string 117 + Body string 118 + RepoDid string 119 + Base string 120 + Head string 121 + Patch *atproto.Blob 122 122 } 123 123 124 124 // pullRecord is the sh.tangled.repo.pull lexicon shape used for record writes. ··· 133 133 } 134 134 135 135 type pullTarget struct { 136 - Repo string `json:"repo"` 137 - Branch string `json:"branch"` 136 + Repo string `json:"repo"` 137 + RepoDid string `json:"repoDid"` 138 + Branch string `json:"branch"` 138 139 } 139 140 140 141 type pullSource struct { 141 - Branch string `json:"branch"` 142 + Repo string `json:"repo"` 143 + RepoDid string `json:"repoDid"` 144 + Branch string `json:"branch"` 142 145 } 143 146 144 147 type pullRound struct { ··· 182 185 Title: input.Title, 183 186 Body: input.Body, 184 187 CreatedAt: now, 185 - Target: pullTarget{Repo: input.TargetRepo, Branch: input.Base}, 186 - Source: pullSource{Branch: input.Head}, 188 + Target: pullTarget{ 189 + Repo: input.RepoDid, 190 + RepoDid: input.RepoDid, 191 + Branch: input.Base, 192 + }, 193 + Source: pullSource{ 194 + Repo: input.RepoDid, 195 + RepoDid: input.RepoDid, 196 + Branch: input.Head, 197 + }, 187 198 Rounds: []pullRound{{ 188 199 CreatedAt: now, 189 200 PatchBlob: input.Patch,