+1
-49
api/tangled/cbor_gen.go
+1
-49
api/tangled/cbor_gen.go
···
6946
6946
}
6947
6947
6948
6948
cw := cbg.NewCborWriter(w)
6949
-
fieldCount := 9
6949
+
fieldCount := 8
6950
6950
6951
6951
if t.Body == nil {
6952
6952
fieldCount--
···
7055
7055
}
7056
7056
if _, err := cw.WriteString(string(t.Title)); err != nil {
7057
7057
return err
7058
-
}
7059
-
7060
-
// t.PullId (int64) (int64)
7061
-
if len("pullId") > 1000000 {
7062
-
return xerrors.Errorf("Value in field \"pullId\" was too long")
7063
-
}
7064
-
7065
-
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("pullId"))); err != nil {
7066
-
return err
7067
-
}
7068
-
if _, err := cw.WriteString(string("pullId")); err != nil {
7069
-
return err
7070
-
}
7071
-
7072
-
if t.PullId >= 0 {
7073
-
if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.PullId)); err != nil {
7074
-
return err
7075
-
}
7076
-
} else {
7077
-
if err := cw.WriteMajorTypeHeader(cbg.MajNegativeInt, uint64(-t.PullId-1)); err != nil {
7078
-
return err
7079
-
}
7080
7058
}
7081
7059
7082
7060
// t.Source (tangled.RepoPull_Source) (struct)
···
7263
7241
}
7264
7242
7265
7243
t.Title = string(sval)
7266
-
}
7267
-
// t.PullId (int64) (int64)
7268
-
case "pullId":
7269
-
{
7270
-
maj, extra, err := cr.ReadHeader()
7271
-
if err != nil {
7272
-
return err
7273
-
}
7274
-
var extraI int64
7275
-
switch maj {
7276
-
case cbg.MajUnsignedInt:
7277
-
extraI = int64(extra)
7278
-
if extraI < 0 {
7279
-
return fmt.Errorf("int64 positive overflow")
7280
-
}
7281
-
case cbg.MajNegativeInt:
7282
-
extraI = int64(extra)
7283
-
if extraI < 0 {
7284
-
return fmt.Errorf("int64 negative overflow")
7285
-
}
7286
-
extraI = -1 - extraI
7287
-
default:
7288
-
return fmt.Errorf("wrong type for int64 field: %d", maj)
7289
-
}
7290
-
7291
-
t.PullId = int64(extraI)
7292
7244
}
7293
7245
// t.Source (tangled.RepoPull_Source) (struct)
7294
7246
case "source":
-1
api/tangled/repopull.go
-1
api/tangled/repopull.go
···
21
21
Body *string `json:"body,omitempty" cborgen:"body,omitempty"`
22
22
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
23
23
Patch string `json:"patch" cborgen:"patch"`
24
-
PullId int64 `json:"pullId" cborgen:"pullId"`
25
24
Source *RepoPull_Source `json:"source,omitempty" cborgen:"source,omitempty"`
26
25
TargetBranch string `json:"targetBranch" cborgen:"targetBranch"`
27
26
TargetRepo string `json:"targetRepo" cborgen:"targetRepo"`
-1
appview/db/pulls.go
-1
appview/db/pulls.go
-2
appview/pulls/pulls.go
-2
appview/pulls/pulls.go
···
1030
1030
Record: &lexutil.LexiconTypeDecoder{
1031
1031
Val: &tangled.RepoPull{
1032
1032
Title: title,
1033
-
PullId: int64(pullId),
1034
1033
TargetRepo: string(f.RepoAt),
1035
1034
TargetBranch: targetBranch,
1036
1035
Patch: patch,
···
1592
1591
Record: &lexutil.LexiconTypeDecoder{
1593
1592
Val: &tangled.RepoPull{
1594
1593
Title: pull.Title,
1595
-
PullId: int64(pull.PullId),
1596
1594
TargetRepo: string(f.RepoAt),
1597
1595
TargetBranch: pull.TargetBranch,
1598
1596
Patch: patch, // new patch
-4
lexicons/pulls/pull.json
-4
lexicons/pulls/pull.json