@mikitasazan/notify 1.6.1 → 1.6.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/dist/render.js +14 -7
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -332,15 +332,22 @@ const labelled = (rows) => {
|
|
|
332
332
|
* на зелёную. Строка заголовка стоит дешевле, чем необходимость каждый раз
|
|
333
333
|
* заново искать глазами, где что.
|
|
334
334
|
*/
|
|
335
|
+
/**
|
|
336
|
+
* A deploy or a check has two subjects: the run itself and the commit it went
|
|
337
|
+
* out with. Facts about the RUN touch the type line with no heading, because
|
|
338
|
+
* the type line already names the run — that is how every job card is built,
|
|
339
|
+
* and `Reason:` must not sit against the name on one card and under a heading
|
|
340
|
+
* on another. Facts about the COMMIT are a different subject, so they keep a
|
|
341
|
+
* heading of their own.
|
|
342
|
+
*
|
|
343
|
+
* The `Run` heading is gone for the same reason the word `open` went: it
|
|
344
|
+
* announced what line 2 had already said.
|
|
345
|
+
*/
|
|
335
346
|
const twoBlocks = (run, change) => {
|
|
336
347
|
const live = (rows) => rows.filter((r) => r !== null && r !== '');
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
out.push('', group(name), ...rows);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return out;
|
|
348
|
+
const runRows = live(run);
|
|
349
|
+
const changeRows = live(change);
|
|
350
|
+
return [...runRows, ...(changeRows.length > 0 ? ['', group('Change'), ...changeRows] : [])];
|
|
344
351
|
};
|
|
345
352
|
// Значок и его закон живут в events.ts: от него зависит и звук.
|
|
346
353
|
/** Строка 2: значок вне жирного, `<b>Тип:</b> действие` — то же поле, не особый случай. */
|
package/package.json
CHANGED