node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

Validation error when doing gh pr -s <user> #755

Closed allen-ziegenfus closed 4 years ago

allen-ziegenfus commented 4 years ago

Version number In which version does the bug appear? 2.8.4

Describe the bug If i do gh pr -s <user> I get a Http Error Validation failed response and the pr is not submitted

To Reproduce Steps to reproduce the behavior:

  1. Run gh pr -s <user>
  2. See error Http Error: Validation failed

Expected behavior PR is submitted

Additional context Downgrading to 2.8.3 fixes the issue

protoEvangelion commented 4 years ago

Hey what's up @allen-ziegenfus !!!

Does adding "use_editor": false to your ~/.gh.json fix it?

Gh will try to open your editor if you don't supply a title or a description. I'm guessing it's failing in this process if it doesn't have proper permissions to create temp files.

allen-ziegenfus commented 4 years ago

hey @protoEvangelion nice to see you!!! :rocket:

it looks like that does fix it

strangely enough this did work without that pre 2.8.4!

protoEvangelion commented 4 years ago

Awesome glad to hear it! Let me know if you have any more issues with that 👍

allen-ziegenfus commented 4 years ago

it's working like a champ thanks man! :rocket: