@kana-ai/edgar-ext-github 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +130 -74
  2. package/dist/src/api/app.d.ts +25 -6
  3. package/dist/src/api/app.js +72 -9
  4. package/dist/src/api/client.d.ts +9 -6
  5. package/dist/src/api/client.js +58 -19
  6. package/dist/src/api/commits.d.ts +4 -0
  7. package/dist/src/api/commits.js +69 -0
  8. package/dist/src/api/failures.d.ts +4 -0
  9. package/dist/src/api/failures.js +14 -1
  10. package/dist/src/feed/alerts.d.ts +9 -3
  11. package/dist/src/feed/alerts.js +66 -6
  12. package/dist/src/feed/service.d.ts +10 -1
  13. package/dist/src/feed/service.js +79 -16
  14. package/dist/src/index.d.ts +97 -1
  15. package/dist/src/index.js +17 -4
  16. package/dist/src/schemas/config.d.ts +1 -0
  17. package/dist/src/schemas/config.js +73 -29
  18. package/dist/src/schemas/github.d.ts +121 -1
  19. package/dist/src/schemas/github.js +37 -2
  20. package/dist/src/schemas/tools.d.ts +159 -2
  21. package/dist/src/schemas/tools.js +129 -6
  22. package/dist/src/tools/alerts.js +1 -0
  23. package/dist/src/tools/branch.d.ts +12 -0
  24. package/dist/src/tools/branch.js +69 -1
  25. package/dist/src/tools/pull-request.d.ts +55 -7
  26. package/dist/src/tools/pull-request.js +131 -42
  27. package/dist/src/tools/revert.d.ts +27 -0
  28. package/dist/src/tools/revert.js +98 -0
  29. package/dist/src/tools/screenshot.d.ts +1 -1
  30. package/dist/src/tools/screenshot.js +25 -11
  31. package/dist/src/tracker/cards.d.ts +1 -1
  32. package/dist/src/tracker/cards.js +84 -8
  33. package/dist/src/tracker/comments.d.ts +14 -2
  34. package/dist/src/tracker/comments.js +100 -4
  35. package/dist/src/tracker/port.d.ts +1 -1
  36. package/dist/src/tracker/port.js +4 -6
  37. package/dist/src/tracker/read-link.d.ts +2 -0
  38. package/dist/src/tracker/read-link.js +23 -0
  39. package/dist/src/tracker/states.d.ts +14 -3
  40. package/dist/src/tracker/states.js +37 -6
  41. package/dist/src/tracker/tools.d.ts +27 -0
  42. package/dist/src/tracker/tools.js +63 -7
  43. package/dist/src/tracker/transitions.d.ts +14 -3
  44. package/dist/src/tracker/transitions.js +57 -10
  45. package/edgar-extension.json +121 -7
  46. package/package.json +3 -3
  47. package/schemas/attach_screenshot.in.json +19 -0
  48. package/schemas/config.json +49 -23
  49. package/schemas/create_card.in.json +4 -0
  50. package/schemas/delete_closed_branches.in.json +26 -0
  51. package/schemas/delete_closed_branches.out.json +22 -0
  52. package/schemas/find_revert_pull_request.in.json +21 -0
  53. package/schemas/find_revert_pull_request.out.json +14 -0
  54. package/schemas/list_pull_requests.out.json +5 -1
  55. package/schemas/mark_seen.in.json +11 -0
  56. package/schemas/mark_seen.out.json +10 -0
  57. package/schemas/merged_pull_request.in.json +17 -0
  58. package/schemas/merged_pull_request.out.json +18 -0
  59. package/schemas/open_pull_request.in.json +73 -1
  60. package/schemas/park.in.json +15 -0
  61. package/schemas/park.out.json +10 -0
  62. package/schemas/pull_request_state.out.json +10 -1
  63. package/schemas/release_follow_ups.in.json +5 -0
  64. package/schemas/retitle.in.json +16 -0
  65. package/schemas/retitle.out.json +13 -0
  66. package/schemas/revert_pull_request.in.json +11 -0
  67. package/schemas/revert_pull_request.out.json +14 -0
  68. package/schemas/set_priority.in.json +16 -0
  69. package/schemas/set_priority.out.json +10 -0
  70. package/schemas/update_pull_request.in.json +28 -1
  71. package/schemas/wait_for_review.out.json +10 -1
