pull-request-split-advisor 3.2.10 → 3.2.12
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 +1 -1
- package/dist/config/default-config.js +3 -3
- package/dist/output/report.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -409,7 +409,7 @@ async function main() {
|
|
|
409
409
|
ui.table(["SHA", "Mensaje"], sibling.commits.map((c) => [c.sha, c.subject]), true);
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
ui.subsection(`#${siblings.length + 1} ${currentBranch}
|
|
412
|
+
ui.subsection(`#${siblings.length + 1} ${currentBranch} ✔ rama actual`);
|
|
413
413
|
if (currentBranchCommits.length === 0) {
|
|
414
414
|
ui.muted(" Sin commits detectados.");
|
|
415
415
|
}
|
|
@@ -74,10 +74,10 @@ export const defaultConfig = {
|
|
|
74
74
|
/**
|
|
75
75
|
* Score mínimo para que el plan sea válido.
|
|
76
76
|
* - < 3.0 : casi cualquier distribución es válida
|
|
77
|
-
* - 4.0 : balance razonable
|
|
78
|
-
* - 5.0 : solo PRs perfectamente pequeños
|
|
77
|
+
* - 4.0 : balance razonable
|
|
78
|
+
* - 5.0 : solo PRs perfectamente pequeños (default)
|
|
79
79
|
*/
|
|
80
|
-
targetScore:
|
|
80
|
+
targetScore: 5,
|
|
81
81
|
/**
|
|
82
82
|
* Cuántos valores de `branchCount` explorar por encima del mínimo teórico.
|
|
83
83
|
* El motor se detiene en la primera iteración que produce un plan válido.
|
package/dist/output/report.js
CHANGED
|
@@ -511,7 +511,7 @@ export function renderHtmlReport(input) {
|
|
|
511
511
|
];
|
|
512
512
|
const cascadeStateHtml = allBranches.map((branch, idx) => {
|
|
513
513
|
const num = idx + 1;
|
|
514
|
-
const color = branch.isCurrent ? "#
|
|
514
|
+
const color = branch.isCurrent ? "#4ade80" : "#94a3b8";
|
|
515
515
|
const commitsHtml = branch.commits.length > 0
|
|
516
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">` +
|
|
517
517
|
`<code style="color:#60a5fa;margin-right:8px">${esc(c.sha)}</code>` +
|
|
@@ -521,7 +521,7 @@ export function renderHtmlReport(input) {
|
|
|
521
521
|
<div style="display:flex;align-items:center;gap:6px;margin-bottom:4px">
|
|
522
522
|
<span style="font-size:.75em;font-weight:700;opacity:.5;min-width:22px">#${num}</span>
|
|
523
523
|
<code style="display:inline-block;background:#fff;color:#1e293b;font-size:.8em;font-weight:600;padding:1px 7px;border-radius:4px;letter-spacing:.01em">${esc(branch.name)}</code>
|
|
524
|
-
${branch.isCurrent ? `<span style="font-size:.75em;color:#
|
|
524
|
+
${branch.isCurrent ? `<span style="font-size:.75em;color:#4ade80;font-weight:600">← rama actual</span>` : ""}
|
|
525
525
|
</div>
|
|
526
526
|
${commitsHtml}
|
|
527
527
|
</div>`;
|
package/package.json
CHANGED