Monorepo for Tangled
0

Configure Feed

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

lexicons/git: `git.formatPatch`

Signed-off-by: Seongmin Lee <git@boltless.me>

Seongmin Lee (Jul 14, 2026, 4:05 AM +0900) 62859cf7 345e3b94

+76
+33
api/tangled/tempformatPatch.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.git.temp.formatPatch 6 + 7 + import ( 8 + "bytes" 9 + "context" 10 + 11 + "github.com/bluesky-social/indigo/lex/util" 12 + ) 13 + 14 + const ( 15 + GitTempFormatPatchNSID = "sh.tangled.git.temp.formatPatch" 16 + ) 17 + 18 + // GitTempFormatPatch calls the XRPC method "sh.tangled.git.temp.formatPatch". 19 + // 20 + // repo: DID of the repository 21 + func GitTempFormatPatch(ctx context.Context, c util.LexClient, from string, repo string, to string) ([]byte, error) { 22 + buf := new(bytes.Buffer) 23 + 24 + params := map[string]interface{}{} 25 + params["from"] = from 26 + params["repo"] = repo 27 + params["to"] = to 28 + if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.formatPatch", params, nil, buf); err != nil { 29 + return nil, err 30 + } 31 + 32 + return buf.Bytes(), nil 33 + }
+43
lexicons/git/temp/formatPatch.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.formatPatch", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "from", "to"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "did", 14 + "description": "DID of the repository" 15 + }, 16 + "from": { 17 + "type": "string" 18 + }, 19 + "to": { 20 + "type": "string" 21 + } 22 + } 23 + }, 24 + "output": { 25 + "encoding": "*/*" 26 + }, 27 + "errors": [ 28 + { 29 + "name": "RepoNotFound", 30 + "description": "Repository not found or access denied" 31 + }, 32 + { 33 + "name": "RevisionNotFound", 34 + "description": "One or both revisions not found" 35 + }, 36 + { 37 + "name": "InvalidRequest", 38 + "description": "Invalid request parameters" 39 + } 40 + ] 41 + } 42 + } 43 + }