@@ -4,11 +4,21 @@
4
4
  "properties": {
5
5
  "default_base": {
6
6
  "default": "main",
7
+ "description": "The branch a new pull request merges into when its call names no base, and the branch whose checks the watch reads. Default main.",
7
8
  "type": "string",
8
9
  "minLength": 1
9
10
  },
11
+ "pr_labels": {
12
+ "default": [],
13
+ "description": "Labels each pull request EDGAR opens gets, beside the ones its workflow names. Default none.",
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ }
19
+ },
10
20
  "app": {
11
- "description": "sign in as this GitHub App installation; GITHUB_TOKEN then holds the App's private key",
21
+ "description": "Sign in as this GitHub App installation; GITHUB_TOKEN then holds the App's private key.",
12
22
  "type": "object",
13
23
  "properties": {
14
24
  "id": {
@@ -22,19 +32,21 @@
22
32
  "type": "string",
23
33
  "minLength": 1
24
34
  }
25
- ]
35
+ ],
36
+ "description": "The GitHub App's id, or its client id."
26
37
  },
27
38
  "installation": {
28
39
  "type": "integer",
29
40
  "exclusiveMinimum": 0,
30
- "maximum": 9007199254740991
41
+ "maximum": 9007199254740991,
42
+ "description": "The id of the App's installation that EDGAR signs in as."
31
43
  }
32
44
  },
33
45
  "required": ["id", "installation"],
34
46
  "additionalProperties": false
35
47
  },
36
48
  "watch": {
37
- "description": "the service reads each repository every every_seconds and opens a card for a review asked of EDGAR, a red default branch, and red checks on EDGAR's own pull request",
49
+ "description": "The service reads each repository every every_seconds and opens a card for a review asked of EDGAR, a red default branch, and red checks on EDGAR's own pull request.",
38
50
  "type": "object",
39
51
  "properties": {
40
52
  "services": {
@@ -47,21 +59,23 @@
47
59
  "type": "string",
48
60
  "minLength": 1
49
61
  },
50
- "description": "each service of the project to watch, with its repository as owner/name"
62
+ "description": "Each service of the project to watch, with its repository as owner/name or a git URL; a repository not on github.com is not read."
51
63
  },
52
64
  "login": {
53
- "description": "the GitHub login EDGAR works as; the default is the login of GITHUB_TOKEN, and an App needs it, such as edgar[bot]",
65
+ "description": "The GitHub login EDGAR works as; the default is the login of GITHUB_TOKEN, and an App needs it, such as edgar[bot].",
54
66
  "type": "string",
55
67
  "minLength": 1
56
68
  },
57
69
  "every_seconds": {
58
70
  "default": 60,
71
+ "description": "How often the watch reads the repositories, in seconds, from 30 to 3600. Default 60.",
59
72
  "type": "integer",
60
73
  "minimum": 30,
61
74
  "maximum": 3600
62
75
  },
63
76
  "card_column": {
64
77
  "default": "intake",
78
+ "description": "The engine state of a card the watch opens. Default intake.",
65
79
  "type": "string",
66
80
  "minLength": 1
67
81
  }
@@ -70,7 +84,7 @@
70
84
  "additionalProperties": false
71
85
  },
72
86
  "dependabot": {
73
- "description": "the service reads the open Dependabot alerts of each repository every every_seconds and opens one card for each advisory of a package",
87
+ "description": "The service reads the open Dependabot alerts of each repository every every_seconds and opens one card for each advisory of a package.",
74
88
  "type": "object",
75
89
  "properties": {
76
90
  "services": {
@@ -83,29 +97,31 @@
83
97
  "type": "string",
84
98
  "pattern": "^[a-z][a-z0-9_]{0,63}$"
85
99
  },
86
- "description": "each repository to read, as owner/name, with the service of the project that its cards name"
100
+ "description": "Each repository to read, as owner/name, with the service of the project that its cards name."
87
101
  },
88
102
  "every_seconds": {
89
103
  "default": 300,
104
+ "description": "How often the feed reads the open alerts, in seconds, from 60 to 86400. Default 300.",
90
105
  "type": "integer",
91
106
  "minimum": 60,
92
107
  "maximum": 86400
93
108
  },
94
109
  "severity_min": {
95
110
  "default": "low",
96
- "description": "an alert under this severity opens no card",
111
+ "description": "An alert under this severity opens no card: low, medium, high or critical. Default low.",
97
112
  "type": "string",
98
113
  "enum": ["low", "medium", "high", "critical"]
99
114
  },
100
115
  "max_per_run": {
101
116
  "default": 10,
102
- "description": "the most cards one sweep opens, the worst first; the rest wait",
117
+ "description": "The most cards one sweep opens, the worst first; the rest wait for the next sweep. From 1 to 100, default 10.",
103
118
  "type": "integer",
104
119
  "minimum": 1,
105
120
  "maximum": 100
106
121
  },
107
122
  "card_column": {
108
123
  "default": "intake",
124
+ "description": "The engine state of a card the feed opens. Default intake.",
109
125
  "type": "string",
110
126
  "minLength": 1
111
127
  }
@@ -114,39 +130,45 @@
114
130
  "additionalProperties": false
115
131
  },
