pull-request-split-advisor 3.2.8 → 3.2.9
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/cli.js +4 -3
- package/dist/git/git.js +2 -1
- package/dist/output/report.js +5 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -399,8 +399,9 @@ async function main() {
|
|
|
399
399
|
], "red");
|
|
400
400
|
// ─── Estado de la cascada en terminal ───────────────────────────────────
|
|
401
401
|
ui.section("ESTADO DE LA CASCADA", "#");
|
|
402
|
-
for (
|
|
403
|
-
|
|
402
|
+
for (let i = 0; i < siblings.length; i++) {
|
|
403
|
+
const sibling = siblings[i];
|
|
404
|
+
ui.subsection(`#${i + 1} ${sibling.name}`);
|
|
404
405
|
if (sibling.commits.length === 0) {
|
|
405
406
|
ui.muted(" Sin commits detectados.");
|
|
406
407
|
}
|
|
@@ -408,7 +409,7 @@ async function main() {
|
|
|
408
409
|
ui.table(["SHA", "Mensaje"], sibling.commits.map((c) => [c.sha, c.subject]), true);
|
|
409
410
|
}
|
|
410
411
|
}
|
|
411
|
-
ui.subsection(
|
|
412
|
+
ui.subsection(`#${siblings.length + 1} ${currentBranch} ← rama actual`);
|
|
412
413
|
if (currentBranchCommits.length === 0) {
|
|
413
414
|
ui.muted(" Sin commits detectados.");
|
|
414
415
|
}
|
package/dist/git/git.js
CHANGED
|
@@ -290,7 +290,8 @@ function discoverSortedSiblings(currentBranch, baseBranch, familyPrefix) {
|
|
|
290
290
|
seenNames.add(name.toUpperCase());
|
|
291
291
|
}
|
|
292
292
|
const candidates = branches.filter(({ name }) => name !== currentBranch &&
|
|
293
|
-
name.toUpperCase().startsWith(familyPrefix.toUpperCase())
|
|
293
|
+
name.toUpperCase().startsWith(familyPrefix.toUpperCase()) &&
|
|
294
|
+
!/backup/i.test(name));
|
|
294
295
|
if (candidates.length === 0)
|
|
295
296
|
return [];
|
|
296
297
|
const withAhead = candidates.filter(({ ref }) => {
|
package/dist/output/report.js
CHANGED
|
@@ -509,14 +509,16 @@ export function renderHtmlReport(input) {
|
|
|
509
509
|
...cw.siblings,
|
|
510
510
|
{ name: currentBranch, commits: cw.currentBranchCommits, isCurrent: true }
|
|
511
511
|
];
|
|
512
|
-
const cascadeStateHtml = allBranches.map((branch) => {
|
|
512
|
+
const cascadeStateHtml = allBranches.map((branch, idx) => {
|
|
513
|
+
const num = idx + 1;
|
|
514
|
+
const color = branch.isCurrent ? "#e2e8f0" : "#94a3b8";
|
|
513
515
|
const commitsHtml = branch.commits.length > 0
|
|
514
516
|
? `<ul style="margin:4px 0 0 0;padding:0;list-style:none">${branch.commits.map((c) => `<li style="font-size:.82em;padding:2px 0">` +
|
|
515
517
|
`<code style="color:#60a5fa;margin-right:8px">${esc(c.sha)}</code>` +
|
|
516
518
|
`<span style="opacity:.9">${esc(c.subject)}</span></li>`).join("")}</ul>`
|
|
517
519
|
: `<div style="font-size:.8em;opacity:.5;margin-top:2px">Sin commits</div>`;
|
|
518
|
-
return `<div style="margin:6px 0;padding:8px 10px;background:rgba(0,0,0,.15);border-radius:5px;border-left:3px solid ${
|
|
519
|
-
<div style="font-weight:600;font-size:.88em;color:${
|
|
520
|
+
return `<div style="margin:6px 0;padding:8px 10px;background:rgba(0,0,0,.15);border-radius:5px;border-left:3px solid ${color}">
|
|
521
|
+
<div style="font-weight:600;font-size:.88em;color:${color}"><span style="opacity:.55;margin-right:6px">#${num}</span>${esc(branch.name)}${branch.isCurrent ? " <span style=\"font-size:.8em;opacity:.7\">← rama actual</span>" : ""}</div>
|
|
520
522
|
${commitsHtml}
|
|
521
523
|
</div>`;
|
|
522
524
|
}).join("");
|
package/package.json
CHANGED