@locusai/cli 0.21.2 → 0.21.4
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/bin/locus.js +3 -3
- package/package.json +1 -1
package/bin/locus.js
CHANGED
|
@@ -569,7 +569,7 @@ function detectRepoContext(cwd) {
|
|
|
569
569
|
return { owner, repo, defaultBranch, currentBranch, remoteUrl };
|
|
570
570
|
}
|
|
571
571
|
function parseRemoteUrl(url) {
|
|
572
|
-
let match = url.match(/
|
|
572
|
+
let match = url.match(/[^@]+@github\.com:([^/]+)\/([^/.]+)/);
|
|
573
573
|
if (match)
|
|
574
574
|
return { owner: match[1], repo: match[2] };
|
|
575
575
|
match = url.match(/github\.com\/([^/]+)\/([^/.]+)/);
|
|
@@ -10705,7 +10705,7 @@ var exports_review = {};
|
|
|
10705
10705
|
__export(exports_review, {
|
|
10706
10706
|
reviewCommand: () => reviewCommand
|
|
10707
10707
|
});
|
|
10708
|
-
import { execSync as execSync15 } from "node:child_process";
|
|
10708
|
+
import { execFileSync as execFileSync2, execSync as execSync15 } from "node:child_process";
|
|
10709
10709
|
import { existsSync as existsSync21, readFileSync as readFileSync14 } from "node:fs";
|
|
10710
10710
|
import { join as join21 } from "node:path";
|
|
10711
10711
|
function printHelp2() {
|
|
@@ -10857,7 +10857,7 @@ ${output.slice(0, 60000)}
|
|
|
10857
10857
|
|
|
10858
10858
|
---
|
|
10859
10859
|
_Reviewed by Locus AI (${config.ai.provider}/${flags.model ?? config.ai.model})_`;
|
|
10860
|
-
|
|
10860
|
+
execFileSync2("gh", ["pr", "comment", String(pr.number), "--body", reviewBody], { cwd: projectRoot, encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
|
|
10861
10861
|
process.stderr.write(` ${green("✓")} Review posted ${dim(`(${timer.formatted()})`)}
|
|
10862
10862
|
`);
|
|
10863
10863
|
} catch (e) {
|