kiosko-plugin-gitlab 0.2.0 → 0.2.2
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 +90 -49
- package/docs/pipelines.png +0 -0
- package/docs/reviews.png +0 -0
- package/kiosko-manifest.json +640 -0
- package/package.json +17 -3
package/README.md
CHANGED
|
@@ -20,6 +20,11 @@ npm install --prefix ~/.config/kiosko/plugins kiosko-plugin-gitlab
|
|
|
20
20
|
|
|
21
21
|
- [`glab`](https://gitlab.com/gitlab-org/cli) logged in, or a personal access token with `read_api` in the source options.
|
|
22
22
|
|
|
23
|
+
## What it does on your machine
|
|
24
|
+
|
|
25
|
+
- **Internet**: contacts `gitlab.com`, the ones you set in its options.
|
|
26
|
+
- **Runs**: `glab`.
|
|
27
|
+
|
|
23
28
|
## Widgets
|
|
24
29
|
|
|
25
30
|
### My pipelines — `gitlab/pipelines`
|
package/dist/index.js
CHANGED
|
@@ -56,7 +56,14 @@ function drawLines(g, ctx, plan, lines, o) {
|
|
|
56
56
|
// src/gitlab.ts
|
|
57
57
|
import { execFile } from "node:child_process";
|
|
58
58
|
import { promisify } from "node:util";
|
|
59
|
-
import { matchFilter } from "@kiosko/sdk";
|
|
59
|
+
import { localize, matchFilter, PluginError } from "@kiosko/sdk";
|
|
60
|
+
var NOT_LOGGED_IN = {
|
|
61
|
+
en: "Not logged in to GitLab: check the access token in this source, or run glab auth login",
|
|
62
|
+
es: "Sin sesi\xF3n en GitLab: revisa el token de acceso de esta fuente o ejecuta glab auth login",
|
|
63
|
+
de: "Nicht bei GitLab angemeldet: Pr\xFCfe das Zugriffstoken in dieser Datenquelle oder f\xFChre glab auth login aus",
|
|
64
|
+
"zh-Hant": "\u5C1A\u672A\u767B\u5165 GitLab\uFF1A\u8ACB\u6AA2\u67E5\u6B64\u8CC7\u6599\u4F86\u6E90\u7684\u5B58\u53D6\u6B0A\u6756\uFF0C\u6216\u57F7\u884C glab auth login",
|
|
65
|
+
"zh-Hans": "\u5C1A\u672A\u767B\u5F55 GitLab\uFF1A\u8BF7\u68C0\u67E5\u6B64\u6570\u636E\u6E90\u7684\u8BBF\u95EE\u4EE4\u724C\uFF0C\u6216\u8FD0\u884C glab auth login"
|
|
66
|
+
};
|
|
60
67
|
var execFileAsync = promisify(execFile);
|
|
61
68
|
var MR_FIELDS = "nodes { reference(full: true) title draft createdAt updatedAt author { username } approvedBy { nodes { username } } headPipeline { status } }";
|
|
62
69
|
var QUERY = `{ currentUser { username
|
|
@@ -67,7 +74,7 @@ function parseMergeRequests(json) {
|
|
|
67
74
|
const d = JSON.parse(json);
|
|
68
75
|
if (d.errors?.length) throw new Error(d.errors[0]?.message ?? "GraphQL error");
|
|
69
76
|
const u = d.data?.currentUser;
|
|
70
|
-
if (!u) throw new
|
|
77
|
+
if (!u) throw new PluginError(NOT_LOGGED_IN);
|
|
71
78
|
const map = (n) => ({
|
|
72
79
|
reference: n.reference,
|
|
73
80
|
title: n.title.replace(/^Draft:\s*/i, ""),
|
|
@@ -97,11 +104,21 @@ async function readMergeRequests(c, signal) {
|
|
|
97
104
|
body: JSON.stringify({ query: QUERY }),
|
|
98
105
|
signal
|
|
99
106
|
});
|
|
107
|
+
if (res.status === 401) throw new PluginError(NOT_LOGGED_IN);
|
|
100
108
|
if (!res.ok) throw new Error(`GitLab HTTP ${res.status}`);
|
|
101
109
|
return parseMergeRequests(await res.text());
|
|
102
110
|
}
|
|
103
111
|
const args = ["api", "graphql", "-f", `query=${QUERY}`, ...c.host.trim() ? ["--hostname", c.host.trim().replace(/^https?:\/\//, "").replace(/\/+$/, "")] : []];
|
|
104
|
-
const { stdout } = await execFileAsync(c.bin || "glab", args, { maxBuffer: 8e6, signal })
|
|
112
|
+
const { stdout } = await execFileAsync(c.bin || "glab", args, { maxBuffer: 8e6, signal }).catch((e) => {
|
|
113
|
+
if (e.code !== "ENOENT") throw e;
|
|
114
|
+
throw new PluginError({
|
|
115
|
+
en: "glab not found: install the GitLab CLI, or set an access token in this source",
|
|
116
|
+
es: "No se encuentra glab: instala el CLI de GitLab o pon un token de acceso en esta fuente",
|
|
117
|
+
de: "glab nicht gefunden: Installiere die GitLab-CLI oder trage in dieser Datenquelle ein Zugriffstoken ein",
|
|
118
|
+
"zh-Hant": "\u627E\u4E0D\u5230 glab\uFF1A\u8ACB\u5B89\u88DD GitLab CLI\uFF0C\u6216\u5728\u6B64\u8CC7\u6599\u4F86\u6E90\u4E2D\u8A2D\u5B9A\u5B58\u53D6\u6B0A\u6756",
|
|
119
|
+
"zh-Hans": "\u627E\u4E0D\u5230 glab\uFF1A\u8BF7\u5B89\u88C5 GitLab CLI\uFF0C\u6216\u5728\u6B64\u6570\u636E\u6E90\u4E2D\u8BBE\u7F6E\u8BBF\u95EE\u4EE4\u724C"
|
|
120
|
+
}, { cause: e });
|
|
121
|
+
});
|
|
105
122
|
return parseMergeRequests(stdout);
|
|
106
123
|
}
|
|
107
124
|
function projectOf(reference) {
|
|
@@ -124,25 +141,25 @@ function inProjects(m, projects, aliases = {}) {
|
|
|
124
141
|
function pipelineLook(status, colors) {
|
|
125
142
|
switch (status) {
|
|
126
143
|
case "FAILED":
|
|
127
|
-
return { label: { en: "failed", es: "falla" }, color: colors.alert, rank: 0 };
|
|
144
|
+
return { label: { en: "failed", es: "falla", de: "Fehler", "zh-Hant": "\u5931\u6557", "zh-Hans": "\u5931\u8D25" }, color: colors.alert, rank: 0 };
|
|
128
145
|
case "RUNNING":
|
|
129
|
-
return { label: { en: "running", es: "en curso" }, color: colors.info, rank: 1 };
|
|
146
|
+
return { label: { en: "running", es: "en curso", de: "l\xE4uft", "zh-Hant": "\u57F7\u884C\u4E2D", "zh-Hans": "\u8FD0\u884C\u4E2D" }, color: colors.info, rank: 1 };
|
|
130
147
|
case "PENDING":
|
|
131
148
|
case "CREATED":
|
|
132
149
|
case "PREPARING":
|
|
133
150
|
case "WAITING_FOR_RESOURCE":
|
|
134
151
|
case "SCHEDULED":
|
|
135
|
-
return { label: { en: "queued", es: "en cola" }, color: colors.warn, rank: 2 };
|
|
152
|
+
return { label: { en: "queued", es: "en cola", de: "eingereiht", "zh-Hant": "\u6392\u968A\u4E2D", "zh-Hans": "\u6392\u961F\u4E2D" }, color: colors.warn, rank: 2 };
|
|
136
153
|
case "MANUAL":
|
|
137
|
-
return { label: { en: "manual", es: "manual" }, color: colors.warn, rank: 3 };
|
|
154
|
+
return { label: { en: "manual", es: "manual", de: "manuell", "zh-Hant": "\u624B\u52D5", "zh-Hans": "\u624B\u52A8" }, color: colors.warn, rank: 3 };
|
|
138
155
|
case "SUCCESS":
|
|
139
|
-
return { label: { en: "passed", es: "ok" }, color: colors.ok, rank: 4 };
|
|
156
|
+
return { label: { en: "passed", es: "ok", de: "ok", "zh-Hant": "\u901A\u904E", "zh-Hans": "\u901A\u8FC7" }, color: colors.ok, rank: 4 };
|
|
140
157
|
case "CANCELED":
|
|
141
|
-
return { label: { en: "canceled", es: "cancelado" }, color: colors.inkDim, rank: 5 };
|
|
158
|
+
return { label: { en: "canceled", es: "cancelado", de: "abgebrochen", "zh-Hant": "\u5DF2\u53D6\u6D88", "zh-Hans": "\u5DF2\u53D6\u6D88" }, color: colors.inkDim, rank: 5 };
|
|
142
159
|
case "SKIPPED":
|
|
143
|
-
return { label: { en: "skipped", es: "saltado" }, color: colors.inkDim, rank: 5 };
|
|
160
|
+
return { label: { en: "skipped", es: "saltado", de: "\xFCbersprungen", "zh-Hant": "\u5DF2\u7565\u904E", "zh-Hans": "\u5DF2\u8DF3\u8FC7" }, color: colors.inkDim, rank: 5 };
|
|
144
161
|
default:
|
|
145
|
-
return { label: { en: "no CI", es: "sin CI" }, color: colors.inkDim, rank: 6 };
|
|
162
|
+
return { label: { en: "no CI", es: "sin CI", de: "kein CI", "zh-Hant": "\u7121 CI", "zh-Hans": "\u65E0 CI" }, color: colors.inkDim, rank: 6 };
|
|
146
163
|
}
|
|
147
164
|
}
|
|
148
165
|
var PLAIN = { alert: "", warn: "", info: "", ok: "", inkDim: "" };
|
|
@@ -158,7 +175,19 @@ function reviewItems(data, o) {
|
|
|
158
175
|
return true;
|
|
159
176
|
}).filter((m) => (o.includeDrafts || !m.draft) && inProjects(m, o.projects, o.aliases)).map((m) => ({ m, done: m.approvedBy.includes(data.me) })).filter((x) => !(o.hideApproved && x.done)).sort((a, b) => Number(a.done) - Number(b.done) || a.m.createdAt.localeCompare(b.m.createdAt));
|
|
160
177
|
}
|
|
161
|
-
function demoMergeRequests(now) {
|
|
178
|
+
function demoMergeRequests(now, locale = "en") {
|
|
179
|
+
const T = {
|
|
180
|
+
flaky: { en: "Fix the flaky login test", es: "Arreglar el test de login inestable", de: "Wackeligen Login-Test reparieren", "zh-Hant": "\u4FEE\u6B63\u4E0D\u7A69\u5B9A\u7684\u767B\u5165\u6E2C\u8A66", "zh-Hans": "\u4FEE\u590D\u4E0D\u7A33\u5B9A\u7684\u767B\u5F55\u6D4B\u8BD5" },
|
|
181
|
+
rateLimit: { en: "Rate-limit the public endpoints", es: "Limitar peticiones a endpoints p\xFAblicos", de: "\xD6ffentliche Endpunkte drosseln", "zh-Hant": "\u516C\u958B\u7AEF\u9EDE\u52A0\u4E0A\u901F\u7387\u9650\u5236", "zh-Hans": "\u516C\u5F00\u63A5\u53E3\u52A0\u4E0A\u9650\u6D41" },
|
|
182
|
+
onboarding: { en: "Update the onboarding guide", es: "Actualizar la gu\xEDa de bienvenida", de: "Onboarding-Leitfaden aktualisieren", "zh-Hant": "\u66F4\u65B0\u65B0\u4EBA\u5165\u9580\u6307\u5357", "zh-Hans": "\u66F4\u65B0\u65B0\u4EBA\u5165\u804C\u6307\u5357" },
|
|
183
|
+
darkMode: { en: "Dark mode toggle in settings", es: "Interruptor de modo oscuro en ajustes", de: "Dunkelmodus-Schalter in den Einstellungen", "zh-Hant": "\u8A2D\u5B9A\u52A0\u5165\u6DF1\u8272\u6A21\u5F0F\u958B\u95DC", "zh-Hans": "\u8BBE\u7F6E\u4E2D\u52A0\u5165\u6DF1\u8272\u6A21\u5F0F\u5F00\u5173" },
|
|
184
|
+
offline: { en: "Offline sync for drafts", es: "Sincronizar borradores sin conexi\xF3n", de: "Offline-Sync f\xFCr Entw\xFCrfe", "zh-Hant": "\u8349\u7A3F\u96E2\u7DDA\u540C\u6B65", "zh-Hans": "\u8349\u7A3F\u79BB\u7EBF\u540C\u6B65" },
|
|
185
|
+
certs: { en: "Rotate the staging certificates", es: "Rotar los certificados de staging", de: "Staging-Zertifikate rotieren", "zh-Hant": "\u66F4\u63DB\u6E2C\u8A66\u74B0\u5883\u6191\u8B49", "zh-Hans": "\u8F6E\u6362\u9884\u53D1\u73AF\u5883\u8BC1\u4E66" },
|
|
186
|
+
perms: { en: "Cache user permissions per request", es: "Cachear permisos de usuario por petici\xF3n", de: "Benutzerrechte pro Anfrage cachen", "zh-Hant": "\u6BCF\u500B\u8ACB\u6C42\u5FEB\u53D6\u4F7F\u7528\u8005\u6B0A\u9650", "zh-Hans": "\u6309\u8BF7\u6C42\u7F13\u5B58\u7528\u6237\u6743\u9650" },
|
|
187
|
+
charts: { en: "Move the charts to the new library", es: "Pasar las gr\xE1ficas a la nueva librer\xEDa", de: "Diagramme auf neue Bibliothek umstellen", "zh-Hant": "\u5716\u8868\u6539\u7528\u65B0\u7684\u51FD\u5F0F\u5EAB", "zh-Hans": "\u56FE\u8868\u8FC1\u79FB\u5230\u65B0\u5E93" },
|
|
188
|
+
push: { en: "Push notifications for replies", es: "Notificaciones push de respuestas", de: "Push-Benachrichtigungen f\xFCr Antworten", "zh-Hant": "\u56DE\u8986\u63A8\u64AD\u901A\u77E5", "zh-Hans": "\u56DE\u590D\u63A8\u9001\u901A\u77E5" }
|
|
189
|
+
};
|
|
190
|
+
const n = (key) => localize(T[key], locale);
|
|
162
191
|
const ago = (h) => new Date(now - h * 36e5).toISOString();
|
|
163
192
|
const mr = (reference, title, pipeline, createdH, extra = {}) => ({
|
|
164
193
|
reference,
|
|
@@ -174,20 +203,20 @@ function demoMergeRequests(now) {
|
|
|
174
203
|
return {
|
|
175
204
|
me: "you",
|
|
176
205
|
authored: [
|
|
177
|
-
mr("acme/web-app!412", "
|
|
178
|
-
mr("acme/api!88", "
|
|
179
|
-
mr("acme/docs!31", "
|
|
180
|
-
mr("acme/web-app!405", "
|
|
181
|
-
mr("acme/mobile!17", "
|
|
206
|
+
mr("acme/web-app!412", n("flaky"), "FAILED", 30),
|
|
207
|
+
mr("acme/api!88", n("rateLimit"), "RUNNING", 6),
|
|
208
|
+
mr("acme/docs!31", n("onboarding"), "PENDING", 50),
|
|
209
|
+
mr("acme/web-app!405", n("darkMode"), "SUCCESS", 120),
|
|
210
|
+
mr("acme/mobile!17", n("offline"), "MANUAL", 200, { draft: true })
|
|
182
211
|
],
|
|
183
212
|
toReview: [
|
|
184
|
-
mr("acme/api!91", "
|
|
185
|
-
mr("acme/infra!12", "
|
|
186
|
-
mr("acme/web-app!398", "
|
|
213
|
+
mr("acme/api!91", n("perms"), "RUNNING", 26, { author: "sam" }),
|
|
214
|
+
mr("acme/infra!12", n("certs"), "FAILED", 3, { author: "jordan" }),
|
|
215
|
+
mr("acme/web-app!398", n("charts"), "SUCCESS", 130, { author: "alex", approvedBy: ["you"] })
|
|
187
216
|
],
|
|
188
217
|
assigned: [
|
|
189
|
-
mr("acme/web-app!412", "
|
|
190
|
-
mr("acme/mobile!21", "
|
|
218
|
+
mr("acme/web-app!412", n("flaky"), "FAILED", 30),
|
|
219
|
+
mr("acme/mobile!21", n("push"), "SUCCESS", 70, { author: "riley" })
|
|
191
220
|
]
|
|
192
221
|
};
|
|
193
222
|
}
|
|
@@ -196,40 +225,46 @@ function demoMergeRequests(now) {
|
|
|
196
225
|
var SOURCE = "gitlab/merge-requests";
|
|
197
226
|
var mergeRequests = defineSource({
|
|
198
227
|
id: "merge-requests",
|
|
199
|
-
name: { en: "GitLab merge requests", es: "Merge requests de GitLab" },
|
|
228
|
+
name: { en: "GitLab merge requests", es: "Merge requests de GitLab", de: "GitLab-Merge-Requests", "zh-Hant": "GitLab \u5408\u4F75\u8981\u6C42", "zh-Hans": "GitLab \u5408\u5E76\u8BF7\u6C42" },
|
|
200
229
|
description: {
|
|
201
230
|
en: "Your open merge requests, the ones you are asked to review and the ones assigned to you, through glab or a token.",
|
|
202
|
-
es: "Tus merge requests abiertas, las que te piden revisar y las que tienes asignadas, con glab o con un token."
|
|
231
|
+
es: "Tus merge requests abiertas, las que te piden revisar y las que tienes asignadas, con glab o con un token.",
|
|
232
|
+
de: "Deine offenen Merge Requests, die, f\xFCr die ein Review von dir angefragt ist, und die dir zugewiesenen, \xFCber glab oder ein Token.",
|
|
233
|
+
"zh-Hant": "\u900F\u904E glab \u6216\u6B0A\u6756\u53D6\u5F97\uFF1A\u4F60\u958B\u555F\u4E2D\u7684 MR\u3001\u8ACB\u4F60\u5BE9\u67E5\u7684 MR\uFF0C\u4EE5\u53CA\u6307\u6D3E\u7D66\u4F60\u7684 MR\u3002",
|
|
234
|
+
"zh-Hans": "\u901A\u8FC7 glab \u6216\u4EE4\u724C\u83B7\u53D6\uFF1A\u4F60\u5F00\u653E\u4E2D\u7684 MR\u3001\u8BF7\u4F60\u5BA1\u67E5\u7684 MR\uFF0C\u4EE5\u53CA\u6307\u6D3E\u7ED9\u4F60\u7684 MR\u3002"
|
|
203
235
|
},
|
|
204
236
|
options: t.object({
|
|
205
|
-
host: t.string({ placeholder: "gitlab.com", risk: "network", label: { en: "GitLab host", es: "Servidor de GitLab" }, help: { en: "Empty = glab's default host (gitlab.com with a token).", es: "Vac\xEDo = el servidor por defecto de glab (gitlab.com con token)." } }),
|
|
206
|
-
token: t.string({ secret: true, label: { en: "Access token", es: "Token de acceso" }, help: { en: "A personal access token with read_api. Empty = use the glab CLI and its login.", es: "Un token personal con read_api. Vac\xEDo = usar el CLI glab y su sesi\xF3n." } }),
|
|
207
|
-
bin: t.string({ default: "glab", format: "path", risk: "exec", advanced: true, label: { en: "glab command", es: "Comando glab" } })
|
|
237
|
+
host: t.string({ placeholder: "gitlab.com", risk: "network", label: { en: "GitLab host", es: "Servidor de GitLab", de: "GitLab-Host", "zh-Hant": "GitLab \u4E3B\u6A5F", "zh-Hans": "GitLab \u4E3B\u673A" }, help: { en: "Empty = glab's default host (gitlab.com with a token).", es: "Vac\xEDo = el servidor por defecto de glab (gitlab.com con token).", de: "Leer = der Standard-Host von glab (mit Token gitlab.com).", "zh-Hant": "\u7559\u7A7A = glab \u7684\u9810\u8A2D\u4E3B\u6A5F\uFF08\u4F7F\u7528\u6B0A\u6756\u6642\u70BA gitlab.com\uFF09\u3002", "zh-Hans": "\u7559\u7A7A = glab \u7684\u9ED8\u8BA4\u4E3B\u673A\uFF08\u4F7F\u7528\u4EE4\u724C\u65F6\u4E3A gitlab.com\uFF09\u3002" } }),
|
|
238
|
+
token: t.string({ secret: true, label: { en: "Access token", es: "Token de acceso", de: "Zugriffstoken", "zh-Hant": "\u5B58\u53D6\u6B0A\u6756", "zh-Hans": "\u8BBF\u95EE\u4EE4\u724C" }, help: { en: "A personal access token with read_api. Empty = use the glab CLI and its login.", es: "Un token personal con read_api. Vac\xEDo = usar el CLI glab y su sesi\xF3n.", de: "Ein Personal Access Token mit read_api. Leer = die glab-CLI und ihre Anmeldung verwenden.", "zh-Hant": "\u5177\u5099 read_api \u7684\u500B\u4EBA\u5B58\u53D6\u6B0A\u6756\u3002\u7559\u7A7A = \u4F7F\u7528 glab CLI \u53CA\u5176\u767B\u5165\u3002", "zh-Hans": "\u5177\u6709 read_api \u7684\u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C\u3002\u7559\u7A7A = \u4F7F\u7528 glab CLI \u53CA\u5176\u767B\u5F55\u3002" } }),
|
|
239
|
+
bin: t.string({ default: "glab", format: "path", risk: "exec", advanced: true, label: { en: "glab command", es: "Comando glab", de: "glab-Befehl", "zh-Hant": "glab \u6307\u4EE4", "zh-Hans": "glab \u547D\u4EE4" } })
|
|
208
240
|
}),
|
|
209
241
|
intervalMs: 3 * 6e4,
|
|
210
242
|
// One GraphQL query per read; more often than once a minute is pointless and eats the API's rate limit.
|
|
211
243
|
minIntervalMs: 6e4,
|
|
212
244
|
timeoutMs: 2e4,
|
|
213
245
|
read: ({ options, signal }) => readMergeRequests(options, signal),
|
|
214
|
-
demo: ({ now }) => demoMergeRequests(now)
|
|
246
|
+
demo: ({ now, locale }) => demoMergeRequests(now, locale)
|
|
215
247
|
});
|
|
216
248
|
var aliasesField = () => t.map({
|
|
217
249
|
advanced: true,
|
|
218
|
-
label: { en: "Short project names", es: "Nombres cortos de proyecto" },
|
|
219
|
-
help: { en: "Project (as in its path) \u2192 what to show, e.g. web-frontend \u2192 web.", es: "Proyecto (como en su ruta) \u2192 lo que se muestra, p. ej. web-frontend \u2192 web." },
|
|
220
|
-
keyLabel: { en: "Project", es: "Proyecto" },
|
|
221
|
-
valueLabel: { en: "Show as", es: "Mostrar como" }
|
|
250
|
+
label: { en: "Short project names", es: "Nombres cortos de proyecto", de: "Kurze Projektnamen", "zh-Hant": "\u5C08\u6848\u7C21\u7A31", "zh-Hans": "\u9879\u76EE\u7B80\u79F0" },
|
|
251
|
+
help: { en: "Project (as in its path) \u2192 what to show, e.g. web-frontend \u2192 web.", es: "Proyecto (como en su ruta) \u2192 lo que se muestra, p. ej. web-frontend \u2192 web.", de: "Projekt (wie in seinem Pfad) \u2192 was angezeigt wird, z. B. web-frontend \u2192 web.", "zh-Hant": "\u5C08\u6848\uFF08\u4F9D\u5176\u8DEF\u5F91\uFF09\u2192 \u986F\u793A\u5167\u5BB9\uFF0C\u4F8B\u5982 web-frontend \u2192 web\u3002", "zh-Hans": "\u9879\u76EE\uFF08\u6309\u5176\u8DEF\u5F84\uFF09\u2192 \u663E\u793A\u5185\u5BB9\uFF0C\u4F8B\u5982 web-frontend \u2192 web\u3002" },
|
|
252
|
+
keyLabel: { en: "Project", es: "Proyecto", de: "Projekt", "zh-Hant": "\u5C08\u6848", "zh-Hans": "\u9879\u76EE" },
|
|
253
|
+
valueLabel: { en: "Show as", es: "Mostrar como", de: "Anzeigen als", "zh-Hant": "\u986F\u793A\u70BA", "zh-Hans": "\u663E\u793A\u4E3A" }
|
|
222
254
|
});
|
|
223
|
-
var projectsField = () => t.filter({ label: { en: "Projects", es: "Proyectos" } });
|
|
224
|
-
var draftsField = () => t.boolean({ label: { en: "Include drafts", es: "Incluir borradores" } });
|
|
255
|
+
var projectsField = () => t.filter({ label: { en: "Projects", es: "Proyectos", de: "Projekte", "zh-Hant": "\u5C08\u6848", "zh-Hans": "\u9879\u76EE" } });
|
|
256
|
+
var draftsField = () => t.boolean({ label: { en: "Include drafts", es: "Incluir borradores", de: "Entw\xFCrfe einbeziehen", "zh-Hant": "\u5305\u542B\u8349\u7A3F", "zh-Hans": "\u5305\u542B\u8349\u7A3F" } });
|
|
225
257
|
var dataOf = (sources) => sources[SOURCE];
|
|
226
|
-
var demo = ({ now }) => ({ sources: { [SOURCE]: demoMergeRequests(now) } });
|
|
258
|
+
var demo = ({ now, locale }) => ({ sources: { [SOURCE]: demoMergeRequests(now, locale) } });
|
|
227
259
|
var pipelines = defineWidget({
|
|
228
260
|
id: "pipelines",
|
|
229
|
-
name: { en: "My pipelines", es: "Mis pipelines" },
|
|
261
|
+
name: { en: "My pipelines", es: "Mis pipelines", de: "Meine Pipelines", "zh-Hant": "\u6211\u7684\u7BA1\u7DDA", "zh-Hans": "\u6211\u7684\u6D41\u6C34\u7EBF" },
|
|
230
262
|
description: {
|
|
231
263
|
en: "The pipeline of each of your open merge requests: broken first, then running and queued, passing last.",
|
|
232
|
-
es: "El pipeline de cada una de tus merge requests abiertas: lo roto primero, luego lo que corre y espera, lo que pasa al final."
|
|
264
|
+
es: "El pipeline de cada una de tus merge requests abiertas: lo roto primero, luego lo que corre y espera, lo que pasa al final.",
|
|
265
|
+
de: "Die Pipeline jedes deiner offenen Merge Requests: fehlgeschlagene zuerst, dann laufende und wartende, erfolgreiche zuletzt.",
|
|
266
|
+
"zh-Hant": "\u4F60\u6BCF\u500B\u958B\u555F\u4E2D MR \u7684\u7BA1\u7DDA\uFF1A\u5931\u6557\u7684\u512A\u5148\uFF0C\u63A5\u8457\u662F\u57F7\u884C\u4E2D\u8207\u6392\u968A\u4E2D\uFF0C\u901A\u904E\u7684\u6392\u6700\u5F8C\u3002",
|
|
267
|
+
"zh-Hans": "\u4F60\u6BCF\u4E2A\u5F00\u653E\u4E2D MR \u7684\u6D41\u6C34\u7EBF\uFF1A\u5931\u8D25\u7684\u4F18\u5148\uFF0C\u7136\u540E\u662F\u8FD0\u884C\u4E2D\u548C\u6392\u961F\u4E2D\uFF0C\u901A\u8FC7\u7684\u6392\u6700\u540E\u3002"
|
|
233
268
|
},
|
|
234
269
|
icon: "git-pull-request",
|
|
235
270
|
category: "dev",
|
|
@@ -239,7 +274,7 @@ var pipelines = defineWidget({
|
|
|
239
274
|
options: t.object({
|
|
240
275
|
...listOptions({ layouts: ["one-line", "detailed"] }),
|
|
241
276
|
projects: projectsField(),
|
|
242
|
-
hidePassing: t.boolean({ label: { en: "Hide passing pipelines", es: "Ocultar los pipelines que pasan" }, help: { en: "Only what is broken, running or waiting.", es: "S\xF3lo lo roto, lo que corre y lo que espera." } }),
|
|
277
|
+
hidePassing: t.boolean({ label: { en: "Hide passing pipelines", es: "Ocultar los pipelines que pasan", de: "Erfolgreiche Pipelines ausblenden", "zh-Hant": "\u96B1\u85CF\u901A\u904E\u7684\u7BA1\u7DDA", "zh-Hans": "\u9690\u85CF\u901A\u8FC7\u7684\u6D41\u6C34\u7EBF" }, help: { en: "Only what is broken, running or waiting.", es: "S\xF3lo lo roto, lo que corre y lo que espera.", de: "Nur was fehlschl\xE4gt, l\xE4uft oder wartet.", "zh-Hant": "\u53EA\u986F\u793A\u5931\u6557\u3001\u57F7\u884C\u4E2D\u6216\u7B49\u5F85\u4E2D\u7684\u3002", "zh-Hans": "\u53EA\u663E\u793A\u5931\u8D25\u3001\u8FD0\u884C\u4E2D\u6216\u7B49\u5F85\u4E2D\u7684\u3002" } }),
|
|
243
278
|
includeDrafts: draftsField(),
|
|
244
279
|
aliases: aliasesField()
|
|
245
280
|
}),
|
|
@@ -253,7 +288,7 @@ var pipelines = defineWidget({
|
|
|
253
288
|
if (!data) return;
|
|
254
289
|
const { colors } = theme;
|
|
255
290
|
const list = pipelineItems(data, options);
|
|
256
|
-
if (!list.length) return drawEmpty(g, ctx, tr({ en: "No open merge requests", es: "Ninguna MR abierta" }));
|
|
291
|
+
if (!list.length) return drawEmpty(g, ctx, tr({ en: "No open merge requests", es: "Ninguna MR abierta", de: "Keine offenen Merge Requests", "zh-Hant": "\u6C92\u6709\u958B\u555F\u4E2D\u7684 MR", "zh-Hans": "\u6CA1\u6709\u5F00\u653E\u4E2D\u7684 MR" }));
|
|
257
292
|
const plan = listLayout(box, list.length, options, {
|
|
258
293
|
sizes: { "one-line": { min: 22, max: Math.max(22, Math.min(46, box.w / 10)) }, detailed: { min: 40, max: Math.max(40, Math.min(80, box.w / 5)) } },
|
|
259
294
|
// Tall tiles with room: two lines per merge request (title; status and reference).
|
|
@@ -269,10 +304,13 @@ var pipelines = defineWidget({
|
|
|
269
304
|
});
|
|
270
305
|
var reviews = defineWidget({
|
|
271
306
|
id: "reviews",
|
|
272
|
-
name: { en: "Reviews for me", es: "Te toca revisar" },
|
|
307
|
+
name: { en: "Reviews for me", es: "Te toca revisar", de: "Reviews f\xFCr mich", "zh-Hant": "\u5F85\u6211\u5BE9\u67E5", "zh-Hans": "\u5F85\u6211\u5BA1\u67E5" },
|
|
273
308
|
description: {
|
|
274
309
|
en: "Merge requests waiting for your review: whose, how long they have waited and how their pipeline is doing. The ones you approved sink, dimmed.",
|
|
275
|
-
es: "Las merge requests que te toca revisar: de qui\xE9n son, cu\xE1nto llevan esperando y c\xF3mo va su pipeline. Las que ya aprobaste bajan, atenuadas."
|
|
310
|
+
es: "Las merge requests que te toca revisar: de qui\xE9n son, cu\xE1nto llevan esperando y c\xF3mo va su pipeline. Las que ya aprobaste bajan, atenuadas.",
|
|
311
|
+
de: "Merge Requests, die auf dein Review warten: von wem, wie lange schon und wie ihre Pipeline steht. Die von dir genehmigten rutschen gedimmt nach unten.",
|
|
312
|
+
"zh-Hant": "\u7B49\u4F60\u5BE9\u67E5\u7684 MR\uFF1A\u4F5C\u8005\u3001\u5DF2\u7B49\u591A\u4E45\uFF0C\u4EE5\u53CA\u7BA1\u7DDA\u72C0\u6CC1\u3002\u4F60\u5DF2\u6838\u51C6\u7684\u6703\u5F80\u4E0B\u6C89\u4E26\u8B8A\u6697\u3002",
|
|
313
|
+
"zh-Hans": "\u7B49\u4F60\u5BA1\u67E5\u7684 MR\uFF1A\u4F5C\u8005\u3001\u5DF2\u7B49\u591A\u4E45\uFF0C\u4EE5\u53CA\u6D41\u6C34\u7EBF\u72B6\u51B5\u3002\u4F60\u5DF2\u6279\u51C6\u7684\u4F1A\u6C89\u5230\u4E0B\u65B9\u5E76\u53D8\u6697\u3002"
|
|
276
314
|
},
|
|
277
315
|
icon: "git-branch",
|
|
278
316
|
category: "dev",
|
|
@@ -283,10 +321,10 @@ var reviews = defineWidget({
|
|
|
283
321
|
...listOptions({ layouts: ["one-line", "detailed"] }),
|
|
284
322
|
projects: projectsField(),
|
|
285
323
|
includeDrafts: draftsField(),
|
|
286
|
-
hideApproved: t.boolean({ label: { en: "Hide the ones I approved", es: "Ocultar las que ya aprob\xE9" } }),
|
|
324
|
+
hideApproved: t.boolean({ label: { en: "Hide the ones I approved", es: "Ocultar las que ya aprob\xE9", de: "Von mir genehmigte ausblenden", "zh-Hant": "\u96B1\u85CF\u6211\u5DF2\u6838\u51C6\u7684", "zh-Hans": "\u9690\u85CF\u6211\u5DF2\u6279\u51C6\u7684" } }),
|
|
287
325
|
includeAssigned: t.boolean({
|
|
288
|
-
label: { en: "Include the ones assigned to me", es: "Incluir las que tengo asignadas" },
|
|
289
|
-
help: { en: "For teams that assign a merge request to its reviewer instead of requesting a review. Your own are left out.", es: "Para equipos que asignan la merge request a quien la revisa en vez de pedirle revisi\xF3n. Las tuyas no se cuentan." }
|
|
326
|
+
label: { en: "Include the ones assigned to me", es: "Incluir las que tengo asignadas", de: "Mir zugewiesene einbeziehen", "zh-Hant": "\u5305\u542B\u6307\u6D3E\u7D66\u6211\u7684", "zh-Hans": "\u5305\u542B\u6307\u6D3E\u7ED9\u6211\u7684" },
|
|
327
|
+
help: { en: "For teams that assign a merge request to its reviewer instead of requesting a review. Your own are left out.", es: "Para equipos que asignan la merge request a quien la revisa en vez de pedirle revisi\xF3n. Las tuyas no se cuentan.", de: "F\xFCr Teams, die einen Merge Request dem Reviewer zuweisen, statt ein Review anzufragen. Deine eigenen bleiben au\xDFen vor.", "zh-Hant": "\u9069\u7528\u65BC\u628A MR \u6307\u6D3E\u7D66\u5BE9\u67E5\u8005\u3001\u800C\u975E\u767C\u51FA\u5BE9\u67E5\u8981\u6C42\u7684\u5718\u968A\u3002\u4F60\u81EA\u5DF1\u7684 MR \u4E0D\u8A08\u5165\u3002", "zh-Hans": "\u9002\u7528\u4E8E\u628A MR \u6307\u6D3E\u7ED9\u5BA1\u67E5\u4EBA\u3001\u800C\u4E0D\u662F\u53D1\u8D77\u5BA1\u67E5\u8BF7\u6C42\u7684\u56E2\u961F\u3002\u4F60\u81EA\u5DF1\u7684 MR \u4E0D\u8BA1\u5165\u3002" }
|
|
290
328
|
}),
|
|
291
329
|
aliases: aliasesField()
|
|
292
330
|
}),
|
|
@@ -302,7 +340,7 @@ var reviews = defineWidget({
|
|
|
302
340
|
if (!data) return;
|
|
303
341
|
const { colors } = theme;
|
|
304
342
|
const list = reviewItems(data, options);
|
|
305
|
-
if (!list.length) return drawEmpty(g, ctx, tr({ en: "Nothing to review", es: "Nada que revisar" }));
|
|
343
|
+
if (!list.length) return drawEmpty(g, ctx, tr({ en: "Nothing to review", es: "Nada que revisar", de: "Nichts zu reviewen", "zh-Hant": "\u6C92\u6709\u8981\u5BE9\u67E5\u7684", "zh-Hans": "\u6CA1\u6709\u5F85\u5BA1\u67E5\u7684" }));
|
|
306
344
|
const plan = listLayout(box, list.length, options, {
|
|
307
345
|
sizes: { "one-line": { min: 22, max: Math.max(22, Math.min(46, box.w / 10)) }, detailed: { min: 40, max: Math.max(40, Math.min(84, box.w / 5.5)) } },
|
|
308
346
|
// Two lines (whose, how long) while every row gets room for them; one line when that shows more of the list.
|
|
@@ -319,7 +357,7 @@ var reviews = defineWidget({
|
|
|
319
357
|
strong: !done,
|
|
320
358
|
ref: shortRef(m.reference, options.aliases),
|
|
321
359
|
status: tr(look.label),
|
|
322
|
-
meta: ` \xB7 ${m.author} \xB7 ${waited}${done ? ` \xB7 ${tr({ en: "approved", es: "aprobada" })}` : ""}`,
|
|
360
|
+
meta: ` \xB7 ${m.author} \xB7 ${waited}${done ? ` \xB7 ${tr({ en: "approved", es: "aprobada", de: "genehmigt", "zh-Hant": "\u5DF2\u6838\u51C6", "zh-Hans": "\u5DF2\u6279\u51C6" })}` : ""}`,
|
|
323
361
|
aside: waited
|
|
324
362
|
};
|
|
325
363
|
}), { dots: false });
|
|
@@ -328,9 +366,12 @@ var reviews = defineWidget({
|
|
|
328
366
|
});
|
|
329
367
|
var index_default = definePlugin({
|
|
330
368
|
id: "gitlab",
|
|
331
|
-
name: { en: "GitLab", es: "GitLab" },
|
|
332
|
-
version: "0.2.
|
|
333
|
-
|
|
369
|
+
name: { en: "GitLab", es: "GitLab", de: "GitLab", "zh-Hant": "GitLab", "zh-Hans": "GitLab" },
|
|
370
|
+
version: "0.2.2",
|
|
371
|
+
languages: ["en", "es", "de", "zh-Hant", "zh-Hans"],
|
|
372
|
+
sdk: "^0.2.0",
|
|
373
|
+
permissions: { network: ["gitlab.com", "user"], exec: ["glab"] },
|
|
374
|
+
description: { en: "Your merge requests' pipelines and the reviews waiting for you.", es: "Los pipelines de tus merge requests y las revisiones que te esperan.", de: "Die Pipelines deiner Merge Requests und die Reviews, die auf dich warten.", "zh-Hant": "\u4F60\u7684 MR \u7684\u7BA1\u7DDA\uFF0C\u4EE5\u53CA\u7B49\u4F60\u5BE9\u67E5\u7684 MR\u3002", "zh-Hans": "\u4F60\u7684 MR \u7684\u6D41\u6C34\u7EBF\uFF0C\u4EE5\u53CA\u7B49\u4F60\u5BA1\u67E5\u7684 MR\u3002" },
|
|
334
375
|
author: "Kiosko",
|
|
335
376
|
license: "MIT",
|
|
336
377
|
icon: "gitlab",
|
|
Binary file
|
package/docs/reviews.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,640 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest": 1,
|
|
3
|
+
"id": "gitlab",
|
|
4
|
+
"package": "kiosko-plugin-gitlab",
|
|
5
|
+
"name": {
|
|
6
|
+
"en": "GitLab",
|
|
7
|
+
"es": "GitLab",
|
|
8
|
+
"de": "GitLab",
|
|
9
|
+
"zh-Hant": "GitLab",
|
|
10
|
+
"zh-Hans": "GitLab"
|
|
11
|
+
},
|
|
12
|
+
"version": "0.2.2",
|
|
13
|
+
"description": {
|
|
14
|
+
"en": "Your merge requests' pipelines and the reviews waiting for you.",
|
|
15
|
+
"es": "Los pipelines de tus merge requests y las revisiones que te esperan.",
|
|
16
|
+
"de": "Die Pipelines deiner Merge Requests und die Reviews, die auf dich warten.",
|
|
17
|
+
"zh-Hant": "你的 MR 的管線,以及等你審查的 MR。",
|
|
18
|
+
"zh-Hans": "你的 MR 的流水线,以及等你审查的 MR。"
|
|
19
|
+
},
|
|
20
|
+
"author": "Kiosko",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"homepage": "https://github.com/kiosko-lcd/kiosko-plugin-gitlab#readme",
|
|
23
|
+
"repository": "https://github.com/kiosko-lcd/kiosko-plugin-gitlab.git",
|
|
24
|
+
"icon": "gitlab",
|
|
25
|
+
"sdk": "^0.2.0",
|
|
26
|
+
"platforms": [
|
|
27
|
+
"linux",
|
|
28
|
+
"darwin",
|
|
29
|
+
"win32"
|
|
30
|
+
],
|
|
31
|
+
"languages": [
|
|
32
|
+
"en",
|
|
33
|
+
"es",
|
|
34
|
+
"de",
|
|
35
|
+
"zh-Hant",
|
|
36
|
+
"zh-Hans"
|
|
37
|
+
],
|
|
38
|
+
"categories": [
|
|
39
|
+
"dev"
|
|
40
|
+
],
|
|
41
|
+
"tags": [
|
|
42
|
+
"gitlab",
|
|
43
|
+
"ci",
|
|
44
|
+
"code review"
|
|
45
|
+
],
|
|
46
|
+
"permissions": {
|
|
47
|
+
"network": [
|
|
48
|
+
"gitlab.com",
|
|
49
|
+
"user"
|
|
50
|
+
],
|
|
51
|
+
"exec": [
|
|
52
|
+
"glab"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"riskyOptions": [
|
|
56
|
+
{
|
|
57
|
+
"path": "gitlab/merge-requests: host",
|
|
58
|
+
"risk": [
|
|
59
|
+
"network"
|
|
60
|
+
],
|
|
61
|
+
"secret": false
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "gitlab/merge-requests: token",
|
|
65
|
+
"risk": [],
|
|
66
|
+
"secret": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "gitlab/merge-requests: bin",
|
|
70
|
+
"risk": [
|
|
71
|
+
"exec"
|
|
72
|
+
],
|
|
73
|
+
"secret": false
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"requires": [],
|
|
77
|
+
"optional": [],
|
|
78
|
+
"widgets": [
|
|
79
|
+
{
|
|
80
|
+
"type": "gitlab/pipelines",
|
|
81
|
+
"name": {
|
|
82
|
+
"en": "My pipelines",
|
|
83
|
+
"es": "Mis pipelines",
|
|
84
|
+
"de": "Meine Pipelines",
|
|
85
|
+
"zh-Hant": "我的管線",
|
|
86
|
+
"zh-Hans": "我的流水线"
|
|
87
|
+
},
|
|
88
|
+
"description": {
|
|
89
|
+
"en": "The pipeline of each of your open merge requests: broken first, then running and queued, passing last.",
|
|
90
|
+
"es": "El pipeline de cada una de tus merge requests abiertas: lo roto primero, luego lo que corre y espera, lo que pasa al final.",
|
|
91
|
+
"de": "Die Pipeline jedes deiner offenen Merge Requests: fehlgeschlagene zuerst, dann laufende und wartende, erfolgreiche zuletzt.",
|
|
92
|
+
"zh-Hant": "你每個開啟中 MR 的管線:失敗的優先,接著是執行中與排隊中,通過的排最後。",
|
|
93
|
+
"zh-Hans": "你每个开放中 MR 的流水线:失败的优先,然后是运行中和排队中,通过的排最后。"
|
|
94
|
+
},
|
|
95
|
+
"icon": "git-pull-request",
|
|
96
|
+
"category": "dev",
|
|
97
|
+
"tags": [
|
|
98
|
+
"gitlab",
|
|
99
|
+
"ci"
|
|
100
|
+
],
|
|
101
|
+
"size": {
|
|
102
|
+
"min": {
|
|
103
|
+
"w": 280,
|
|
104
|
+
"h": 100
|
|
105
|
+
},
|
|
106
|
+
"preferred": {
|
|
107
|
+
"w": 600,
|
|
108
|
+
"h": 220
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"chrome": "card",
|
|
112
|
+
"sources": [
|
|
113
|
+
"gitlab/merge-requests"
|
|
114
|
+
],
|
|
115
|
+
"options": {
|
|
116
|
+
"default": {
|
|
117
|
+
"rows": 0,
|
|
118
|
+
"layout": "auto",
|
|
119
|
+
"projects": [],
|
|
120
|
+
"hidePassing": false,
|
|
121
|
+
"includeDrafts": false,
|
|
122
|
+
"aliases": {}
|
|
123
|
+
},
|
|
124
|
+
"x-ui": {},
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"rows": {
|
|
128
|
+
"title": "Rows",
|
|
129
|
+
"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\".",
|
|
130
|
+
"default": 0,
|
|
131
|
+
"x-ui": {
|
|
132
|
+
"label": {
|
|
133
|
+
"en": "Rows",
|
|
134
|
+
"es": "Filas",
|
|
135
|
+
"de": "Zeilen",
|
|
136
|
+
"zh-Hant": "列數",
|
|
137
|
+
"zh-Hans": "行数"
|
|
138
|
+
},
|
|
139
|
+
"help": {
|
|
140
|
+
"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\".",
|
|
141
|
+
"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».",
|
|
142
|
+
"de": "0 = so viele, wie passen. Eine Zahl zeigt so viele, in Zeilen lesbarer Größe (weniger, wenn die Kachel dafür zu klein ist); der Rest wird als „+N weitere“ gezählt.",
|
|
143
|
+
"zh-Hant": "0 = 盡量放滿。填數字則顯示該數量,並以易讀的大小排列(方格太小時會減少);其餘的計入「還有 N 個」。",
|
|
144
|
+
"zh-Hans": "0 = 尽量放满。填数字则显示该数量,并以易读的大小排列(格子太小时会减少);其余的计入“还有 N 个”。"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0,
|
|
149
|
+
"maximum": 30
|
|
150
|
+
},
|
|
151
|
+
"layout": {
|
|
152
|
+
"title": "Row layout",
|
|
153
|
+
"description": "Automatic: the widget picks by the tile's shape.",
|
|
154
|
+
"default": "auto",
|
|
155
|
+
"x-ui": {
|
|
156
|
+
"label": {
|
|
157
|
+
"en": "Row layout",
|
|
158
|
+
"es": "Formato de fila",
|
|
159
|
+
"de": "Zeilenlayout",
|
|
160
|
+
"zh-Hant": "列版面",
|
|
161
|
+
"zh-Hans": "行布局"
|
|
162
|
+
},
|
|
163
|
+
"help": {
|
|
164
|
+
"en": "Automatic: the widget picks by the tile's shape.",
|
|
165
|
+
"es": "Automático: el widget elige según la forma de la tesela.",
|
|
166
|
+
"de": "Automatisch: Das Widget wählt nach der Form der Kachel.",
|
|
167
|
+
"zh-Hant": "自動:小工具依方格形狀選擇。",
|
|
168
|
+
"zh-Hans": "自动:小组件根据格子形状选择。"
|
|
169
|
+
},
|
|
170
|
+
"labels": {
|
|
171
|
+
"auto": {
|
|
172
|
+
"en": "Automatic",
|
|
173
|
+
"es": "Automático",
|
|
174
|
+
"de": "Automatisch",
|
|
175
|
+
"zh-Hant": "自動",
|
|
176
|
+
"zh-Hans": "自动"
|
|
177
|
+
},
|
|
178
|
+
"one-line": {
|
|
179
|
+
"en": "One line",
|
|
180
|
+
"es": "Una línea",
|
|
181
|
+
"de": "Eine Zeile",
|
|
182
|
+
"zh-Hant": "單行",
|
|
183
|
+
"zh-Hans": "单行"
|
|
184
|
+
},
|
|
185
|
+
"detailed": {
|
|
186
|
+
"en": "Detailed",
|
|
187
|
+
"es": "Detallado",
|
|
188
|
+
"de": "Ausführlich",
|
|
189
|
+
"zh-Hant": "詳細",
|
|
190
|
+
"zh-Hans": "详细"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"type": "string",
|
|
195
|
+
"enum": [
|
|
196
|
+
"auto",
|
|
197
|
+
"one-line",
|
|
198
|
+
"detailed"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"projects": {
|
|
202
|
+
"title": "Projects",
|
|
203
|
+
"description": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
204
|
+
"default": [],
|
|
205
|
+
"x-ui": {
|
|
206
|
+
"label": {
|
|
207
|
+
"en": "Projects",
|
|
208
|
+
"es": "Proyectos",
|
|
209
|
+
"de": "Projekte",
|
|
210
|
+
"zh-Hant": "專案",
|
|
211
|
+
"zh-Hans": "项目"
|
|
212
|
+
},
|
|
213
|
+
"help": {
|
|
214
|
+
"en": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
215
|
+
"es": "Vacío: todos. Nombres o patrones separados por comas: * vale por cualquier cosa y un ! delante excluye (web, acme/*, !*-old).",
|
|
216
|
+
"de": "Leer: alle. Namen oder Muster, durch Kommas getrennt: * steht für alles, ein ! davor schließt aus (web, acme/*, !*-old).",
|
|
217
|
+
"zh-Hant": "留空:全部。填入名稱或模式,以逗號分隔:* 代表任意字元,開頭加 ! 則排除(web, acme/*, !*-old)。",
|
|
218
|
+
"zh-Hans": "留空:全部。填写名称或模式,用逗号分隔:* 匹配任意内容,开头加 ! 表示排除(web, acme/*, !*-old)。"
|
|
219
|
+
},
|
|
220
|
+
"widget": "filter"
|
|
221
|
+
},
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"default": "",
|
|
225
|
+
"x-ui": {
|
|
226
|
+
"placeholder": "name, group/*, !old-*"
|
|
227
|
+
},
|
|
228
|
+
"type": "string"
|
|
229
|
+
},
|
|
230
|
+
"x-filter": true
|
|
231
|
+
},
|
|
232
|
+
"hidePassing": {
|
|
233
|
+
"title": "Hide passing pipelines",
|
|
234
|
+
"description": "Only what is broken, running or waiting.",
|
|
235
|
+
"default": false,
|
|
236
|
+
"x-ui": {
|
|
237
|
+
"label": {
|
|
238
|
+
"en": "Hide passing pipelines",
|
|
239
|
+
"es": "Ocultar los pipelines que pasan",
|
|
240
|
+
"de": "Erfolgreiche Pipelines ausblenden",
|
|
241
|
+
"zh-Hant": "隱藏通過的管線",
|
|
242
|
+
"zh-Hans": "隐藏通过的流水线"
|
|
243
|
+
},
|
|
244
|
+
"help": {
|
|
245
|
+
"en": "Only what is broken, running or waiting.",
|
|
246
|
+
"es": "Sólo lo roto, lo que corre y lo que espera.",
|
|
247
|
+
"de": "Nur was fehlschlägt, läuft oder wartet.",
|
|
248
|
+
"zh-Hant": "只顯示失敗、執行中或等待中的。",
|
|
249
|
+
"zh-Hans": "只显示失败、运行中或等待中的。"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"type": "boolean"
|
|
253
|
+
},
|
|
254
|
+
"includeDrafts": {
|
|
255
|
+
"title": "Include drafts",
|
|
256
|
+
"default": false,
|
|
257
|
+
"x-ui": {
|
|
258
|
+
"label": {
|
|
259
|
+
"en": "Include drafts",
|
|
260
|
+
"es": "Incluir borradores",
|
|
261
|
+
"de": "Entwürfe einbeziehen",
|
|
262
|
+
"zh-Hant": "包含草稿",
|
|
263
|
+
"zh-Hans": "包含草稿"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"type": "boolean"
|
|
267
|
+
},
|
|
268
|
+
"aliases": {
|
|
269
|
+
"title": "Short project names",
|
|
270
|
+
"description": "Project (as in its path) → what to show, e.g. web-frontend → web.",
|
|
271
|
+
"default": {},
|
|
272
|
+
"x-ui": {
|
|
273
|
+
"label": {
|
|
274
|
+
"en": "Short project names",
|
|
275
|
+
"es": "Nombres cortos de proyecto",
|
|
276
|
+
"de": "Kurze Projektnamen",
|
|
277
|
+
"zh-Hant": "專案簡稱",
|
|
278
|
+
"zh-Hans": "项目简称"
|
|
279
|
+
},
|
|
280
|
+
"help": {
|
|
281
|
+
"en": "Project (as in its path) → what to show, e.g. web-frontend → web.",
|
|
282
|
+
"es": "Proyecto (como en su ruta) → lo que se muestra, p. ej. web-frontend → web.",
|
|
283
|
+
"de": "Projekt (wie in seinem Pfad) → was angezeigt wird, z. B. web-frontend → web.",
|
|
284
|
+
"zh-Hant": "專案(依其路徑)→ 顯示內容,例如 web-frontend → web。",
|
|
285
|
+
"zh-Hans": "项目(按其路径)→ 显示内容,例如 web-frontend → web。"
|
|
286
|
+
},
|
|
287
|
+
"advanced": true
|
|
288
|
+
},
|
|
289
|
+
"type": "object",
|
|
290
|
+
"additionalProperties": {
|
|
291
|
+
"type": "string"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"screenshot": "docs/pipelines.png",
|
|
297
|
+
"animated": false,
|
|
298
|
+
"urgent": false
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "gitlab/reviews",
|
|
302
|
+
"name": {
|
|
303
|
+
"en": "Reviews for me",
|
|
304
|
+
"es": "Te toca revisar",
|
|
305
|
+
"de": "Reviews für mich",
|
|
306
|
+
"zh-Hant": "待我審查",
|
|
307
|
+
"zh-Hans": "待我审查"
|
|
308
|
+
},
|
|
309
|
+
"description": {
|
|
310
|
+
"en": "Merge requests waiting for your review: whose, how long they have waited and how their pipeline is doing. The ones you approved sink, dimmed.",
|
|
311
|
+
"es": "Las merge requests que te toca revisar: de quién son, cuánto llevan esperando y cómo va su pipeline. Las que ya aprobaste bajan, atenuadas.",
|
|
312
|
+
"de": "Merge Requests, die auf dein Review warten: von wem, wie lange schon und wie ihre Pipeline steht. Die von dir genehmigten rutschen gedimmt nach unten.",
|
|
313
|
+
"zh-Hant": "等你審查的 MR:作者、已等多久,以及管線狀況。你已核准的會往下沉並變暗。",
|
|
314
|
+
"zh-Hans": "等你审查的 MR:作者、已等多久,以及流水线状况。你已批准的会沉到下方并变暗。"
|
|
315
|
+
},
|
|
316
|
+
"icon": "git-branch",
|
|
317
|
+
"category": "dev",
|
|
318
|
+
"tags": [
|
|
319
|
+
"gitlab",
|
|
320
|
+
"code review"
|
|
321
|
+
],
|
|
322
|
+
"size": {
|
|
323
|
+
"min": {
|
|
324
|
+
"w": 280,
|
|
325
|
+
"h": 100
|
|
326
|
+
},
|
|
327
|
+
"preferred": {
|
|
328
|
+
"w": 600,
|
|
329
|
+
"h": 220
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"chrome": "card",
|
|
333
|
+
"sources": [
|
|
334
|
+
"gitlab/merge-requests"
|
|
335
|
+
],
|
|
336
|
+
"options": {
|
|
337
|
+
"default": {
|
|
338
|
+
"rows": 0,
|
|
339
|
+
"layout": "auto",
|
|
340
|
+
"projects": [],
|
|
341
|
+
"includeDrafts": false,
|
|
342
|
+
"hideApproved": false,
|
|
343
|
+
"includeAssigned": false,
|
|
344
|
+
"aliases": {}
|
|
345
|
+
},
|
|
346
|
+
"x-ui": {},
|
|
347
|
+
"type": "object",
|
|
348
|
+
"properties": {
|
|
349
|
+
"rows": {
|
|
350
|
+
"title": "Rows",
|
|
351
|
+
"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\".",
|
|
352
|
+
"default": 0,
|
|
353
|
+
"x-ui": {
|
|
354
|
+
"label": {
|
|
355
|
+
"en": "Rows",
|
|
356
|
+
"es": "Filas",
|
|
357
|
+
"de": "Zeilen",
|
|
358
|
+
"zh-Hant": "列數",
|
|
359
|
+
"zh-Hans": "行数"
|
|
360
|
+
},
|
|
361
|
+
"help": {
|
|
362
|
+
"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\".",
|
|
363
|
+
"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».",
|
|
364
|
+
"de": "0 = so viele, wie passen. Eine Zahl zeigt so viele, in Zeilen lesbarer Größe (weniger, wenn die Kachel dafür zu klein ist); der Rest wird als „+N weitere“ gezählt.",
|
|
365
|
+
"zh-Hant": "0 = 盡量放滿。填數字則顯示該數量,並以易讀的大小排列(方格太小時會減少);其餘的計入「還有 N 個」。",
|
|
366
|
+
"zh-Hans": "0 = 尽量放满。填数字则显示该数量,并以易读的大小排列(格子太小时会减少);其余的计入“还有 N 个”。"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"type": "integer",
|
|
370
|
+
"minimum": 0,
|
|
371
|
+
"maximum": 30
|
|
372
|
+
},
|
|
373
|
+
"layout": {
|
|
374
|
+
"title": "Row layout",
|
|
375
|
+
"description": "Automatic: the widget picks by the tile's shape.",
|
|
376
|
+
"default": "auto",
|
|
377
|
+
"x-ui": {
|
|
378
|
+
"label": {
|
|
379
|
+
"en": "Row layout",
|
|
380
|
+
"es": "Formato de fila",
|
|
381
|
+
"de": "Zeilenlayout",
|
|
382
|
+
"zh-Hant": "列版面",
|
|
383
|
+
"zh-Hans": "行布局"
|
|
384
|
+
},
|
|
385
|
+
"help": {
|
|
386
|
+
"en": "Automatic: the widget picks by the tile's shape.",
|
|
387
|
+
"es": "Automático: el widget elige según la forma de la tesela.",
|
|
388
|
+
"de": "Automatisch: Das Widget wählt nach der Form der Kachel.",
|
|
389
|
+
"zh-Hant": "自動:小工具依方格形狀選擇。",
|
|
390
|
+
"zh-Hans": "自动:小组件根据格子形状选择。"
|
|
391
|
+
},
|
|
392
|
+
"labels": {
|
|
393
|
+
"auto": {
|
|
394
|
+
"en": "Automatic",
|
|
395
|
+
"es": "Automático",
|
|
396
|
+
"de": "Automatisch",
|
|
397
|
+
"zh-Hant": "自動",
|
|
398
|
+
"zh-Hans": "自动"
|
|
399
|
+
},
|
|
400
|
+
"one-line": {
|
|
401
|
+
"en": "One line",
|
|
402
|
+
"es": "Una línea",
|
|
403
|
+
"de": "Eine Zeile",
|
|
404
|
+
"zh-Hant": "單行",
|
|
405
|
+
"zh-Hans": "单行"
|
|
406
|
+
},
|
|
407
|
+
"detailed": {
|
|
408
|
+
"en": "Detailed",
|
|
409
|
+
"es": "Detallado",
|
|
410
|
+
"de": "Ausführlich",
|
|
411
|
+
"zh-Hant": "詳細",
|
|
412
|
+
"zh-Hans": "详细"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"type": "string",
|
|
417
|
+
"enum": [
|
|
418
|
+
"auto",
|
|
419
|
+
"one-line",
|
|
420
|
+
"detailed"
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"projects": {
|
|
424
|
+
"title": "Projects",
|
|
425
|
+
"description": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
426
|
+
"default": [],
|
|
427
|
+
"x-ui": {
|
|
428
|
+
"label": {
|
|
429
|
+
"en": "Projects",
|
|
430
|
+
"es": "Proyectos",
|
|
431
|
+
"de": "Projekte",
|
|
432
|
+
"zh-Hant": "專案",
|
|
433
|
+
"zh-Hans": "项目"
|
|
434
|
+
},
|
|
435
|
+
"help": {
|
|
436
|
+
"en": "Empty: all. Names or patterns, comma-separated: * matches anything, a leading ! leaves out (web, acme/*, !*-old).",
|
|
437
|
+
"es": "Vacío: todos. Nombres o patrones separados por comas: * vale por cualquier cosa y un ! delante excluye (web, acme/*, !*-old).",
|
|
438
|
+
"de": "Leer: alle. Namen oder Muster, durch Kommas getrennt: * steht für alles, ein ! davor schließt aus (web, acme/*, !*-old).",
|
|
439
|
+
"zh-Hant": "留空:全部。填入名稱或模式,以逗號分隔:* 代表任意字元,開頭加 ! 則排除(web, acme/*, !*-old)。",
|
|
440
|
+
"zh-Hans": "留空:全部。填写名称或模式,用逗号分隔:* 匹配任意内容,开头加 ! 表示排除(web, acme/*, !*-old)。"
|
|
441
|
+
},
|
|
442
|
+
"widget": "filter"
|
|
443
|
+
},
|
|
444
|
+
"type": "array",
|
|
445
|
+
"items": {
|
|
446
|
+
"default": "",
|
|
447
|
+
"x-ui": {
|
|
448
|
+
"placeholder": "name, group/*, !old-*"
|
|
449
|
+
},
|
|
450
|
+
"type": "string"
|
|
451
|
+
},
|
|
452
|
+
"x-filter": true
|
|
453
|
+
},
|
|
454
|
+
"includeDrafts": {
|
|
455
|
+
"title": "Include drafts",
|
|
456
|
+
"default": false,
|
|
457
|
+
"x-ui": {
|
|
458
|
+
"label": {
|
|
459
|
+
"en": "Include drafts",
|
|
460
|
+
"es": "Incluir borradores",
|
|
461
|
+
"de": "Entwürfe einbeziehen",
|
|
462
|
+
"zh-Hant": "包含草稿",
|
|
463
|
+
"zh-Hans": "包含草稿"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"type": "boolean"
|
|
467
|
+
},
|
|
468
|
+
"hideApproved": {
|
|
469
|
+
"title": "Hide the ones I approved",
|
|
470
|
+
"default": false,
|
|
471
|
+
"x-ui": {
|
|
472
|
+
"label": {
|
|
473
|
+
"en": "Hide the ones I approved",
|
|
474
|
+
"es": "Ocultar las que ya aprobé",
|
|
475
|
+
"de": "Von mir genehmigte ausblenden",
|
|
476
|
+
"zh-Hant": "隱藏我已核准的",
|
|
477
|
+
"zh-Hans": "隐藏我已批准的"
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"type": "boolean"
|
|
481
|
+
},
|
|
482
|
+
"includeAssigned": {
|
|
483
|
+
"title": "Include the ones assigned to me",
|
|
484
|
+
"description": "For teams that assign a merge request to its reviewer instead of requesting a review. Your own are left out.",
|
|
485
|
+
"default": false,
|
|
486
|
+
"x-ui": {
|
|
487
|
+
"label": {
|
|
488
|
+
"en": "Include the ones assigned to me",
|
|
489
|
+
"es": "Incluir las que tengo asignadas",
|
|
490
|
+
"de": "Mir zugewiesene einbeziehen",
|
|
491
|
+
"zh-Hant": "包含指派給我的",
|
|
492
|
+
"zh-Hans": "包含指派给我的"
|
|
493
|
+
},
|
|
494
|
+
"help": {
|
|
495
|
+
"en": "For teams that assign a merge request to its reviewer instead of requesting a review. Your own are left out.",
|
|
496
|
+
"es": "Para equipos que asignan la merge request a quien la revisa en vez de pedirle revisión. Las tuyas no se cuentan.",
|
|
497
|
+
"de": "Für Teams, die einen Merge Request dem Reviewer zuweisen, statt ein Review anzufragen. Deine eigenen bleiben außen vor.",
|
|
498
|
+
"zh-Hant": "適用於把 MR 指派給審查者、而非發出審查要求的團隊。你自己的 MR 不計入。",
|
|
499
|
+
"zh-Hans": "适用于把 MR 指派给审查人、而不是发起审查请求的团队。你自己的 MR 不计入。"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"type": "boolean"
|
|
503
|
+
},
|
|
504
|
+
"aliases": {
|
|
505
|
+
"title": "Short project names",
|
|
506
|
+
"description": "Project (as in its path) → what to show, e.g. web-frontend → web.",
|
|
507
|
+
"default": {},
|
|
508
|
+
"x-ui": {
|
|
509
|
+
"label": {
|
|
510
|
+
"en": "Short project names",
|
|
511
|
+
"es": "Nombres cortos de proyecto",
|
|
512
|
+
"de": "Kurze Projektnamen",
|
|
513
|
+
"zh-Hant": "專案簡稱",
|
|
514
|
+
"zh-Hans": "项目简称"
|
|
515
|
+
},
|
|
516
|
+
"help": {
|
|
517
|
+
"en": "Project (as in its path) → what to show, e.g. web-frontend → web.",
|
|
518
|
+
"es": "Proyecto (como en su ruta) → lo que se muestra, p. ej. web-frontend → web.",
|
|
519
|
+
"de": "Projekt (wie in seinem Pfad) → was angezeigt wird, z. B. web-frontend → web.",
|
|
520
|
+
"zh-Hant": "專案(依其路徑)→ 顯示內容,例如 web-frontend → web。",
|
|
521
|
+
"zh-Hans": "项目(按其路径)→ 显示内容,例如 web-frontend → web。"
|
|
522
|
+
},
|
|
523
|
+
"advanced": true
|
|
524
|
+
},
|
|
525
|
+
"type": "object",
|
|
526
|
+
"additionalProperties": {
|
|
527
|
+
"type": "string"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"screenshot": "docs/reviews.png",
|
|
533
|
+
"animated": false,
|
|
534
|
+
"urgent": false
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
"sources": [
|
|
538
|
+
{
|
|
539
|
+
"type": "gitlab/merge-requests",
|
|
540
|
+
"name": {
|
|
541
|
+
"en": "GitLab merge requests",
|
|
542
|
+
"es": "Merge requests de GitLab",
|
|
543
|
+
"de": "GitLab-Merge-Requests",
|
|
544
|
+
"zh-Hant": "GitLab 合併要求",
|
|
545
|
+
"zh-Hans": "GitLab 合并请求"
|
|
546
|
+
},
|
|
547
|
+
"description": {
|
|
548
|
+
"en": "Your open merge requests, the ones you are asked to review and the ones assigned to you, through glab or a token.",
|
|
549
|
+
"es": "Tus merge requests abiertas, las que te piden revisar y las que tienes asignadas, con glab o con un token.",
|
|
550
|
+
"de": "Deine offenen Merge Requests, die, für die ein Review von dir angefragt ist, und die dir zugewiesenen, über glab oder ein Token.",
|
|
551
|
+
"zh-Hant": "透過 glab 或權杖取得:你開啟中的 MR、請你審查的 MR,以及指派給你的 MR。",
|
|
552
|
+
"zh-Hans": "通过 glab 或令牌获取:你开放中的 MR、请你审查的 MR,以及指派给你的 MR。"
|
|
553
|
+
},
|
|
554
|
+
"polled": true,
|
|
555
|
+
"intervalMs": 180000,
|
|
556
|
+
"options": {
|
|
557
|
+
"default": {
|
|
558
|
+
"host": "",
|
|
559
|
+
"token": "",
|
|
560
|
+
"bin": "glab"
|
|
561
|
+
},
|
|
562
|
+
"x-ui": {},
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"host": {
|
|
566
|
+
"title": "GitLab host",
|
|
567
|
+
"description": "Empty = glab's default host (gitlab.com with a token).",
|
|
568
|
+
"default": "",
|
|
569
|
+
"x-ui": {
|
|
570
|
+
"label": {
|
|
571
|
+
"en": "GitLab host",
|
|
572
|
+
"es": "Servidor de GitLab",
|
|
573
|
+
"de": "GitLab-Host",
|
|
574
|
+
"zh-Hant": "GitLab 主機",
|
|
575
|
+
"zh-Hans": "GitLab 主机"
|
|
576
|
+
},
|
|
577
|
+
"help": {
|
|
578
|
+
"en": "Empty = glab's default host (gitlab.com with a token).",
|
|
579
|
+
"es": "Vacío = el servidor por defecto de glab (gitlab.com con token).",
|
|
580
|
+
"de": "Leer = der Standard-Host von glab (mit Token gitlab.com).",
|
|
581
|
+
"zh-Hant": "留空 = glab 的預設主機(使用權杖時為 gitlab.com)。",
|
|
582
|
+
"zh-Hans": "留空 = glab 的默认主机(使用令牌时为 gitlab.com)。"
|
|
583
|
+
},
|
|
584
|
+
"placeholder": "gitlab.com"
|
|
585
|
+
},
|
|
586
|
+
"x-risk": "network",
|
|
587
|
+
"type": "string"
|
|
588
|
+
},
|
|
589
|
+
"token": {
|
|
590
|
+
"title": "Access token",
|
|
591
|
+
"description": "A personal access token with read_api. Empty = use the glab 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.",
|
|
592
|
+
"default": "",
|
|
593
|
+
"x-ui": {
|
|
594
|
+
"label": {
|
|
595
|
+
"en": "Access token",
|
|
596
|
+
"es": "Token de acceso",
|
|
597
|
+
"de": "Zugriffstoken",
|
|
598
|
+
"zh-Hant": "存取權杖",
|
|
599
|
+
"zh-Hans": "访问令牌"
|
|
600
|
+
},
|
|
601
|
+
"help": {
|
|
602
|
+
"en": "A personal access token with read_api. Empty = use the glab CLI and its login.",
|
|
603
|
+
"es": "Un token personal con read_api. Vacío = usar el CLI glab y su sesión.",
|
|
604
|
+
"de": "Ein Personal Access Token mit read_api. Leer = die glab-CLI und ihre Anmeldung verwenden.",
|
|
605
|
+
"zh-Hant": "具備 read_api 的個人存取權杖。留空 = 使用 glab CLI 及其登入。",
|
|
606
|
+
"zh-Hans": "具有 read_api 的个人访问令牌。留空 = 使用 glab CLI 及其登录。"
|
|
607
|
+
},
|
|
608
|
+
"secret": true
|
|
609
|
+
},
|
|
610
|
+
"x-secret": true,
|
|
611
|
+
"type": "string"
|
|
612
|
+
},
|
|
613
|
+
"bin": {
|
|
614
|
+
"title": "glab command",
|
|
615
|
+
"default": "glab",
|
|
616
|
+
"x-ui": {
|
|
617
|
+
"label": {
|
|
618
|
+
"en": "glab command",
|
|
619
|
+
"es": "Comando glab",
|
|
620
|
+
"de": "glab-Befehl",
|
|
621
|
+
"zh-Hant": "glab 指令",
|
|
622
|
+
"zh-Hans": "glab 命令"
|
|
623
|
+
},
|
|
624
|
+
"advanced": true,
|
|
625
|
+
"format": "path"
|
|
626
|
+
},
|
|
627
|
+
"x-risk": "exec",
|
|
628
|
+
"type": "string"
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"interludes": [],
|
|
635
|
+
"templates": [],
|
|
636
|
+
"support": {
|
|
637
|
+
"issues": "https://github.com/kiosko-lcd/kiosko-plugin-gitlab/issues",
|
|
638
|
+
"docs": "https://github.com/kiosko-lcd/kiosko-plugin-gitlab#readme"
|
|
639
|
+
}
|
|
640
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiosko-plugin-gitlab",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "GitLab cards: the pipelines of your open merge requests and the ones waiting for your review.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,21 @@
|
|
|
28
28
|
},
|
|
29
29
|
"kiosko": {
|
|
30
30
|
"plugin": "./dist/index.js",
|
|
31
|
-
"id": "gitlab"
|
|
31
|
+
"id": "gitlab",
|
|
32
|
+
"sdk": "^0.2.0",
|
|
33
|
+
"languages": [
|
|
34
|
+
"en",
|
|
35
|
+
"es",
|
|
36
|
+
"de",
|
|
37
|
+
"zh-Hant",
|
|
38
|
+
"zh-Hans"
|
|
39
|
+
],
|
|
40
|
+
"manifest": "./kiosko-manifest.json"
|
|
32
41
|
},
|
|
33
42
|
"files": [
|
|
34
43
|
"dist",
|
|
44
|
+
"docs",
|
|
45
|
+
"kiosko-manifest.json",
|
|
35
46
|
"README.md",
|
|
36
47
|
"LICENSE"
|
|
37
48
|
],
|
|
@@ -44,8 +55,11 @@
|
|
|
44
55
|
"check": "tsc -p tsconfig.json",
|
|
45
56
|
"prepublishOnly": "npm run build"
|
|
46
57
|
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"@kiosko/sdk": "^0.2.0"
|
|
60
|
+
},
|
|
47
61
|
"devDependencies": {
|
|
48
|
-
"@kiosko/sdk": "^0.2.
|
|
62
|
+
"@kiosko/sdk": "^0.2.1",
|
|
49
63
|
"@loksly/lcd-canvas-kit": "^0.2.0",
|
|
50
64
|
"@napi-rs/canvas": "^1.0.10",
|
|
51
65
|
"@types/node": "^24.0.0",
|