Uh oh!
There was an error while loading. Please reload this page.
doc: add github PR and Issue templates - #1228
Conversation
| ##### Checklist | ||
| <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
| - [ ] `npm it` passes |
There was a problem hiding this comment.
Yeah, maybe use the long form here for clarity.
| the output. | ||
| --> | ||
| ``` |
There was a problem hiding this comment.
Ohh and another thing 😲 (that one lines restore GFM inside HTML)
There was a problem hiding this comment.
Yeah, I only learned that by emailing Github support... Apparently it's a commonmark thing (it's in their docs too).
| Node Version: output of `node -v` and `npm -v` | ||
| Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) | ||
| Compiler: output of `cc -v` (UNIX) or `msbuild.exe` (Windows) |
There was a problem hiding this comment.
msbuild.exe -> msbuild /version & cl
| Please fill in as much of the template below as you're able. | ||
| Node Version: output of `node -v` and `npm -v` | ||
| Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) |
There was a problem hiding this comment.
version -> systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
There was a problem hiding this comment.
I lifted this from node, probably worth PRing it there.
There was a problem hiding this comment.
It's trade off since the output is
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.15063 N/A Build 15063
System Type: x64-based PC
I'm not sure in node it's worth it since AFAIK there are way less version specific issues there. I think since node-gyp compiles it's way more version sensitive
refack
commented
Jun 11, 2017
3887dd7 to
23394b7Comparegibfahn
commented
Jun 11, 2017
bnoordhuis
left a comment
There was a problem hiding this comment.
Suggestions but LGTM either way.
| `systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"` (Windows) | ||
| Compiler: output of `cc -v` (UNIX) or `msbuild /version & cl` (Windows) | ||
| Module: the module you tried to install. | ||
| --> |
There was a problem hiding this comment.
Shorter is better, in my experience, because the sad truth is that people tune out if it's more than two or three lines (while still demanding you fix their issue RIGHT NOW!)
In libuv, we have this:
<!--
If you want to report a bug, you are in the right place!
If you need help or have a question, go here: https://github.com/libuv/help/new
Please include code that demonstrates the bug and keep it short and simple.
-->
* **Version**: <!-- libuv version -->
* **Platform**: <!-- `uname -a` (UNIX), or Windows version and machine type -->
There was a problem hiding this comment.
Agreed, no point filling it with useful information no-one will read...
| ##### Checklist | ||
| <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
| - [ ] `npm it` passes |
There was a problem hiding this comment.
Yeah, maybe use the long form here for clarity.
| * **Node Version**: | ||
| * **Platform**: | ||
| * **Compiler**: |
There was a problem hiding this comment.
Maybe include how to get the version (cc -v and on Windows... mscver? I think?)
Same for platform: uname -a
There was a problem hiding this comment.
I did that in the comment above, but I can move it down here. If you didn't notice it on first glance, then neither will the average issue raiser.
gibfahn
commented
Jun 12, 2017
@bnoordhuis updated and shortened, PTAL. |
| - [ ] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#commit-message-guidelines) | ||
| ##### Description of change | ||
| <!-- Provide a description of the change --> |
There was a problem hiding this comment.
Maybe add a blank line at the end? I always feel strange having to put the cursor at the end of the comment and hitting enter just to get started.
refack
commented
Jun 13, 2017
For bug reports we should request the output of |
Give users reporting bugs a clearer idea of the info that will be helpful when reporting issues. Refs: https://github.com/nodejs/node/tree/master/.github
gibfahn
commented
Jun 14, 2017
I think node-gyp could definitely benefit from some improved failure message. If something goes wrong we could say things like "you don't have a C compiler installed" and link them to a troubleshooting page. I agree with @bnoordhuis though, we want the issue template to be as short as possible. I'd rather have |
| ##### Checklist | ||
| <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
| - [ ] `npm install test` passes |
There was a problem hiding this comment.
I meant npm install && npm test, which is the same as npm install test (also the same as npm it, but you suggested we favour readability, which is fine).
I guess npm test will fail if you haven't done an npm install first, but better safe than sorry right (you might have messed up the package.json since the last time you did an npm install).
There was a problem hiding this comment.
Ah, I would've expected npm to try install a package called 'test'. Silly me.
There was a problem hiding this comment.
Ah, I would've expected npm to try install a package called 'test'. Silly me.
Principle of least surprise 😁
refack
commented
Jun 14, 2017
Agreed, the template should definatly be succinct. I'm cooking a PR with |
Give users reporting bugs a clearer idea of the info that will be helpful when reporting issues. PR-URL: #1228 Refs: https://github.com/nodejs/node/tree/master/.github Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
gibfahn
commented
Jul 4, 2017
Relanded in 7245415 (@bnoordhuis was right, |
Give users reporting bugs a clearer idea of the info that will be helpful when reporting issues.
Refs: https://github.com/nodejs/node/tree/master/.github
Also points users towards module issue trackers first.
I have no idea if the windows info is correct (or whether
node-gypusesccon all UNIX). Please correct.The PR template should be updated if/when we get a CONTRIBUTING.md (tracked in #881)