+5
-5
appview/db/pulls.go
+5
-5
appview/db/pulls.go
···
91
}
92
93
record := tangled.RepoPull{
94
-
Title: p.Title,
95
-
Body: &p.Body,
96
-
CreatedAt: p.Created.Format(time.RFC3339),
97
Target: &tangled.RepoPull_Target{
98
Repo: p.RepoAt.String(),
99
Branch: p.TargetBranch,
100
},
101
-
Patch: p.LatestPatch(),
102
-
Source: source,
103
}
104
return record
105
}
···
91
}
92
93
record := tangled.RepoPull{
94
+
Title: p.Title,
95
+
Body: &p.Body,
96
+
CreatedAt: p.Created.Format(time.RFC3339),
97
Target: &tangled.RepoPull_Target{
98
Repo: p.RepoAt.String(),
99
Branch: p.TargetBranch,
100
},
101
+
Patch: p.LatestPatch(),
102
+
Source: source,
103
}
104
return record
105
}
+6
-6
appview/pulls/pulls.go
+6
-6
appview/pulls/pulls.go
···
1037
Rkey: rkey,
1038
Record: &lexutil.LexiconTypeDecoder{
1039
Val: &tangled.RepoPull{
1040
-
Title: title,
1041
Target: &tangled.RepoPull_Target{
1042
Repo: string(f.RepoAt()),
1043
Branch: targetBranch,
1044
},
1045
-
Patch: patch,
1046
-
Source: recordPullSource,
1047
},
1048
},
1049
})
···
1611
SwapRecord: ex.Cid,
1612
Record: &lexutil.LexiconTypeDecoder{
1613
Val: &tangled.RepoPull{
1614
-
Title: pull.Title,
1615
Target: &tangled.RepoPull_Target{
1616
Repo: string(f.RepoAt()),
1617
Branch: pull.TargetBranch,
1618
},
1619
-
Patch: patch, // new patch
1620
-
Source: recordPullSource,
1621
},
1622
},
1623
})
···
1037
Rkey: rkey,
1038
Record: &lexutil.LexiconTypeDecoder{
1039
Val: &tangled.RepoPull{
1040
+
Title: title,
1041
Target: &tangled.RepoPull_Target{
1042
Repo: string(f.RepoAt()),
1043
Branch: targetBranch,
1044
},
1045
+
Patch: patch,
1046
+
Source: recordPullSource,
1047
},
1048
},
1049
})
···
1611
SwapRecord: ex.Cid,
1612
Record: &lexutil.LexiconTypeDecoder{
1613
Val: &tangled.RepoPull{
1614
+
Title: pull.Title,
1615
Target: &tangled.RepoPull_Target{
1616
Repo: string(f.RepoAt()),
1617
Branch: pull.TargetBranch,
1618
},
1619
+
Patch: patch, // new patch
1620
+
Source: recordPullSource,
1621
},
1622
},
1623
})