@locusai/cli 0.17.5 → 0.17.6
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 +6 -1
- package/package.json +1 -1
package/bin/locus.js
CHANGED
|
@@ -1271,7 +1271,12 @@ function updateIssueLabels(number, addLabels, removeLabels, options = {}) {
|
|
|
1271
1271
|
gh(args, options);
|
|
1272
1272
|
}
|
|
1273
1273
|
function addIssueComment(number, body, options = {}) {
|
|
1274
|
-
|
|
1274
|
+
const cwd = options.cwd ?? process.cwd();
|
|
1275
|
+
execFileSync("gh", ["issue", "comment", String(number), "--body", body], {
|
|
1276
|
+
cwd,
|
|
1277
|
+
encoding: "utf-8",
|
|
1278
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
1279
|
+
});
|
|
1275
1280
|
}
|
|
1276
1281
|
function createMilestone(owner, repo, title, dueOn, description, options = {}) {
|
|
1277
1282
|
let args = `api repos/${owner}/${repo}/milestones -f title=${JSON.stringify(title)}`;
|