@kana-ai/edgar-ext-linear 0.0.0-stage → 0.1.1
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.
- package/LICENSE +202 -0
- package/README.md +198 -2
- package/dist/src/api/client.d.ts +21 -0
- package/dist/src/api/client.js +53 -0
- package/dist/src/api/failures.d.ts +11 -0
- package/dist/src/api/failures.js +37 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +19 -0
- package/dist/src/schemas/config.d.ts +25 -0
- package/dist/src/schemas/config.js +37 -0
- package/dist/src/schemas/linear.d.ts +116 -0
- package/dist/src/schemas/linear.js +57 -0
- package/dist/src/schemas/tools.d.ts +169 -0
- package/dist/src/schemas/tools.js +147 -0
- package/dist/src/tracker/assignee.d.ts +15 -0
- package/dist/src/tracker/assignee.js +58 -0
- package/dist/src/tracker/cards.d.ts +33 -0
- package/dist/src/tracker/cards.js +372 -0
- package/dist/src/tracker/comments.d.ts +11 -0
- package/dist/src/tracker/comments.js +62 -0
- package/dist/src/tracker/description.d.ts +19 -0
- package/dist/src/tracker/description.js +55 -0
- package/dist/src/tracker/hand-back.d.ts +8 -0
- package/dist/src/tracker/hand-back.js +94 -0
- package/dist/src/tracker/port.d.ts +2 -0
- package/dist/src/tracker/port.js +46 -0
- package/dist/src/tracker/states.d.ts +21 -0
- package/dist/src/tracker/states.js +82 -0
- package/dist/src/tracker/tools.d.ts +142 -0
- package/dist/src/tracker/tools.js +130 -0
- package/dist/src/tracker/transitions.d.ts +13 -0
- package/dist/src/tracker/transitions.js +94 -0
- package/edgar-extension.json +208 -0
- package/package.json +41 -3
- package/schemas/assign.in.json +15 -0
- package/schemas/assign.out.json +14 -0
- package/schemas/batch_cards.in.json +27 -0
- package/schemas/batch_cards.out.json +37 -0
- package/schemas/close.in.json +14 -0
- package/schemas/close.out.json +10 -0
- package/schemas/comment.in.json +19 -0
- package/schemas/comment.out.json +10 -0
- package/schemas/config.json +94 -0
- package/schemas/count_sighting.in.json +17 -0
- package/schemas/count_sighting.out.json +10 -0
- package/schemas/create_card.in.json +108 -0
- package/schemas/create_card.out.json +13 -0
- package/schemas/find_assignee.in.json +15 -0
- package/schemas/find_assignee.out.json +10 -0
- package/schemas/find_cards.in.json +18 -0
- package/schemas/find_cards.out.json +33 -0
- package/schemas/find_description.in.json +15 -0
- package/schemas/find_description.out.json +10 -0
- package/schemas/hand_back.in.json +11 -0
- package/schemas/hand_back.out.json +18 -0
- package/schemas/move.in.json +15 -0
- package/schemas/move.out.json +10 -0
- package/schemas/release_follow_ups.in.json +15 -0
- package/schemas/release_follow_ups.out.json +13 -0
- package/schemas/restore_assignee.in.json +20 -0
- package/schemas/restore_assignee.out.json +10 -0
- package/schemas/restore_description.in.json +20 -0
- package/schemas/restore_description.out.json +10 -0
- package/schemas/update_description.in.json +15 -0
- package/schemas/update_description.out.json +14 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract": 1,
|
|
3
|
+
"name": "linear",
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"config_schema": "schemas/config.json",
|
|
6
|
+
"secrets": [
|
|
7
|
+
{
|
|
8
|
+
"name": "LINEAR_TOKEN",
|
|
9
|
+
"hosts": ["api.linear.app"],
|
|
10
|
+
"help": "Make a personal API key in Linear, Settings, Security & access, with the Write permission (comments, moves, closes and descriptions need it) and access to the team in [extensions.linear] team."
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"capabilities": ["network:api.linear.app"],
|
|
14
|
+
"tools": [
|
|
15
|
+
{
|
|
16
|
+
"name": "comment",
|
|
17
|
+
"description": "Post a comment on a card, with an optional link on its own line",
|
|
18
|
+
"input_schema": "schemas/comment.in.json",
|
|
19
|
+
"output_schema": "schemas/comment.out.json",
|
|
20
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
21
|
+
"capabilities": ["network:api.linear.app"],
|
|
22
|
+
"side_effect": false,
|
|
23
|
+
"approval": "never",
|
|
24
|
+
"disabled": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "move",
|
|
28
|
+
"description": "Move a card to the column of an engine state, forward only; skipped otherwise",
|
|
29
|
+
"input_schema": "schemas/move.in.json",
|
|
30
|
+
"output_schema": "schemas/move.out.json",
|
|
31
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
32
|
+
"capabilities": ["network:api.linear.app"],
|
|
33
|
+
"side_effect": false,
|
|
34
|
+
"approval": "never",
|
|
35
|
+
"disabled": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "close",
|
|
39
|
+
"description": "Close a card by moving it to the done column",
|
|
40
|
+
"input_schema": "schemas/close.in.json",
|
|
41
|
+
"output_schema": "schemas/close.out.json",
|
|
42
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
43
|
+
"capabilities": ["network:api.linear.app"],
|
|
44
|
+
"side_effect": false,
|
|
45
|
+
"approval": "never",
|
|
46
|
+
"disabled": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "create_card",
|
|
50
|
+
"description": "File a card, or return the open card that holds its fingerprint",
|
|
51
|
+
"input_schema": "schemas/create_card.in.json",
|
|
52
|
+
"output_schema": "schemas/create_card.out.json",
|
|
53
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
54
|
+
"capabilities": ["network:api.linear.app"],
|
|
55
|
+
"side_effect": false,
|
|
56
|
+
"approval": "never",
|
|
57
|
+
"disabled": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "release_follow_ups",
|
|
61
|
+
"description": "Move the cards that wait for a card's merged pull request to ready",
|
|
62
|
+
"input_schema": "schemas/release_follow_ups.in.json",
|
|
63
|
+
"output_schema": "schemas/release_follow_ups.out.json",
|
|
64
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
65
|
+
"capabilities": ["network:api.linear.app"],
|
|
66
|
+
"side_effect": false,
|
|
67
|
+
"approval": "never",
|
|
68
|
+
"disabled": false
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "count_sighting",
|
|
72
|
+
"description": "Count one more sighting of the fault that an open card holds: raise occurrences and last_seen in its block; a card with no block is not written",
|
|
73
|
+
"input_schema": "schemas/count_sighting.in.json",
|
|
74
|
+
"output_schema": "schemas/count_sighting.out.json",
|
|
75
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
76
|
+
"capabilities": ["network:api.linear.app"],
|
|
77
|
+
"side_effect": false,
|
|
78
|
+
"approval": "never",
|
|
79
|
+
"disabled": false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "batch_cards",
|
|
83
|
+
"description": "List the other open cards of the team whose decided.batch is the given batch, such as the scanner cards of one repository",
|
|
84
|
+
"input_schema": "schemas/batch_cards.in.json",
|
|
85
|
+
"output_schema": "schemas/batch_cards.out.json",
|
|
86
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
87
|
+
"capabilities": ["network:api.linear.app"],
|
|
88
|
+
"side_effect": false,
|
|
89
|
+
"approval": "never",
|
|
90
|
+
"disabled": false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "find_cards",
|
|
94
|
+
"description": "Search the open cards of the team for words of a fault; with except, only cards made before that card",
|
|
95
|
+
"input_schema": "schemas/find_cards.in.json",
|
|
96
|
+
"output_schema": "schemas/find_cards.out.json",
|
|
97
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
98
|
+
"capabilities": ["network:api.linear.app"],
|
|
99
|
+
"side_effect": false,
|
|
100
|
+
"approval": "never",
|
|
101
|
+
"disabled": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "hand_back",
|
|
105
|
+
"description": "Assign a card to the person who handed it to EDGAR, else to its writer, and label it edgar:waiting; skipped when nobody can be given it",
|
|
106
|
+
"input_schema": "schemas/hand_back.in.json",
|
|
107
|
+
"output_schema": "schemas/hand_back.out.json",
|
|
108
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
109
|
+
"capabilities": ["network:api.linear.app"],
|
|
110
|
+
"side_effect": false,
|
|
111
|
+
"approval": "never",
|
|
112
|
+
"disabled": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "update_description",
|
|
116
|
+
"description": "Replace a card's description, keeping its edgar:v0 block",
|
|
117
|
+
"input_schema": "schemas/update_description.in.json",
|
|
118
|
+
"output_schema": "schemas/update_description.out.json",
|
|
119
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
120
|
+
"capabilities": ["network:api.linear.app"],
|
|
121
|
+
"side_effect": true,
|
|
122
|
+
"compensate": "restore_description",
|
|
123
|
+
"lookup": "find_description",
|
|
124
|
+
"approval": "never",
|
|
125
|
+
"disabled": false
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "restore_description",
|
|
129
|
+
"description": "Put back the description a card had before update_description",
|
|
130
|
+
"input_schema": "schemas/restore_description.in.json",
|
|
131
|
+
"output_schema": "schemas/restore_description.out.json",
|
|
132
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
133
|
+
"capabilities": ["network:api.linear.app"],
|
|
134
|
+
"side_effect": false,
|
|
135
|
+
"approval": "never",
|
|
136
|
+
"disabled": false
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "find_description",
|
|
140
|
+
"description": "Done when a card's description already reads as update_description writes it; skipped otherwise",
|
|
141
|
+
"input_schema": "schemas/find_description.in.json",
|
|
142
|
+
"output_schema": "schemas/find_description.out.json",
|
|
143
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
144
|
+
"capabilities": ["network:api.linear.app"],
|
|
145
|
+
"side_effect": false,
|
|
146
|
+
"approval": "never",
|
|
147
|
+
"disabled": false
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "assign",
|
|
151
|
+
"description": "Assign a card to a user by email or id, to the user of the token with `me`, or to nobody with an empty user",
|
|
152
|
+
"input_schema": "schemas/assign.in.json",
|
|
153
|
+
"output_schema": "schemas/assign.out.json",
|
|
154
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
155
|
+
"capabilities": ["network:api.linear.app"],
|
|
156
|
+
"side_effect": true,
|
|
157
|
+
"compensate": "restore_assignee",
|
|
158
|
+
"lookup": "find_assignee",
|
|
159
|
+
"approval": "never",
|
|
160
|
+
"disabled": false
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "restore_assignee",
|
|
164
|
+
"description": "Set back the assignee a card had before assign",
|
|
165
|
+
"input_schema": "schemas/restore_assignee.in.json",
|
|
166
|
+
"output_schema": "schemas/restore_assignee.out.json",
|
|
167
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
168
|
+
"capabilities": ["network:api.linear.app"],
|
|
169
|
+
"side_effect": false,
|
|
170
|
+
"approval": "never",
|
|
171
|
+
"disabled": false
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "find_assignee",
|
|
175
|
+
"description": "Done when a card already has the assignee that assign sets; skipped otherwise",
|
|
176
|
+
"input_schema": "schemas/find_assignee.in.json",
|
|
177
|
+
"output_schema": "schemas/find_assignee.out.json",
|
|
178
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
179
|
+
"capabilities": ["network:api.linear.app"],
|
|
180
|
+
"side_effect": false,
|
|
181
|
+
"approval": "never",
|
|
182
|
+
"disabled": false
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"webhooks": [],
|
|
186
|
+
"workflows": [],
|
|
187
|
+
"roles": [],
|
|
188
|
+
"skills": [],
|
|
189
|
+
"tracker": {
|
|
190
|
+
"methods": [
|
|
191
|
+
"list_cards",
|
|
192
|
+
"card",
|
|
193
|
+
"comments",
|
|
194
|
+
"attachments",
|
|
195
|
+
"comment",
|
|
196
|
+
"move",
|
|
197
|
+
"set_labels",
|
|
198
|
+
"create_card",
|
|
199
|
+
"close",
|
|
200
|
+
"whoami",
|
|
201
|
+
"person"
|
|
202
|
+
],
|
|
203
|
+
"secrets": ["LINEAR_TOKEN"],
|
|
204
|
+
"capabilities": ["network:api.linear.app"]
|
|
205
|
+
},
|
|
206
|
+
"environments": [],
|
|
207
|
+
"hooks": []
|
|
208
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kana-ai/edgar-ext-linear",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "EDGAR extension for Linear: the tracker port, comments, column moves, cards and follow-ups.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/kana-ai/edgar",
|
|
9
|
+
"directory": "packages/extensions/ext-linear"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/src",
|
|
13
|
+
"edgar-extension.json",
|
|
14
|
+
"schemas"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"imports": {
|
|
18
|
+
"#*": "./dist/src/*.js"
|
|
19
|
+
},
|
|
20
|
+
"exports": {
|
|
21
|
+
".": "./dist/src/index.js"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@kana-ai/edgar-contracts": "0.1.1",
|
|
25
|
+
"@kana-ai/edgar-sdk": "0.1.1",
|
|
26
|
+
"zod": "4.6.7"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "24.19.2",
|
|
30
|
+
"ajv": "8.20.0",
|
|
31
|
+
"oxfmt": "0.76.0",
|
|
32
|
+
"oxlint": "1.91.0",
|
|
33
|
+
"oxlint-tsgolint": "7.0.2005",
|
|
34
|
+
"typescript": "7.0.2",
|
|
35
|
+
"undici": "7.30.2"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "edgar-extension-build src/index.ts",
|
|
39
|
+
"check-types": "tsc --noEmit",
|
|
40
|
+
"lint": "oxlint --type-aware --deny-warnings",
|
|
41
|
+
"format:check": "oxfmt --check",
|
|
42
|
+
"test": "node --test"
|
|
43
|
+
}
|
|
6
44
|
}
|
|
@@ -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
|
+
"user": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "the Linear user by email or id, `me` for the user of LINEAR_TOKEN, or an empty text for nobody"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": ["card", "user"]
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"previous": {
|
|
9
|
+
"description": "the id of the user the card was assigned to before the write, or an empty text for nobody, which restore_assignee sets back; none when the card already had that assignee",
|
|
10
|
+
"type": "string"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": ["id"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"batch": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"maxLength": 256,
|
|
9
|
+
"description": "the `decided.batch` of the card you work on, such as its repository"
|
|
10
|
+
},
|
|
11
|
+
"except": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"description": "the card you work on; it is left out"
|
|
15
|
+
},
|
|
16
|
+
"only": {
|
|
17
|
+
"description": "only these card ids, each kept only while it is an open card of the batch",
|
|
18
|
+
"maxItems": 20,
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": ["batch", "except"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"cards": {
|
|
6
|
+
"maxItems": 20,
|
|
7
|
+
"type": "array",
|
|
8
|
+
"items": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"title": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"url": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"description": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["id", "title", "url", "description"]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"skipped": {
|
|
28
|
+
"description": "the ids of `only` that are not open cards of the batch; absent when none is",
|
|
29
|
+
"maxItems": 20,
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": ["cards"]
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
},
|
|
13
|
+
"link": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["card", "text"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"team": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1
|
|
12
|
+
},
|
|
13
|
+
"title_prefix": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1
|
|
16
|
+
},
|
|
17
|
+
"labels": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"columns": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"intake": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
30
|
+
},
|
|
31
|
+
"ready": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1
|
|
34
|
+
},
|
|
35
|
+
"working": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1
|
|
38
|
+
},
|
|
39
|
+
"in_review": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1
|
|
42
|
+
},
|
|
43
|
+
"waiting_on_person": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1
|
|
46
|
+
},
|
|
47
|
+
"in_testing": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1
|
|
50
|
+
},
|
|
51
|
+
"done": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
},
|
|
55
|
+
"cancelled": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"minLength": 1
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"intake",
|
|
62
|
+
"ready",
|
|
63
|
+
"working",
|
|
64
|
+
"in_review",
|
|
65
|
+
"waiting_on_person",
|
|
66
|
+
"in_testing",
|
|
67
|
+
"done",
|
|
68
|
+
"cancelled"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
"assignee": {
|
|
73
|
+
"description": "the Linear user, by id or email, or `me` for the user of LINEAR_TOKEN, which is the default: the user whose cards in `assigned` count as intake, and the one user of `assignee_only`",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1
|
|
76
|
+
},
|
|
77
|
+
"assignee_only": {
|
|
78
|
+
"default": false,
|
|
79
|
+
"description": "true: a card is in scope only while it is assigned to `assignee`, in every column, and EDGAR assigns each card it files to that user",
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
},
|
|
82
|
+
"assigned": {
|
|
83
|
+
"default": [],
|
|
84
|
+
"description": "the Linear columns where a card assigned to `assignee` counts as intake",
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"minLength": 1
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["team", "columns"],
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
"seen_at": {
|
|
10
|
+
"description": "when the fault was seen again; a retry with the same time counts nothing",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "date-time",
|
|
13
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["card"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"spec": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"title": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1
|
|
11
|
+
},
|
|
12
|
+
"description": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"column": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"labels": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"block": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"kind": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["defect", "request", "question", "investigation"]
|
|
30
|
+
},
|
|
31
|
+
"service": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"environment": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"fingerprint": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^[0-9a-f]{16}$"
|
|
40
|
+
},
|
|
41
|
+
"first_seen": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "date-time",
|
|
44
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
45
|
+
},
|
|
46
|
+
"last_seen": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "date-time",
|
|
49
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
50
|
+
},
|
|
51
|
+
"occurrences": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"minimum": 0,
|
|
54
|
+
"maximum": 9007199254740991
|
|
55
|
+
},
|
|
56
|
+
"severity": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"window": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"waits_for": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"minLength": 1
|
|
65
|
+
},
|
|
66
|
+
"decided": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"propertyNames": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"additionalProperties": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"origin": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"extension": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"pattern": "^[a-z][a-z0-9_]{0,63}$"
|
|
81
|
+
},
|
|
82
|
+
"channel": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1
|
|
85
|
+
},
|
|
86
|
+
"thread": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"minLength": 1
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": ["extension", "channel", "thread"],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["kind"],
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": ["title", "description", "block"],
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"parent": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": ["spec"]
|
|
108
|
+
}
|
|
@@ -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
|
+
"user": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "the Linear user by email or id, `me` for the user of LINEAR_TOKEN, or an empty text for nobody"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": ["card", "user"]
|
|
15
|
+
}
|