@theholocron/cli 5.0.0-alpha.491 → 5.0.0-alpha.492

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.mjs CHANGED
@@ -28103,6 +28103,7 @@ async function runProjectReconcile(input) {
28103
28103
  }
28104
28104
  let board;
28105
28105
  let plan;
28106
+ const problems = [];
28106
28107
  try {
28107
28108
  board = await projects.find(owner, declared.name);
28108
28109
  if (!board) {
@@ -28111,6 +28112,10 @@ async function runProjectReconcile(input) {
28111
28112
  }
28112
28113
  const items = await projects.items(owner, board, template);
28113
28114
  plan = planReconcile(items, template);
28115
+ for (const item of items) {
28116
+ if (item.pullRequestsProblem === void 0) continue;
28117
+ problems.push(`${item.key} pull requests could not be read (${item.pullRequestsProblem}): their rules were not applied`);
28118
+ }
28114
28119
  const settled = /* @__PURE__ */ new Set([...plan.changes.map((c) => c.key), ...plan.unset.map((i) => i.key)]);
28115
28120
  for (const item of items) {
28116
28121
  if (settled.has(item.key)) continue;
@@ -28158,6 +28163,14 @@ async function runProjectReconcile(input) {
28158
28163
  }, "reconcile project");
28159
28164
  }
28160
28165
  }
28166
+ for (const problem of problems) {
28167
+ print(` ${style.warn(problem)}`);
28168
+ logger.warn({
28169
+ board: declared.name,
28170
+ reason: problem
28171
+ }, "reconcile project");
28172
+ skipped++;
28173
+ }
28161
28174
  for (const item of plan.unset) {
28162
28175
  print(` ${style.warn(`${item.key} has no status: needs a decision, left as it is`)}`);
28163
28176
  skipped++;