diff --git a/.vscode/launch.json b/.vscode/launch.json index 11ff6bd1..00b4a9cf 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,12 +11,12 @@ "runtimeArgs": ["-r", "ts-node/register"], "args": [ "${workspaceFolder}/src/debug.ts", - "is", - "--new", + "pr", + "-s", + "protoEvangleion", "--title", - "title", - "--message", - "mess" + "dont ask", + "--description" ], // "args": ["${workspaceFolder}/src/debug.ts", "ji", "LWM-117", "--status"], "console": "integratedTerminal" diff --git a/src/cmds/pull-request.ts b/src/cmds/pull-request.ts index 292ed700..8a32859a 100755 --- a/src/cmds/pull-request.ts +++ b/src/cmds/pull-request.ts @@ -856,7 +856,7 @@ async function submit(options, user) { title: title, ...(options.issue ? { issue: options.issue } : {}), ...(options.draft ? { draft: options.draft } : {}), - ...(options.description ? { body: options.description } : {}), + ...(description ? { body: description } : {}), } try { diff --git a/src/utils.ts b/src/utils.ts index fa41afc8..d53d7203 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -26,7 +26,7 @@ export function openUrl(url) { */ export function userLeftMsgEmpty(string: string): boolean { return ( - string === '' || + !string || string === '--title' || string === '-t' || string === '--message' ||