Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
fix(pull-request): ensure description is passed correctly from editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Garant committed Nov 4, 2019
1 parent 68c55b1 commit d7a457a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/pull-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function openUrl(url) {
*/
export function userLeftMsgEmpty(string: string): boolean {
return (
string === '' ||
!string ||
string === '--title' ||
string === '-t' ||
string === '--message' ||
Expand Down

0 comments on commit d7a457a

Please sign in to comment.