forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

treewide: fmt

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 006d6dad 3b9bb0da

verified
Changed files
+11 -11
appview
db
pulls
+5 -5
appview/db/pulls.go
···
}
record := tangled.RepoPull{
-
Title: p.Title,
-
Body: &p.Body,
-
CreatedAt: p.Created.Format(time.RFC3339),
+
Title: p.Title,
+
Body: &p.Body,
+
CreatedAt: p.Created.Format(time.RFC3339),
Target: &tangled.RepoPull_Target{
Repo: p.RepoAt.String(),
Branch: p.TargetBranch,
},
-
Patch: p.LatestPatch(),
-
Source: source,
+
Patch: p.LatestPatch(),
+
Source: source,
}
return record
}
+6 -6
appview/pulls/pulls.go
···
Rkey: rkey,
Record: &lexutil.LexiconTypeDecoder{
Val: &tangled.RepoPull{
-
Title: title,
+
Title: title,
Target: &tangled.RepoPull_Target{
Repo: string(f.RepoAt()),
Branch: targetBranch,
},
-
Patch: patch,
-
Source: recordPullSource,
+
Patch: patch,
+
Source: recordPullSource,
},
},
})
···
SwapRecord: ex.Cid,
Record: &lexutil.LexiconTypeDecoder{
Val: &tangled.RepoPull{
-
Title: pull.Title,
+
Title: pull.Title,
Target: &tangled.RepoPull_Target{
Repo: string(f.RepoAt()),
Branch: pull.TargetBranch,
},
-
Patch: patch, // new patch
-
Source: recordPullSource,
+
Patch: patch, // new patch
+
Source: recordPullSource,
},
},
})