116
132
  "columns": {
117
- "description": "the issue label of each open engine state; with tracker, it makes GitHub Issues a tracker of the project; done closes an issue as completed, and cancelled closes it as not planned",
133
+ "description": "The issue label of each open engine state; with tracker, it makes GitHub Issues a tracker of the project. Done closes an issue as completed, and cancelled closes it as not planned.",
118
134
  "type": "object",
119
135
  "properties": {
120
136
  "intake": {
121
137
  "type": "string",
122
- "minLength": 1
138
+ "minLength": 1,
139
+ "description": "The issue label of new cards, such as edgar:intake. An open issue in scope with no column label is in intake too."
123
140
  },
124
141
  "ready": {
125
142
  "type": "string",
126
- "minLength": 1
143
+ "minLength": 1,
144
+ "description": "The issue label of cards ready to work on, such as edgar:ready."
127
145
  },
128
146
  "working": {
129
147
  "type": "string",
130
- "minLength": 1
148
+ "minLength": 1,
149
+ "description": "The issue label of cards EDGAR works on, such as edgar:working."
131
150
  },
132
151
  "in_review": {
133
152
  "type": "string",
134
- "minLength": 1
153
+ "minLength": 1,
154
+ "description": "The issue label of cards in review, such as edgar:in_review."
135
155
  },
136
156
  "waiting_on_person": {
137
157
  "type": "string",
138
- "minLength": 1
158
+ "minLength": 1,
159
+ "description": "The issue label of cards that wait for a person, such as edgar:waiting_on_person."
139
160
  },
140
161
  "in_testing": {
141
162
  "type": "string",
142
- "minLength": 1
163
+ "minLength": 1,
164
+ "description": "The issue label of cards in testing, such as edgar:in_testing."
143
165
  }
144
166
  },
145
167
  "required": ["intake", "ready", "working", "in_review", "waiting_on_person", "in_testing"],
146
168
  "additionalProperties": false
147
169
  },
148
170
  "tracker": {
149
- "description": "GitHub Issues as a tracker of the project, with columns",
171
+ "description": "GitHub Issues as a tracker of the project, with columns.",
150
172
  "type": "object",
151
173
  "properties": {
152
174
  "repos": {
@@ -160,23 +182,27 @@
160
182
  "properties": {
161
183
  "repo": {
162
184
  "type": "string",
163
- "pattern": "^[\\w.-]+\\/[\\w.-]+$"
185
+ "pattern": "^[\\w.-]+\\/[\\w.-]+$",
186
+ "description": "The repository whose issues are the cards of this key, as owner/name."
164
187
  },
165
188
  "service": {
166
189
  "type": "string",
167
- "pattern": "^[a-z][a-z0-9_]{0,63}$"
190
+ "pattern": "^[a-z][a-z0-9_]{0,63}$",
191
+ "description": "The service of the project that these cards name."
168
192
  }
169
193
  },
170
194
  "required": ["repo", "service"],
171
195
  "additionalProperties": false
172
196
  },
173
- "description": "each repository whose issues are cards, by the key of its card ids (API makes API-123), with its repository as owner/name and the service its cards name"
197
+ "description": "Each repository whose issues are cards, by the key of its card ids (API makes API-123), with its repository as owner/name and the service its cards name."
174
198
  },
175
199
  "title_prefix": {
200
+ "description": "Only issues whose title starts with this text are cards, and EDGAR starts the title of each issue it files with it. Not set: any title.",
176
201
  "type": "string",
177
202
  "minLength": 1
178
203
  },
179
204
  "labels": {
205
+ "description": "Only issues that carry every one of these labels are cards, and EDGAR adds them to each issue it files. Not set: any labels.",
180
206
  "type": "array",
181
207
  "items": {
182
208
  "type": "string",
@@ -184,13 +210,13 @@
184
210
  }
185
211
  },
186
212
  "assignee": {
187
- "description": "the GitHub login of `assignee_only`; the default is the login of GITHUB_TOKEN, and an App needs it, such as edgar[bot]",
213
+ "description": "The GitHub login of `assignee_only`; the default is the login of GITHUB_TOKEN, and an App needs it, such as edgar[bot].",
188
214
  "type": "string",
189
215
  "minLength": 1
190
216
  },
191
217
  "assignee_only": {
192
218
  "default": false,
193
- "description": "true: an issue is in scope only while it is assigned to `assignee` or labelled edgar:waiting, and EDGAR assigns each issue it files to `assignee`",
219
+ "description": "True: an issue is in scope only while it is assigned to `assignee` or labelled edgar:waiting, and EDGAR assigns each issue it files to `assignee`. Default false.",
194
220
  "type": "boolean"
195
221
  }
196
222
  },
