Closed cleydyr closed 4 years ago
Sorry for not posting the steps to reproduce.
I ended up with a empty commit message accidentally somehow, but there's a deliberate way of doing that, like in
git commit --allow-empty-message -m ''
.
Thanks
Does it fail on every command? Do you have the error message?
Sure. Here are the steps to reproduce.
git commit --allow-empty-message -m ''
gh pr --submit mygithubuser
, replacing mygithubuser
with your user name from Github.The following error will be seen in the terminal
undefined:1
Empty value for parameter 'title':
^
SyntaxError: Unexpected token E in JSON at position 0
at JSON.parse (<anonymous>)
at instance.submit (/Users/thecleydyr/.nvm/versions/node/v8.11.1/lib/node_modules/gh/lib/cmds/pull-request.js:985:32)
at base.github.pullRequests.getAll (/Users/thecleydyr/.nvm/versions/node/v8.11.1/lib/node_modules/gh/lib/cmds/pull-request.js:290:25)
at /Users/thecleydyr/.nvm/versions/node/v8.11.1/lib/node_modules/gh/node_modules/github/api/v3.0.0/pullRequests.js:71:17
at callCallback (/Users/thecleydyr/.nvm/versions/node/v8.11.1/lib/node_modules/gh/node_modules/github/index.js:743:17)
at IncomingMessage.<anonymous> (/Users/thecleydyr/.nvm/versions/node/v8.11.1/lib/node_modules/gh/node_modules/github/index.js:796:25)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
Thanks
@all-contributors please add cleydyr for bug
@protoEvangelion
I've put up a pull request to add @cleydyr! :tada:
Fixed by: https://github.com/node-gh/gh/pull/716
Hi @cleydyr in what case would a commit message every be empty?