@feigi/fleet-ctl 3.136.11 → 3.136.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/package.json +1 -1
- package/scripts/ledger.mjs +8 -4
package/package.json
CHANGED
package/scripts/ledger.mjs
CHANGED
|
@@ -877,10 +877,14 @@ if (cmd === "read") {
|
|
|
877
877
|
} else if (cmd === "ruled") {
|
|
878
878
|
const [pr, ...decisionParts] = rest;
|
|
879
879
|
if (!pr || decisionParts.length === 0) die("usage: ledger.mjs ruled <pr> <decision>");
|
|
880
|
-
//
|
|
881
|
-
//
|
|
882
|
-
//
|
|
883
|
-
//
|
|
880
|
+
// compute-board.mjs reads a `## Ruled` line led by `#<n>` as the
|
|
881
|
+
// controller's ruling on PR n, the last such line winning, and shows it on
|
|
882
|
+
// that PR's board card; `settle --from-report` reads the section to skip a
|
|
883
|
+
// line already there. So the `#<pr> <decision>` lead is a contract with the
|
|
884
|
+
// board, not free text. No verdict, label or row token depends on the
|
|
885
|
+
// section. A wrong id misattributes the ruling to another PR or hides it
|
|
886
|
+
// from the board, and leaves a permanently wrong record in an append-only
|
|
887
|
+
// file. Guarded because that record is what the subcommand exists to write.
|
|
884
888
|
refuseStrayInId(pr, "a PR number");
|
|
885
889
|
const decision = decisionParts.join(" ");
|
|
886
890
|
data.ruled.push(`#${pr.replace(/^#/, "")} ${decision}`);
|