@kaynooo/cli-forgejo 0.30.8 → 0.30.9
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.js +6 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2000,12 +2000,15 @@ import { join as join6 } from "path";
|
|
|
2000
2000
|
import process19 from "process";
|
|
2001
2001
|
var SOCKET_VARIABLE = "KAYNOOO_ASKPASS_SOCKET";
|
|
2002
2002
|
var ECHOED = /username|yes\/no/i;
|
|
2003
|
+
var NO_PROMPTS = { GIT_TERMINAL_PROMPT: "0", GIT_ASKPASS: "", SSH_ASKPASS: "", SSH_ASKPASS_REQUIRE: "never" };
|
|
2003
2004
|
var quoted = (text) => `'${text.replaceAll("'", `'\\''`)}'`;
|
|
2004
2005
|
function askpass(pause = () => () => {
|
|
2005
2006
|
return;
|
|
2006
2007
|
}) {
|
|
2007
2008
|
if (process19.stdin.isTTY !== true || process19.stderr.isTTY !== true || process19.argv[1] === undefined)
|
|
2008
|
-
return
|
|
2009
|
+
return { env: { ...NO_PROMPTS }, close: () => {
|
|
2010
|
+
return;
|
|
2011
|
+
} };
|
|
2009
2012
|
const dir = mkdtempSync(join6(tmpdir(), "kaynooo-askpass-"));
|
|
2010
2013
|
const socketPath = join6(dir, "socket");
|
|
2011
2014
|
const script = join6(dir, "askpass");
|
|
@@ -5361,9 +5364,9 @@ var limits = { pushMs: 5 * 60000 };
|
|
|
5361
5364
|
async function pushToOrigin(refspecs, onStart) {
|
|
5362
5365
|
const prompts = askpass();
|
|
5363
5366
|
try {
|
|
5364
|
-
return await runTool("git push", ["git", "push", ...refspecs], { timeoutMs: limits.pushMs, onStart, env: prompts
|
|
5367
|
+
return await runTool("git push", ["git", "push", ...refspecs], { timeoutMs: limits.pushMs, onStart, env: prompts.env });
|
|
5365
5368
|
} finally {
|
|
5366
|
-
prompts
|
|
5369
|
+
prompts.close();
|
|
5367
5370
|
}
|
|
5368
5371
|
}
|
|
5369
5372
|
var NO_RUN2 = 3 * 60000;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-forgejo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.30.
|
|
4
|
+
"version": "0.30.9",
|
|
5
5
|
"description": "ft: Forgejo CI runs, logs, releases and issue checklists from the terminal, through tea.",
|
|
6
6
|
"author": "Kaynooo <contact@kaynooo.fr>",
|
|
7
7
|
"license": "MIT",
|