@karajan-family/code 5.0.2 → 5.0.3
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/src/checks/repo-state.js +3 -2
package/package.json
CHANGED
package/src/checks/repo-state.js
CHANGED
|
@@ -124,12 +124,13 @@ export function createRepoStateCheck({ projectDir }) {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
const notMain = defaultBranchProblem(dir);
|
|
127
|
-
|
|
127
|
+
// KJC-BUG-0481 (#3080, point 3): a failure until it is fixed, not a warning, so doctor exits 1.
|
|
128
|
+
if (notMain) symptoms.push({ detail: notMain.detail, fix: notMain.fix, fails: true });
|
|
128
129
|
|
|
129
130
|
if (symptoms.length === 0) return { ok: true, severity: "info", detail: "el repositorio está en orden" };
|
|
130
131
|
return {
|
|
131
132
|
ok: false,
|
|
132
|
-
severity: "warn",
|
|
133
|
+
severity: symptoms.some((s) => s.fails) ? "fail" : "warn",
|
|
133
134
|
detail: symptoms.map((s) => s.detail).join(" · "),
|
|
134
135
|
fix: symptoms.map((s) => s.fix).join(" · "),
|
|
135
136
|
};
|