A vibe coded tangled fork which supports pijul.
at sl/knotmirror 50 lines 1.7 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.git.temp.analyzeMerge 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 GitTempAnalyzeMergeNSID = "sh.tangled.git.temp.analyzeMerge" 15) 16 17// GitTempAnalyzeMerge_ConflictInfo is a "conflictInfo" in the sh.tangled.git.temp.analyzeMerge schema. 18type GitTempAnalyzeMerge_ConflictInfo struct { 19 // filename: Name of the conflicted file 20 Filename string `json:"filename" cborgen:"filename"` 21 // reason: Reason for the conflict 22 Reason string `json:"reason" cborgen:"reason"` 23} 24 25// GitTempAnalyzeMerge_Output is the output of a sh.tangled.git.temp.analyzeMerge call. 26type GitTempAnalyzeMerge_Output struct { 27 // conflicts: List of files with merge conflicts 28 Conflicts []*GitTempAnalyzeMerge_ConflictInfo `json:"conflicts,omitempty" cborgen:"conflicts,omitempty"` 29 // is_conflicted: Whether the merge has conflicts 30 Is_conflicted bool `json:"is_conflicted" cborgen:"is_conflicted"` 31} 32 33// GitTempAnalyzeMerge calls the XRPC method "sh.tangled.git.temp.analyzeMerge". 34// 35// branch: Target branch to merge into 36// patch: Patch or pull request to check for merge conflicts 37// repo: AT-URI of the repository 38func GitTempAnalyzeMerge(ctx context.Context, c util.LexClient, branch string, patch string, repo string) (*GitTempAnalyzeMerge_Output, error) { 39 var out GitTempAnalyzeMerge_Output 40 41 params := map[string]interface{}{} 42 params["branch"] = branch 43 params["patch"] = patch 44 params["repo"] = repo 45 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.analyzeMerge", params, nil, &out); err != nil { 46 return nil, err 47 } 48 49 return &out, nil 50}