kiosko-plugin-github 0.1.0 → 0.2.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/README.md +5 -0
- package/dist/index.js +14 -3
- package/docs/actions.png +0 -0
- package/docs/inbox.png +0 -0
- package/docs/reviews.png +0 -0
- package/kiosko-manifest.json +699 -0
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -20,6 +20,11 @@ npm install --prefix ~/.config/kiosko/plugins kiosko-plugin-github
|
|
|
20
20
|
|
|
21
21
|
- [`gh`](https://cli.github.com) logged in (`gh auth login`), or a token in the source options: fine-grained with read access to Actions, Pull requests and Metadata, or classic with `repo` and `read:org` (plus `notifications` for the unread count). GitHub Enterprise Server: set the host.
|
|
22
22
|
|
|
23
|
+
## What it does on your machine
|
|
24
|
+
|
|
25
|
+
- **Internet**: contacts `api.github.com`, the ones you set in its options.
|
|
26
|
+
- **Runs**: `gh`.
|
|
27
|
+
|
|
23
28
|
## Widgets
|
|
24
29
|
|
|
25
30
|
### Actions runs — `github/actions`
|
package/dist/index.js
CHANGED
|
@@ -481,7 +481,16 @@ var activity = defineSource({
|
|
|
481
481
|
minIntervalMs: 6e4,
|
|
482
482
|
timeoutMs: 3e4,
|
|
483
483
|
read: ({ options, signal }) => readGitHub(options, signal),
|
|
484
|
-
demo: ({ now }) => demoGitHub(now)
|
|
484
|
+
demo: ({ now }) => demoGitHub(now),
|
|
485
|
+
// Every repo it has seen (runs and pull requests), for the widgets' filter.
|
|
486
|
+
choices: {
|
|
487
|
+
repos: (d) => {
|
|
488
|
+
if (!d || d.state !== "ok") return [];
|
|
489
|
+
const runs = new Set(d.runs.map((r) => r.repo));
|
|
490
|
+
const pulls = new Set([...d.authored, ...d.toReview, ...d.mentions].map((p) => p.repo));
|
|
491
|
+
return [.../* @__PURE__ */ new Set([...runs, ...pulls])].sort((a, b) => a.localeCompare(b)).map((value) => ({ value, group: runs.has(value) ? "Actions" : "Pull requests" }));
|
|
492
|
+
}
|
|
493
|
+
}
|
|
485
494
|
});
|
|
486
495
|
var aliasesField = () => t.map({
|
|
487
496
|
advanced: true,
|
|
@@ -490,7 +499,7 @@ var aliasesField = () => t.map({
|
|
|
490
499
|
keyLabel: { en: "Repo", es: "Repo" },
|
|
491
500
|
valueLabel: { en: "Show as", es: "Mostrar como" }
|
|
492
501
|
});
|
|
493
|
-
var reposField = () => t.filter({ label: { en: "Repositories", es: "Repositorios" } });
|
|
502
|
+
var reposField = () => t.filter({ label: { en: "Repositories", es: "Repositorios" }, choices: { source: "github/activity", list: "repos" } });
|
|
494
503
|
var dataOf = (sources) => sources[SOURCE];
|
|
495
504
|
var demo = ({ now }) => ({ sources: { [SOURCE]: demoGitHub(now) } });
|
|
496
505
|
function message(g, box, { theme, kit }, text, hint) {
|
|
@@ -678,7 +687,9 @@ var inbox = defineWidget({
|
|
|
678
687
|
var index_default = definePlugin({
|
|
679
688
|
id: "github",
|
|
680
689
|
name: { en: "GitHub", es: "GitHub" },
|
|
681
|
-
version: "0.1
|
|
690
|
+
version: "0.2.1",
|
|
691
|
+
sdk: "^0.2.0",
|
|
692
|
+
permissions: { network: ["api.github.com", "user"], exec: ["gh"] },
|
|
682
693
|
description: { en: "Your Actions runs, the pull requests waiting for your review and your own.", es: "Tus ejecuciones de Actions, las pull requests que te toca revisar y las tuyas." },
|
|
683
694
|
author: "Kiosko",
|
|
684
695
|
license: "MIT",
|
package/docs/actions.png
ADDED
|
Binary file
|
package/docs/inbox.png
ADDED
|
Binary file
|
package/docs/reviews.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest": 1,
|
|
3
|
+
"id": "github",
|
|
4
|
+
"package": "kiosko-plugin-github",
|
|
5
|
+
"name": {
|
|
6
|
+
"en": "GitHub",
|
|
7
|
+
"es": "GitHub"
|
|
8
|
+
},
|
|
9
|
+
"version": "0.2.1",
|
|
10
|
+
"description": {
|
|
11
|
+
"en": "Your Actions runs, the pull requests waiting for your review and your own.",
|
|
12
|
+
"es": "Tus ejecuciones de Actions, las pull requests que te toca revisar y las tuyas."
|
|
13
|
+
},
|
|
14
|
+
"author": "Kiosko",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/kiosko-lcd/kiosko-plugin-github#readme",
|
|
17
|
+
"repository": "https://github.com/kiosko-lcd/kiosko-plugin-github.git",
|
|
18
|
+
"icon": "github",
|
|
19
|
+
"sdk": "^0.2.0",
|
|
20
|
+
"platforms": [
|
|
21
|
+
"linux",
|
|
22
|
+
"darwin",
|
|
23
|
+
"win32"
|
|
24
|
+
],
|
|
25
|
+
"languages": [
|
|
26
|
+
"en",
|
|
27
|
+
"es"
|
|
28
|
+
],
|
|
29
|
+
"categories": [
|
|
30
|
+
"dev"
|
|
31
|
+
],
|
|
32
|
+
"tags": [
|
|
33
|
+
"github",
|
|
34
|
+
"ci",
|
|
35
|
+
"code review",
|
|
36
|
+
"notifications"
|
|
37
|
+
],
|
|
38
|
+
"permissions": {
|
|
39
|
+
"network": [
|
|
40
|
+
"api.github.com",
|
|
41
|
+
"user"
|
|
42
|
+
],
|
|
43
|
+
"exec": [
|
|
44
|
+
"gh"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"riskyOptions": [
|
|
48
|
+
{
|
|
49
|
+
"path": "github/activity: host",
|
|
50
|
+
"risk": [
|
|
51
|
+
"network"
|
|
52
|
+
],
|
|
53
|
+
"secret": false
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "github/activity: token",
|
|
57
|
+
"risk": [],
|
|
58
|
+
"secret": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "github/activity: bin",
|
|
62
|
+
"risk": [
|
|
63
|
+
"exec"
|
|
64
|
+
],
|
|
65
|
+
"secret": false
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"requires": [],
|
|
69
|
+
"optional": [],
|
|
70
|
+
"widgets": [
|
|
71
|
+
{
|
|
72
|
+
"type": "github/actions",
|
|
73
|
+
"name": {
|
|
74
|
+
"en": "Actions runs",
|
|
75
|
+
"es": "Ejecuciones de Actions"
|
|
76
|
+
},
|
|
77
|
+
"description": {
|
|
78
|
+
"en": "Recent GitHub Actions workflow runs: broken first, then running (with a timer) and queued, passing last.",
|
|
79
|
+
"es": "Las últimas ejecuciones de GitHub Actions: lo roto primero, luego lo que corre (con cronómetro) y espera, lo que pasa al final."
|
|
80
|
+
},
|
|
81
|
+
"icon": "git-pull-request",
|
|
82
|
+
"category": "dev",
|
|
83
|
+
"tags": [
|
|
84
|
+
"github",
|
|
85
|
+
"ci"
|
|
86
|
+
],
|
|
87
|
+
"size": {
|
|
88
|
+
"min": {
|
|
89
|
+
"w": 280,
|
|
90
|
+
"h": 100
|
|
91
|
+
},
|
|
92
|
+
"preferred": {
|
|
93
|
+
"w": 600,
|
|
94
|
+
"h": 220
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"chrome": "card",
|
|
98
|
+
"sources": [
|
|
99
|
+
"github/activity"
|
|
100
|
+
],
|
|
101
|
+
"options": {
|
|
102
|
+
"default": {
|
|
103
|
+
"rows": 0,
|
|
104
|
+
"layout": "auto",
|
|
105
|
+
"repos": [],
|
|
106
|
+
"branches": [],
|
|
107
|
+
"hidePassing": false,
|
|
108
|
+
"onlyLatest": true,
|
|
109
|
+
"aliases": {}
|
|
110
|
+
},
|
|
111
|
+
"x-ui": {},
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"rows": {
|
|
115
|
+
"title": "Rows",
|
|
116
|
+
"description": "0 = as many as fit. A number shows that many, in rows of a readable size (fewer when the tile is too small for them); the rest are counted in \"+N more\".",
|
|
117
|
+
"default": 0,
|
|
118
|
+
"x-ui": {
|
|
119
|
+
"label": {
|
|
120
|
+
"en": "Rows",
|
|
121
|
+
"es": "Filas"
|
|
122
|
+
},
|
|
123
|
+
"help": {
|
|
124
|
+
"en": "0 = as many as fit. A number shows that many, in rows of a readable size (fewer when the tile is too small for them); the rest are counted in \"+N more\".",
|
|
125
|
+
"es": "0 = las que quepan. Con un número se ven esas, en filas de un tamaño legible (menos si la tesela no da para ellas); el resto se cuenta en «+N más»."
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"minimum": 0,
|
|
130
|
+
"maximum": 30
|
|
131
|
+
},
|
|
132
|
+
"layout": {
|
|
133
|
+
"title": "Row layout",
|
|
134
|
+
"description": "Automatic: the widget picks by the tile's shape.",
|
|
135
|
+
"default": "auto",
|
|
136
|
+
"x-ui": {
|
|
137
|
+
"label": {
|
|
138
|
+
"en": "Row layout",
|
|
139
|
+
"es": "Formato de fila"
|
|
140
|
+
},
|
|
141
|
+
"help": {
|
|
142
|
+
"en": "Automatic: the widget picks by the tile's shape.",
|
|
143
|
+
"es": "Automático: el widget elige según la forma de la tesela."
|
|
144
|
+
},
|
|
145
|
+
"labels": {
|
|
146
|
+
"auto": {
|
|
147
|
+
"en": "Automatic",
|
|
148
|
+
"es": "Automático"
|
|
149
|
+
},
|
|
150
|
+
"one-line": {
|
|
151
|
+
"en": "One line",
|
|
152
|
+
"es": "Una línea"
|
|
153
|
+
},
|
|
154
|
+
"detailed": {
|
|
155
|
+
"en": "Detailed",
|
|
156
|
+
"es": "Detallado"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"type": "string",
|
|
161
|
+
"enum": [
|
|
162
|
+
"auto",
|
|
163
|
+
"one-line",
|
|
164
|
+
"detailed"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"repos": {
|
|
168
|
+
"title": "Repositories",
|
|
169
|
+
"description": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
170
|
+
"default": [],
|
|
171
|
+
"x-ui": {
|
|
172
|
+
"label": {
|
|
173
|
+
"en": "Repositories",
|
|
174
|
+
"es": "Repositorios"
|
|
175
|
+
},
|
|
176
|
+
"help": {
|
|
177
|
+
"en": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
178
|
+
"es": "Vacío: todos. Nombres o patrones separados por comas: * vale por cualquier cosa y un ! delante excluye (web, acme/*, !*-old)."
|
|
179
|
+
},
|
|
180
|
+
"widget": "filter",
|
|
181
|
+
"choices": {
|
|
182
|
+
"source": "github/activity",
|
|
183
|
+
"list": "repos"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"type": "array",
|
|
187
|
+
"items": {
|
|
188
|
+
"default": "",
|
|
189
|
+
"x-ui": {
|
|
190
|
+
"placeholder": "name, group/*, !old-*",
|
|
191
|
+
"choices": {
|
|
192
|
+
"source": "github/activity",
|
|
193
|
+
"list": "repos"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
"x-filter": true
|
|
199
|
+
},
|
|
200
|
+
"branches": {
|
|
201
|
+
"title": "Branches",
|
|
202
|
+
"description": "Empty: every branch. Names or patterns, comma-separated (main, release/*, !dependabot/*).",
|
|
203
|
+
"default": [],
|
|
204
|
+
"x-ui": {
|
|
205
|
+
"label": {
|
|
206
|
+
"en": "Branches",
|
|
207
|
+
"es": "Ramas"
|
|
208
|
+
},
|
|
209
|
+
"help": {
|
|
210
|
+
"en": "Empty: every branch. Names or patterns, comma-separated (main, release/*, !dependabot/*).",
|
|
211
|
+
"es": "Vacío: todas las ramas. Nombres o patrones separados por comas (main, release/*, !dependabot/*)."
|
|
212
|
+
},
|
|
213
|
+
"widget": "filter"
|
|
214
|
+
},
|
|
215
|
+
"type": "array",
|
|
216
|
+
"items": {
|
|
217
|
+
"default": "",
|
|
218
|
+
"x-ui": {
|
|
219
|
+
"placeholder": "name, group/*, !old-*"
|
|
220
|
+
},
|
|
221
|
+
"type": "string"
|
|
222
|
+
},
|
|
223
|
+
"x-filter": true
|
|
224
|
+
},
|
|
225
|
+
"hidePassing": {
|
|
226
|
+
"title": "Hide passing runs",
|
|
227
|
+
"description": "Only what is broken, running or waiting.",
|
|
228
|
+
"default": false,
|
|
229
|
+
"x-ui": {
|
|
230
|
+
"label": {
|
|
231
|
+
"en": "Hide passing runs",
|
|
232
|
+
"es": "Ocultar las ejecuciones que pasan"
|
|
233
|
+
},
|
|
234
|
+
"help": {
|
|
235
|
+
"en": "Only what is broken, running or waiting.",
|
|
236
|
+
"es": "Sólo lo roto, lo que corre y lo que espera."
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"type": "boolean"
|
|
240
|
+
},
|
|
241
|
+
"onlyLatest": {
|
|
242
|
+
"title": "Only the latest run per workflow and branch",
|
|
243
|
+
"default": true,
|
|
244
|
+
"x-ui": {
|
|
245
|
+
"label": {
|
|
246
|
+
"en": "Only the latest run per workflow and branch",
|
|
247
|
+
"es": "Solo la última ejecución por workflow y rama"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"type": "boolean"
|
|
251
|
+
},
|
|
252
|
+
"aliases": {
|
|
253
|
+
"title": "Short repo names",
|
|
254
|
+
"description": "Repo (name or owner/name) → what to show, e.g. web-frontend → web.",
|
|
255
|
+
"default": {},
|
|
256
|
+
"x-ui": {
|
|
257
|
+
"label": {
|
|
258
|
+
"en": "Short repo names",
|
|
259
|
+
"es": "Nombres cortos de repo"
|
|
260
|
+
},
|
|
261
|
+
"help": {
|
|
262
|
+
"en": "Repo (name or owner/name) → what to show, e.g. web-frontend → web.",
|
|
263
|
+
"es": "Repo (nombre u owner/nombre) → lo que se muestra, p. ej. web-frontend → web."
|
|
264
|
+
},
|
|
265
|
+
"advanced": true
|
|
266
|
+
},
|
|
267
|
+
"type": "object",
|
|
268
|
+
"additionalProperties": {
|
|
269
|
+
"type": "string"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"screenshot": "docs/actions.png",
|
|
275
|
+
"animated": false,
|
|
276
|
+
"urgent": false
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "github/reviews",
|
|
280
|
+
"name": {
|
|
281
|
+
"en": "Pull requests",
|
|
282
|
+
"es": "Pull requests"
|
|
283
|
+
},
|
|
284
|
+
"description": {
|
|
285
|
+
"en": "Pull requests waiting for your review (whose, how long they have waited, how their checks are doing), then your own with what blocks them: failing checks, changes requested, approved. Mentions last, if you want them.",
|
|
286
|
+
"es": "Las pull requests que te toca revisar (de quién son, cuánto llevan esperando, cómo van sus checks) y luego las tuyas con lo que las frena: checks que fallan, cambios pedidos, aprobada. Las menciones al final, si las quieres."
|
|
287
|
+
},
|
|
288
|
+
"icon": "git-branch",
|
|
289
|
+
"category": "dev",
|
|
290
|
+
"tags": [
|
|
291
|
+
"github",
|
|
292
|
+
"code review"
|
|
293
|
+
],
|
|
294
|
+
"size": {
|
|
295
|
+
"min": {
|
|
296
|
+
"w": 280,
|
|
297
|
+
"h": 100
|
|
298
|
+
},
|
|
299
|
+
"preferred": {
|
|
300
|
+
"w": 600,
|
|
301
|
+
"h": 220
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"chrome": "card",
|
|
305
|
+
"sources": [
|
|
306
|
+
"github/activity"
|
|
307
|
+
],
|
|
308
|
+
"options": {
|
|
309
|
+
"default": {
|
|
310
|
+
"rows": 0,
|
|
311
|
+
"layout": "auto",
|
|
312
|
+
"repos": [],
|
|
313
|
+
"includeMine": true,
|
|
314
|
+
"includeMentions": false,
|
|
315
|
+
"includeDrafts": false,
|
|
316
|
+
"hideApproved": false,
|
|
317
|
+
"aliases": {}
|
|
318
|
+
},
|
|
319
|
+
"x-ui": {},
|
|
320
|
+
"type": "object",
|
|
321
|
+
"properties": {
|
|
322
|
+
"rows": {
|
|
323
|
+
"title": "Rows",
|
|
324
|
+
"description": "0 = as many as fit. A number shows that many, in rows of a readable size (fewer when the tile is too small for them); the rest are counted in \"+N more\".",
|
|
325
|
+
"default": 0,
|
|
326
|
+
"x-ui": {
|
|
327
|
+
"label": {
|
|
328
|
+
"en": "Rows",
|
|
329
|
+
"es": "Filas"
|
|
330
|
+
},
|
|
331
|
+
"help": {
|
|
332
|
+
"en": "0 = as many as fit. A number shows that many, in rows of a readable size (fewer when the tile is too small for them); the rest are counted in \"+N more\".",
|
|
333
|
+
"es": "0 = las que quepan. Con un número se ven esas, en filas de un tamaño legible (menos si la tesela no da para ellas); el resto se cuenta en «+N más»."
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"type": "integer",
|
|
337
|
+
"minimum": 0,
|
|
338
|
+
"maximum": 30
|
|
339
|
+
},
|
|
340
|
+
"layout": {
|
|
341
|
+
"title": "Row layout",
|
|
342
|
+
"description": "Automatic: the widget picks by the tile's shape.",
|
|
343
|
+
"default": "auto",
|
|
344
|
+
"x-ui": {
|
|
345
|
+
"label": {
|
|
346
|
+
"en": "Row layout",
|
|
347
|
+
"es": "Formato de fila"
|
|
348
|
+
},
|
|
349
|
+
"help": {
|
|
350
|
+
"en": "Automatic: the widget picks by the tile's shape.",
|
|
351
|
+
"es": "Automático: el widget elige según la forma de la tesela."
|
|
352
|
+
},
|
|
353
|
+
"labels": {
|
|
354
|
+
"auto": {
|
|
355
|
+
"en": "Automatic",
|
|
356
|
+
"es": "Automático"
|
|
357
|
+
},
|
|
358
|
+
"one-line": {
|
|
359
|
+
"en": "One line",
|
|
360
|
+
"es": "Una línea"
|
|
361
|
+
},
|
|
362
|
+
"detailed": {
|
|
363
|
+
"en": "Detailed",
|
|
364
|
+
"es": "Detallado"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"type": "string",
|
|
369
|
+
"enum": [
|
|
370
|
+
"auto",
|
|
371
|
+
"one-line",
|
|
372
|
+
"detailed"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"repos": {
|
|
376
|
+
"title": "Repositories",
|
|
377
|
+
"description": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
378
|
+
"default": [],
|
|
379
|
+
"x-ui": {
|
|
380
|
+
"label": {
|
|
381
|
+
"en": "Repositories",
|
|
382
|
+
"es": "Repositorios"
|
|
383
|
+
},
|
|
384
|
+
"help": {
|
|
385
|
+
"en": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
386
|
+
"es": "Vacío: todos. Nombres o patrones separados por comas: * vale por cualquier cosa y un ! delante excluye (web, acme/*, !*-old)."
|
|
387
|
+
},
|
|
388
|
+
"widget": "filter",
|
|
389
|
+
"choices": {
|
|
390
|
+
"source": "github/activity",
|
|
391
|
+
"list": "repos"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"type": "array",
|
|
395
|
+
"items": {
|
|
396
|
+
"default": "",
|
|
397
|
+
"x-ui": {
|
|
398
|
+
"placeholder": "name, group/*, !old-*",
|
|
399
|
+
"choices": {
|
|
400
|
+
"source": "github/activity",
|
|
401
|
+
"list": "repos"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"type": "string"
|
|
405
|
+
},
|
|
406
|
+
"x-filter": true
|
|
407
|
+
},
|
|
408
|
+
"includeMine": {
|
|
409
|
+
"title": "Include my own pull requests",
|
|
410
|
+
"default": true,
|
|
411
|
+
"x-ui": {
|
|
412
|
+
"label": {
|
|
413
|
+
"en": "Include my own pull requests",
|
|
414
|
+
"es": "Incluir mis pull requests"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"type": "boolean"
|
|
418
|
+
},
|
|
419
|
+
"includeMentions": {
|
|
420
|
+
"title": "Include mentions",
|
|
421
|
+
"description": "Needs mentions read in the source (Mentions read above 0).",
|
|
422
|
+
"default": false,
|
|
423
|
+
"x-ui": {
|
|
424
|
+
"label": {
|
|
425
|
+
"en": "Include mentions",
|
|
426
|
+
"es": "Incluir menciones"
|
|
427
|
+
},
|
|
428
|
+
"help": {
|
|
429
|
+
"en": "Needs mentions read in the source (Mentions read above 0).",
|
|
430
|
+
"es": "Necesita que la fuente lea menciones (Menciones leídas por encima de 0)."
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"type": "boolean"
|
|
434
|
+
},
|
|
435
|
+
"includeDrafts": {
|
|
436
|
+
"title": "Include drafts",
|
|
437
|
+
"default": false,
|
|
438
|
+
"x-ui": {
|
|
439
|
+
"label": {
|
|
440
|
+
"en": "Include drafts",
|
|
441
|
+
"es": "Incluir borradores"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"type": "boolean"
|
|
445
|
+
},
|
|
446
|
+
"hideApproved": {
|
|
447
|
+
"title": "Hide approved pull requests",
|
|
448
|
+
"default": false,
|
|
449
|
+
"x-ui": {
|
|
450
|
+
"label": {
|
|
451
|
+
"en": "Hide approved pull requests",
|
|
452
|
+
"es": "Ocultar las pull requests aprobadas"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"type": "boolean"
|
|
456
|
+
},
|
|
457
|
+
"aliases": {
|
|
458
|
+
"title": "Short repo names",
|
|
459
|
+
"description": "Repo (name or owner/name) → what to show, e.g. web-frontend → web.",
|
|
460
|
+
"default": {},
|
|
461
|
+
"x-ui": {
|
|
462
|
+
"label": {
|
|
463
|
+
"en": "Short repo names",
|
|
464
|
+
"es": "Nombres cortos de repo"
|
|
465
|
+
},
|
|
466
|
+
"help": {
|
|
467
|
+
"en": "Repo (name or owner/name) → what to show, e.g. web-frontend → web.",
|
|
468
|
+
"es": "Repo (nombre u owner/nombre) → lo que se muestra, p. ej. web-frontend → web."
|
|
469
|
+
},
|
|
470
|
+
"advanced": true
|
|
471
|
+
},
|
|
472
|
+
"type": "object",
|
|
473
|
+
"additionalProperties": {
|
|
474
|
+
"type": "string"
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"screenshot": "docs/reviews.png",
|
|
480
|
+
"animated": false,
|
|
481
|
+
"urgent": false
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"type": "github/inbox",
|
|
485
|
+
"name": {
|
|
486
|
+
"en": "GitHub inbox",
|
|
487
|
+
"es": "Buzón de GitHub"
|
|
488
|
+
},
|
|
489
|
+
"description": {
|
|
490
|
+
"en": "Three numbers: reviews waiting for you, failing runs and unread notifications (when the token can read them). Coloured only when they ask for you.",
|
|
491
|
+
"es": "Tres números: revisiones pendientes, ejecuciones que fallan y notificaciones sin leer (si el token puede leerlas). Con color solo cuando te reclaman."
|
|
492
|
+
},
|
|
493
|
+
"icon": "bell",
|
|
494
|
+
"category": "dev",
|
|
495
|
+
"tags": [
|
|
496
|
+
"github",
|
|
497
|
+
"notifications"
|
|
498
|
+
],
|
|
499
|
+
"size": {
|
|
500
|
+
"min": {
|
|
501
|
+
"w": 160,
|
|
502
|
+
"h": 70
|
|
503
|
+
},
|
|
504
|
+
"preferred": {
|
|
505
|
+
"w": 300,
|
|
506
|
+
"h": 110
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"chrome": "card",
|
|
510
|
+
"sources": [
|
|
511
|
+
"github/activity"
|
|
512
|
+
],
|
|
513
|
+
"options": {
|
|
514
|
+
"default": {},
|
|
515
|
+
"x-ui": {},
|
|
516
|
+
"type": "object",
|
|
517
|
+
"properties": {}
|
|
518
|
+
},
|
|
519
|
+
"screenshot": "docs/inbox.png",
|
|
520
|
+
"animated": false,
|
|
521
|
+
"urgent": false
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"sources": [
|
|
525
|
+
{
|
|
526
|
+
"type": "github/activity",
|
|
527
|
+
"name": {
|
|
528
|
+
"en": "GitHub activity",
|
|
529
|
+
"es": "Actividad de GitHub"
|
|
530
|
+
},
|
|
531
|
+
"description": {
|
|
532
|
+
"en": "Actions runs of your repos, your open pull requests and the ones you are asked to review, through a token or the gh CLI.",
|
|
533
|
+
"es": "Las ejecuciones de Actions de tus repos, tus pull requests abiertas y las que te piden revisar, con un token o con el CLI gh."
|
|
534
|
+
},
|
|
535
|
+
"polled": true,
|
|
536
|
+
"intervalMs": 120000,
|
|
537
|
+
"options": {
|
|
538
|
+
"default": {
|
|
539
|
+
"host": "",
|
|
540
|
+
"token": "",
|
|
541
|
+
"repos": [],
|
|
542
|
+
"recentRepos": 5,
|
|
543
|
+
"query": "",
|
|
544
|
+
"runsPerRepo": 10,
|
|
545
|
+
"maxMentions": 10,
|
|
546
|
+
"bin": "gh"
|
|
547
|
+
},
|
|
548
|
+
"x-ui": {},
|
|
549
|
+
"type": "object",
|
|
550
|
+
"properties": {
|
|
551
|
+
"host": {
|
|
552
|
+
"title": "GitHub host",
|
|
553
|
+
"description": "Empty = github.com. A GitHub Enterprise Server host uses its /api/v3.",
|
|
554
|
+
"default": "",
|
|
555
|
+
"x-ui": {
|
|
556
|
+
"label": {
|
|
557
|
+
"en": "GitHub host",
|
|
558
|
+
"es": "Servidor de GitHub"
|
|
559
|
+
},
|
|
560
|
+
"help": {
|
|
561
|
+
"en": "Empty = github.com. A GitHub Enterprise Server host uses its /api/v3.",
|
|
562
|
+
"es": "Vacío = github.com. Un servidor GitHub Enterprise usa su /api/v3."
|
|
563
|
+
},
|
|
564
|
+
"placeholder": "github.com"
|
|
565
|
+
},
|
|
566
|
+
"x-risk": "network",
|
|
567
|
+
"type": "string"
|
|
568
|
+
},
|
|
569
|
+
"token": {
|
|
570
|
+
"title": "Access token",
|
|
571
|
+
"description": "Fine-grained token with read access to Actions, Pull requests and Metadata, or a classic one with repo and read:org (and notifications for the inbox count). Empty = use the gh CLI and its login. Secret: leave it empty (or a placeholder such as \"<token>\"). Kiosko keeps the value it already has, or asks for it in the editor.",
|
|
572
|
+
"default": "",
|
|
573
|
+
"x-ui": {
|
|
574
|
+
"label": {
|
|
575
|
+
"en": "Access token",
|
|
576
|
+
"es": "Token de acceso"
|
|
577
|
+
},
|
|
578
|
+
"help": {
|
|
579
|
+
"en": "Fine-grained token with read access to Actions, Pull requests and Metadata, or a classic one with repo and read:org (and notifications for the inbox count). Empty = use the gh CLI and its login.",
|
|
580
|
+
"es": "Token fine-grained con lectura de Actions, Pull requests y Metadata, o uno clásico con repo y read:org (y notifications para el contador del buzón). Vacío = usar el CLI gh y su sesión."
|
|
581
|
+
},
|
|
582
|
+
"secret": true
|
|
583
|
+
},
|
|
584
|
+
"x-secret": true,
|
|
585
|
+
"type": "string"
|
|
586
|
+
},
|
|
587
|
+
"repos": {
|
|
588
|
+
"title": "Repositories for Actions",
|
|
589
|
+
"description": "owner/repo. Empty = your most recently pushed repos.",
|
|
590
|
+
"default": [],
|
|
591
|
+
"x-ui": {
|
|
592
|
+
"label": {
|
|
593
|
+
"en": "Repositories for Actions",
|
|
594
|
+
"es": "Repositorios para Actions"
|
|
595
|
+
},
|
|
596
|
+
"help": {
|
|
597
|
+
"en": "owner/repo. Empty = your most recently pushed repos.",
|
|
598
|
+
"es": "owner/repo. Vacío = tus repos con push más reciente."
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"type": "array",
|
|
602
|
+
"items": {
|
|
603
|
+
"default": "",
|
|
604
|
+
"x-ui": {
|
|
605
|
+
"placeholder": "owner/repo"
|
|
606
|
+
},
|
|
607
|
+
"type": "string"
|
|
608
|
+
},
|
|
609
|
+
"maxItems": 20
|
|
610
|
+
},
|
|
611
|
+
"recentRepos": {
|
|
612
|
+
"title": "Recent repos for Actions",
|
|
613
|
+
"description": "Without a list of repositories: how many of your most recently pushed ones. Each costs one call per read.",
|
|
614
|
+
"default": 5,
|
|
615
|
+
"x-ui": {
|
|
616
|
+
"label": {
|
|
617
|
+
"en": "Recent repos for Actions",
|
|
618
|
+
"es": "Repos recientes para Actions"
|
|
619
|
+
},
|
|
620
|
+
"help": {
|
|
621
|
+
"en": "Without a list of repositories: how many of your most recently pushed ones. Each costs one call per read.",
|
|
622
|
+
"es": "Sin lista de repositorios: cuántos de los que tienen push más reciente. Cada uno cuesta una llamada por lectura."
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"type": "integer",
|
|
626
|
+
"minimum": 1,
|
|
627
|
+
"maximum": 20
|
|
628
|
+
},
|
|
629
|
+
"query": {
|
|
630
|
+
"title": "Extra search qualifiers",
|
|
631
|
+
"description": "Added to the pull request searches, e.g. org:acme or -repo:acme/old. Empty = everything you can see.",
|
|
632
|
+
"default": "",
|
|
633
|
+
"x-ui": {
|
|
634
|
+
"label": {
|
|
635
|
+
"en": "Extra search qualifiers",
|
|
636
|
+
"es": "Calificadores de búsqueda extra"
|
|
637
|
+
},
|
|
638
|
+
"help": {
|
|
639
|
+
"en": "Added to the pull request searches, e.g. org:acme or -repo:acme/old. Empty = everything you can see.",
|
|
640
|
+
"es": "Se añaden a las búsquedas de pull requests, p. ej. org:acme o -repo:acme/old. Vacío = todo lo que ves."
|
|
641
|
+
},
|
|
642
|
+
"placeholder": "org:acme"
|
|
643
|
+
},
|
|
644
|
+
"type": "string"
|
|
645
|
+
},
|
|
646
|
+
"runsPerRepo": {
|
|
647
|
+
"title": "Runs read per repo",
|
|
648
|
+
"default": 10,
|
|
649
|
+
"x-ui": {
|
|
650
|
+
"label": {
|
|
651
|
+
"en": "Runs read per repo",
|
|
652
|
+
"es": "Ejecuciones leídas por repo"
|
|
653
|
+
},
|
|
654
|
+
"advanced": true
|
|
655
|
+
},
|
|
656
|
+
"type": "integer",
|
|
657
|
+
"minimum": 1,
|
|
658
|
+
"maximum": 30
|
|
659
|
+
},
|
|
660
|
+
"maxMentions": {
|
|
661
|
+
"title": "Mentions read",
|
|
662
|
+
"description": "Open issues and pull requests that mention you, at most. 0 = don't look for mentions.",
|
|
663
|
+
"default": 10,
|
|
664
|
+
"x-ui": {
|
|
665
|
+
"label": {
|
|
666
|
+
"en": "Mentions read",
|
|
667
|
+
"es": "Menciones leídas"
|
|
668
|
+
},
|
|
669
|
+
"help": {
|
|
670
|
+
"en": "Open issues and pull requests that mention you, at most. 0 = don't look for mentions.",
|
|
671
|
+
"es": "Issues y pull requests abiertas que te mencionan, como mucho. 0 = no buscar menciones."
|
|
672
|
+
},
|
|
673
|
+
"advanced": true
|
|
674
|
+
},
|
|
675
|
+
"type": "integer",
|
|
676
|
+
"minimum": 0,
|
|
677
|
+
"maximum": 50
|
|
678
|
+
},
|
|
679
|
+
"bin": {
|
|
680
|
+
"title": "gh command",
|
|
681
|
+
"default": "gh",
|
|
682
|
+
"x-ui": {
|
|
683
|
+
"label": {
|
|
684
|
+
"en": "gh command",
|
|
685
|
+
"es": "Comando gh"
|
|
686
|
+
},
|
|
687
|
+
"advanced": true,
|
|
688
|
+
"format": "path"
|
|
689
|
+
},
|
|
690
|
+
"x-risk": "exec",
|
|
691
|
+
"type": "string"
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"interludes": [],
|
|
698
|
+
"templates": []
|
|
699
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiosko-plugin-github",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "GitHub cards: your Actions workflow runs, the pull requests waiting for your review and your own.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"kiosko": {
|
|
30
30
|
"plugin": "./dist/index.js",
|
|
31
|
-
"id": "github"
|
|
31
|
+
"id": "github",
|
|
32
|
+
"sdk": "^0.2.0",
|
|
33
|
+
"manifest": "./kiosko-manifest.json"
|
|
32
34
|
},
|
|
33
35
|
"files": [
|
|
34
36
|
"dist",
|
|
37
|
+
"docs",
|
|
38
|
+
"kiosko-manifest.json",
|
|
35
39
|
"README.md",
|
|
36
40
|
"LICENSE"
|
|
37
41
|
],
|
|
@@ -44,9 +48,12 @@
|
|
|
44
48
|
"check": "tsc -p tsconfig.json",
|
|
45
49
|
"prepublishOnly": "npm run build"
|
|
46
50
|
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@kiosko/sdk": "^0.2.0"
|
|
53
|
+
},
|
|
47
54
|
"devDependencies": {
|
|
48
|
-
"@kiosko/sdk": "^0.1
|
|
49
|
-
"@loksly/lcd-canvas-kit": "^0.
|
|
55
|
+
"@kiosko/sdk": "^0.2.1",
|
|
56
|
+
"@loksly/lcd-canvas-kit": "^0.2.0",
|
|
50
57
|
"@napi-rs/canvas": "^1.0.10",
|
|
51
58
|
"@types/node": "^24.0.0",
|
|
52
59
|
"esbuild": "^0.25.0",
|