@@ -90,6 +90,10 @@
90
90
  },
91
91
  "required": ["extension", "channel", "thread"],
92
92
  "additionalProperties": false
93
+ },
94
+ "trust": {
95
+ "type": "string",
96
+ "enum": ["team", "outside"]
93
97
  }
94
98
  },
95
99
  "required": ["kind"],
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "services": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "repo": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ }
14
+ },
15
+ "required": ["repo"]
16
+ }
17
+ },
18
+ "closed_within_hours": {
19
+ "type": "integer",
20
+ "minimum": 1,
21
+ "maximum": 720,
22
+ "description": "the pull requests closed, merged or not, within this many hours"
23
+ }
24
+ },
25
+ "required": ["services", "closed_within_hours"]
26
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "deleted": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "pull_request": {
11
+ "type": "string"
12
+ },
13
+ "branch": {
14
+ "type": "string"
15
+ }
16
+ },
17
+ "required": ["pull_request", "branch"]
18
+ }
19
+ }
20
+ },
21
+ "required": ["deleted"]
22
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "operation_id": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "input": {
10
+ "type": "object",
11
+ "properties": {
12
+ "url": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ }
16
+ },
17
+ "required": ["url"]
18
+ }
19
+ },
20
+ "required": ["operation_id", "input"]
21
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "url": {
6
+ "type": "string"
7
+ },
8
+ "state": {
9
+ "type": "string",
10
+ "enum": ["open", "merged", "closed"]
11
+ }
12
+ },
13
+ "required": ["url", "state"]
14
+ }
@@ -36,7 +36,11 @@
36
36
  },
37
37
  "required": ["url", "branch", "card", "unmerged"]
38
38
  }
39
+ },
40
+ "complete": {
41
+ "type": "boolean",
42
+ "description": "false when a repository's list came back a full page of 100, so one past them is not listed"
39
43
  }
40
44
  },
41
- "required": ["pull_requests"]
45
+ "required": ["pull_requests", "complete"]
42
46
  }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ }
9
+ },
10
+ "required": ["card"]
11
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "repo": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "description": "the repository of the card's service"
9
+ },
10
+ "card": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "description": "the card's id, as its edgar/<card>- branch names it"
14
+ }
15
+ },
16
+ "required": ["repo", "card"]
17
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "url": {
6
+ "type": "string"
7
+ },
8
+ "merged_at": {
9
+ "type": "string",
10
+ "description": "when it merged, as GitHub gives it"
11
+ },
12
+ "commit": {
13
+ "type": "string",
14
+ "description": "the merge commit"
15
+ }
16
+ },
17
+ "required": ["url", "merged_at", "commit"]
18
+ }
@@ -10,6 +10,11 @@
10
10
  "type": "string",
11
11
  "minLength": 1
12
12
  },
13
+ "base": {
14
+ "description": "the branch the pull request merges into, the service's default_branch; the default is default_base",
15
+ "type": "string",
16
+ "minLength": 1
17
+ },
13
18
  "title": {
14
19
  "type": "string",
15
20
  "minLength": 1
@@ -28,6 +33,25 @@
28
33
  "minLength": 1
29
34
  }
30
35
  },
36
+ "card": {
37
+ "description": "the run's card: the title becomes `<id>: <title>`, and the body opens with its link",
38
+ "type": "object",
39
+ "properties": {
40
+ "id": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ },
44
+ "title": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ },
48
+ "url": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "required": ["id", "title"],
53
+ "additionalProperties": {}
54
+ },
31
55
  "large_diff_lines": {
32
56
  "description": "the body says the change is large when it changes more lines than this",
33
57
  "type": "integer",
@@ -53,7 +77,7 @@
53
77
  }
54
78
  },
