Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

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

appview: refactor lexicon setup and simplify

Can't use sh.tangled.repo.pull.state.{open,closed,merged} since
that results in a stateopen.go -- overwriting issue.state.open etc.
Hence, it's pull.status.

authored by

Anirudh Oppiliappan and committed by
Akshay
ed53dbc8 4b332cd3

+15 -12
api/tangled/cbor_gen.go

This is a binary file and will not be displayed.

api/tangled/pullcomment.go

This is a binary file and will not be displayed.

api/tangled/pullpatch.go

This is a binary file and will not be displayed.

api/tangled/pullstate.go

This is a binary file and will not be displayed.

api/tangled/pullstatus.go

This is a binary file and will not be displayed.

api/tangled/repopull.go

This is a binary file and will not be displayed.

api/tangled/stateclosed.go

This is a binary file and will not be displayed.

api/tangled/statemerged.go

This is a binary file and will not be displayed.

api/tangled/stateopen.go

This is a binary file and will not be displayed.

api/tangled/statusclosed.go

This is a binary file and will not be displayed.

api/tangled/statusmerged.go

This is a binary file and will not be displayed.

api/tangled/statusopen.go

This is a binary file and will not be displayed.

+1 -1
lexicons/pulls/closed.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "sh.tangled.repo.pull.state.closed", 3 + "id": "sh.tangled.repo.pull.status.closed", 4 4 "needsCbor": true, 5 5 "needsType": true, 6 6 "defs": {
+1 -1
lexicons/pulls/merged.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "sh.tangled.repo.pull.state.merged", 3 + "id": "sh.tangled.repo.pull.status.merged", 4 4 "needsCbor": true, 5 5 "needsType": true, 6 6 "defs": {
+1 -1
lexicons/pulls/open.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "sh.tangled.repo.pull.state.open", 3 + "id": "sh.tangled.repo.pull.status.open", 4 4 "needsCbor": true, 5 5 "needsType": true, 6 6 "defs": {
+5 -2
lexicons/pulls/patch.json lexicons/pulls/pull.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "sh.tangled.repo.pull.patch", 3 + "id": "sh.tangled.repo.pull", 4 4 "needsCbor": true, 5 5 "needsType": true, 6 6 "defs": { ··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": ["targetRepo", "pullId", "title", "patch"], 12 + "required": ["targetRepo", "targetBranch", "pullId", "title", "patch"], 13 13 "properties": { 14 14 "targetRepo": { 15 15 "type": "string", 16 16 "format": "at-uri" 17 + }, 18 + "targetBranch": { 19 + "type": "string" 17 20 }, 18 21 "sourceRepo": { 19 22 "type": "string",
+7 -7
lexicons/pulls/state.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "sh.tangled.repo.pull.state", 3 + "id": "sh.tangled.repo.pull.status", 4 4 "needsCbor": true, 5 5 "needsType": true, 6 6 "defs": { ··· 15 15 "type": "string", 16 16 "format": "at-uri" 17 17 }, 18 - "state": { 18 + "status": { 19 19 "type": "string", 20 - "description": "state of the pull request", 20 + "description": "status of the pull request", 21 21 "knownValues": [ 22 - "sh.tangled.repo.pull.state.open", 23 - "sh.tangled.repo.pull.state.closed", 24 - "sh.tangled.repo.pull.state.merged" 22 + "sh.tangled.repo.pull.status.open", 23 + "sh.tangled.repo.pull.status.closed", 24 + "sh.tangled.repo.pull.status.merged" 25 25 ], 26 - "default": "sh.tangled.repo.pull.state.open" 26 + "default": "sh.tangled.repo.pull.status.open" 27 27 } 28 28 } 29 29 }