@neriros/ralphy 2.17.0 → 2.17.1
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/index.js +15 -7
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -35029,8 +35029,8 @@ import { readFileSync as readFileSync2 } from "fs";
|
|
|
35029
35029
|
import { resolve } from "path";
|
|
35030
35030
|
function getVersion() {
|
|
35031
35031
|
try {
|
|
35032
|
-
if ("2.17.
|
|
35033
|
-
return "2.17.
|
|
35032
|
+
if ("2.17.1")
|
|
35033
|
+
return "2.17.1";
|
|
35034
35034
|
} catch {}
|
|
35035
35035
|
const dirsToTry = [];
|
|
35036
35036
|
try {
|
|
@@ -60796,6 +60796,8 @@ async function fixConflictsAndCiLoop(ctx, prUrl, wantFixCi, checkPrConflict) {
|
|
|
60796
60796
|
} catch (err) {
|
|
60797
60797
|
ctx.log(`! conflict check failed: ${err.message}`, "yellow");
|
|
60798
60798
|
}
|
|
60799
|
+
if (!conflicting && ciConfirmedGreen)
|
|
60800
|
+
return 0;
|
|
60799
60801
|
if (conflicting) {
|
|
60800
60802
|
outerAttempt++;
|
|
60801
60803
|
ciConfirmedGreen = false;
|
|
@@ -61442,12 +61444,18 @@ PR: ${prUrl}` : ""
|
|
|
61442
61444
|
onPhase: (phase, detail) => onWorkerPhase(changeName, phase, detail)
|
|
61443
61445
|
},
|
|
61444
61446
|
checkPrConflict: async (prUrl) => {
|
|
61445
|
-
|
|
61446
|
-
|
|
61447
|
-
|
|
61448
|
-
|
|
61449
|
-
|
|
61447
|
+
for (let attempt2 = 0;attempt2 < 5; attempt2++) {
|
|
61448
|
+
try {
|
|
61449
|
+
const res = await tracedCmd.run(["gh", "pr", "view", prUrl, "--json", "mergeable", "--jq", ".mergeable"], cwd2);
|
|
61450
|
+
const mergeable = res.stdout.trim();
|
|
61451
|
+
if (mergeable !== "UNKNOWN")
|
|
61452
|
+
return mergeable === "CONFLICTING";
|
|
61453
|
+
} catch {
|
|
61454
|
+
return false;
|
|
61455
|
+
}
|
|
61456
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
61450
61457
|
}
|
|
61458
|
+
return false;
|
|
61451
61459
|
}
|
|
61452
61460
|
});
|
|
61453
61461
|
cwdByChange.delete(changeName);
|