55
79
  "checks": {
56
- "description": "the output of a check stage: the body lists each check that passed under Verified, and each other check under Not verified",
80
+ "description": "the output of a check stage: the body lists each check that passed under Verified, saying when it passed only on its second run, and each other check under Not verified, with a failure that the check gave on the base commit too named as one the change did not cause",
57
81
  "type": "object",
58
82
  "properties": {
59
83
  "results": {
@@ -76,6 +100,14 @@
76
100
  "type": "null"
77
101
  }
78
102
  ]
103
+ },
104
+ "pre_existing": {
105
+ "type": "boolean"
106
+ },
107
+ "runs": {
108
+ "type": "integer",
109
+ "exclusiveMinimum": 0,
110
+ "maximum": 9007199254740991
79
111
  }
80
112
  },
81
113
  "required": ["check", "exit_code"]
@@ -91,6 +123,46 @@
91
123
  "type": "string"
92
124
  }
93
125
  },
126
+ "proof": {
127
+ "description": "the output of a `check = \"proof\"` stage: the body says how the change's own proof ended, whether it failed on the base commit, and the end of its output, as advice that blocks nothing",
128
+ "type": "object",
129
+ "properties": {
130
+ "outcome": {
131
+ "type": "string",
132
+ "enum": ["passed", "failed", "not_run"]
133
+ },
134
+ "command": {
135
+ "type": "string"
136
+ },
137
+ "exit_code": {
138
+ "anyOf": [
139
+ {
140
+ "type": "integer",
141
+ "minimum": -9007199254740991,
142
+ "maximum": 9007199254740991
143
+ },
144
+ {
145
+ "type": "null"
146
+ }
147
+ ]
148
+ },
149
+ "output_tail": {
150
+ "type": "string"
151
+ },
152
+ "reason": {
153
+ "type": "string"
154
+ },
155
+ "on_base": {
156
+ "type": "string",
157
+ "enum": ["failed", "passed", "unknown"]
158
+ }
159
+ },
160
+ "required": ["outcome", "command"]
161
+ },
162
+ "proof_passes": {
163
+ "description": "what the author of the change said passing looks like, beside its proof",
164
+ "type": "string"
165
+ },
94
166
  "related": {
95
167
  "description": "one URL, or at most 5, of the pull requests this one goes with, named after the body; each must be https, which the tool checks when it runs",
96
168
  "anyOf": [
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "waits_for": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ }
13
+ },
14
+ "required": ["card", "waits_for"]
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -36,6 +36,14 @@
36
36
  "head_repo": {
37
37
  "description": "the repository of the head branch as owner/name, a fork's for a fork; null when it was deleted",
38
38
  "type": ["string", "null"]
39
+ },
40
+ "mergeable": {
41
+ "description": "false when the open pull request conflicts with its base branch; null while GitHub computes it, and once it is merged or closed",
42
+ "type": ["boolean", "null"]
43
+ },
44
+ "base_commit": {
45
+ "description": "with mergeable false: the newest commit of the base branch, to merge into the head",
46
+ "type": "string"
39
47
  }
40
48
  },
41
49
  "required": [
@@ -47,6 +55,7 @@
47
55
  "card",
48
56
  "commit",
49
57
  "branch",
50
- "head_repo"
58
+ "head_repo",
59
+ "mergeable"
51
60
  ]
52
61
  }
@@ -9,6 +9,11 @@
9
9
  "pull_request": {
10
10
  "type": "string",
11
11
  "minLength": 1
12
+ },
13
+ "column": {
14
+ "description": "where the waiting cards move: ready, the default, after a merge; waiting_on_person after a close with no merge",
15
+ "type": "string",
16
+ "enum": ["ready", "waiting_on_person"]
12
17
  }
13
18
  },
14
19
  "required": ["card", "pull_request"]
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "text": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "description": "a stage's summary of the card; its first sentence becomes the title"
13
+ }
14
+ },
15
+ "required": ["card", "text"]
16
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ },
8
+ "title": {
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": ["id", "title"]
13
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "url": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ }
9
+ },
10
+ "required": ["url"]
11
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "url": {
6
+ "type": "string"
7
+ },
8
+ "state": {
9
+ "type": "string",
10
+ "enum": ["open", "merged", "closed"]
11
+ }
12
+ },
13
+ "required": ["url", "state"]
14
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "priority": {
10
+ "type": "string",
11
+ "enum": ["urgent", "high", "medium", "low"],
12
+ "description": "the priority from EDGAR's analysis; a card that has one already keeps it"
13
+ }
14
+ },
15
+ "required": ["card", "priority"]
16
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }