Monorepo for Tangled
0

Configure Feed

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

api,lexicons: createdAt in issue.state & pull.status

Lewis: May this revision serve well! <lewis@tangled.org>

authored by

Lewis and committed by
Tangled
(Jun 29, 2026, 8:20 PM +0300) 02c365f3 ff6ea80a

+86 -6
+72 -4
api/tangled/cbor_gen.go
··· 9323 9323 9324 9324 cw := cbg.NewCborWriter(w) 9325 9325 9326 - if _, err := cw.Write([]byte{163}); err != nil { 9326 + if _, err := cw.Write([]byte{164}); err != nil { 9327 9327 return err 9328 9328 } 9329 9329 ··· 9391 9391 if _, err := cw.WriteString(string(t.State)); err != nil { 9392 9392 return err 9393 9393 } 9394 + 9395 + // t.CreatedAt (string) (string) 9396 + if len("createdAt") > 1000000 { 9397 + return xerrors.Errorf("Value in field \"createdAt\" was too long") 9398 + } 9399 + 9400 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("createdAt"))); err != nil { 9401 + return err 9402 + } 9403 + if _, err := cw.WriteString(string("createdAt")); err != nil { 9404 + return err 9405 + } 9406 + 9407 + if len(t.CreatedAt) > 1000000 { 9408 + return xerrors.Errorf("Value in field t.CreatedAt was too long") 9409 + } 9410 + 9411 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.CreatedAt))); err != nil { 9412 + return err 9413 + } 9414 + if _, err := cw.WriteString(string(t.CreatedAt)); err != nil { 9415 + return err 9416 + } 9394 9417 return nil 9395 9418 } 9396 9419 ··· 9419 9442 9420 9443 n := extra 9421 9444 9422 - nameBuf := make([]byte, 5) 9445 + nameBuf := make([]byte, 9) 9423 9446 for i := uint64(0); i < n; i++ { 9424 9447 nameLen, ok, err := cbg.ReadFullStringIntoBuf(cr, nameBuf, 1000000) 9425 9448 if err != nil { ··· 9467 9490 } 9468 9491 9469 9492 t.State = string(sval) 9493 + } 9494 + // t.CreatedAt (string) (string) 9495 + case "createdAt": 9496 + 9497 + { 9498 + sval, err := cbg.ReadStringWithMax(cr, 1000000) 9499 + if err != nil { 9500 + return err 9501 + } 9502 + 9503 + t.CreatedAt = string(sval) 9470 9504 } 9471 9505 9472 9506 default: ··· 10733 10767 10734 10768 cw := cbg.NewCborWriter(w) 10735 10769 10736 - if _, err := cw.Write([]byte{163}); err != nil { 10770 + if _, err := cw.Write([]byte{164}); err != nil { 10737 10771 return err 10738 10772 } 10739 10773 ··· 10801 10835 if _, err := cw.WriteString(string(t.Status)); err != nil { 10802 10836 return err 10803 10837 } 10838 + 10839 + // t.CreatedAt (string) (string) 10840 + if len("createdAt") > 1000000 { 10841 + return xerrors.Errorf("Value in field \"createdAt\" was too long") 10842 + } 10843 + 10844 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("createdAt"))); err != nil { 10845 + return err 10846 + } 10847 + if _, err := cw.WriteString(string("createdAt")); err != nil { 10848 + return err 10849 + } 10850 + 10851 + if len(t.CreatedAt) > 1000000 { 10852 + return xerrors.Errorf("Value in field t.CreatedAt was too long") 10853 + } 10854 + 10855 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.CreatedAt))); err != nil { 10856 + return err 10857 + } 10858 + if _, err := cw.WriteString(string(t.CreatedAt)); err != nil { 10859 + return err 10860 + } 10804 10861 return nil 10805 10862 } 10806 10863 ··· 10829 10886 10830 10887 n := extra 10831 10888 10832 - nameBuf := make([]byte, 6) 10889 + nameBuf := make([]byte, 9) 10833 10890 for i := uint64(0); i < n; i++ { 10834 10891 nameLen, ok, err := cbg.ReadFullStringIntoBuf(cr, nameBuf, 1000000) 10835 10892 if err != nil { ··· 10877 10934 } 10878 10935 10879 10936 t.Status = string(sval) 10937 + } 10938 + // t.CreatedAt (string) (string) 10939 + case "createdAt": 10940 + 10941 + { 10942 + sval, err := cbg.ReadStringWithMax(cr, 1000000) 10943 + if err != nil { 10944 + return err 10945 + } 10946 + 10947 + t.CreatedAt = string(sval) 10880 10948 } 10881 10949 10882 10950 default:
+1
api/tangled/issuestate.go
··· 18 18 // RECORDTYPE: RepoIssueState 19 19 type RepoIssueState struct { 20 20 LexiconTypeID string `json:"$type,const=sh.tangled.repo.issue.state" cborgen:"$type,const=sh.tangled.repo.issue.state"` 21 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 21 22 Issue string `json:"issue" cborgen:"issue"` 22 23 // state: state of the issue 23 24 State string `json:"state" cborgen:"state"`
+1
api/tangled/pullstatus.go
··· 18 18 // RECORDTYPE: RepoPullStatus 19 19 type RepoPullStatus struct { 20 20 LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull.status" cborgen:"$type,const=sh.tangled.repo.pull.status"` 21 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 21 22 Pull string `json:"pull" cborgen:"pull"` 22 23 // status: status of the pull request 23 24 Status string `json:"status" cborgen:"status"`
+6 -1
lexicons/issue/state.json
··· 11 11 "type": "object", 12 12 "required": [ 13 13 "issue", 14 - "state" 14 + "state", 15 + "createdAt" 15 16 ], 16 17 "properties": { 17 18 "issue": { 18 19 "type": "string", 19 20 "format": "at-uri" 21 + }, 22 + "createdAt": { 23 + "type": "string", 24 + "format": "datetime" 20 25 }, 21 26 "state": { 22 27 "type": "string",
+6 -1
lexicons/pulls/state.json
··· 11 11 "type": "object", 12 12 "required": [ 13 13 "pull", 14 - "status" 14 + "status", 15 + "createdAt" 15 16 ], 16 17 "properties": { 17 18 "pull": { 18 19 "type": "string", 19 20 "format": "at-uri" 21 + }, 22 + "createdAt": { 23 + "type": "string", 24 + "format": "datetime" 20 25 }, 21 26 "status": { 22 27 "type": "string",