-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add github PR and Issue templates #1228
Conversation
daa95dc
to
fcf7838
Compare
.github/PULL_REQUEST_TEMPLATE.md
Outdated
##### Checklist | ||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
|
||
- [ ] `npm it` passes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Learned something new 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, maybe use the long form here for clarity.
.github/ISSUE_TEMPLATE.md
Outdated
the output. | ||
--> | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh and another thing 😲 (that one lines restore GFM inside HTML)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I only learned that by emailing Github support... Apparently it's a commonmark thing (it's in their docs too).
.github/ISSUE_TEMPLATE.md
Outdated
|
||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msbuild.exe
-> msbuild /version & cl
.github/ISSUE_TEMPLATE.md
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version -> systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I lifted this from node, probably worth PRing it there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
3887dd7
to
23394b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions but LGTM either way.
.github/ISSUE_TEMPLATE.md
Outdated
`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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, no point filling it with useful information no-one will read...
.github/PULL_REQUEST_TEMPLATE.md
Outdated
##### Checklist | ||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
|
||
- [ ] `npm it` passes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, maybe use the long form here for clarity.
.github/ISSUE_TEMPLATE.md
Outdated
|
||
* **Node Version**: | ||
* **Platform**: | ||
* **Compiler**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
23394b7
to
72117c4
Compare
@bnoordhuis updated and shortened, PTAL. |
72117c4
to
a6ec007
Compare
- [ ] 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
For bug reports we should request the output of |
a6ec007
to
12e66aa
Compare
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
12e66aa
to
95d0f6b
Compare
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a comment.
##### Checklist | ||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
|
||
- [ ] `npm install test` passes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean npm test
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I would've expected npm to try install a package called 'test'. Silly me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I would've expected npm to try install a package called 'test'. Silly me.
Principle of least surprise 😁
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>
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-gyp
usescc
on all UNIX). Please correct.The PR template should be updated if/when we get a CONTRIBUTING.md (tracked in #881)