Skip to content

[MRG+1] DOC: refactor issue and PR template#6470

Merged
TomDLT merged 1 commit intoscikit-learn:masterfrom
nelson-liu:refactor_templates
Apr 18, 2016
Merged

[MRG+1] DOC: refactor issue and PR template#6470
TomDLT merged 1 commit intoscikit-learn:masterfrom
nelson-liu:refactor_templates

Conversation

@nelson-liu
Copy link
Contributor

I've refactored the issue and PR template by moving some of the guidelines we had in there to CONTRIBUTING.md and adding headers to guide users toward supplying the needed information. I feel like this is less verbose and more functional, but I'm not sure whether putting everything into CONTRIBUTING.md was proper.
Thoughts on this new format? Remember that when users submit a PR or an issue, they see this raw output and unfortunately not the pretty preview. HTML comments do not render in the markdown of issues or PRs, which makes them ideal for inline examples and such.

There's some related discussion at #6394 about issue / pr templates in general, so try to save PR comments for suggestions specific to this pull request. General suggestions should go in the issue if at all possible.
Here are direct links to the raw and rendered versions:
raw PR template
rendered PR template

raw issue template
rendered issue template

<!--
If your issue is a usage question or does not potentially require
changes to the codebase to be solved, submit it here instead:
- StackOverflow with the [scikit-learn tag ](http://stackoverflow.com/questions/tagged/scikit-learn)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to use markdown for links in the template, especially in the guidelines (they can not be previewed).

@nelson-liu
Copy link
Contributor Author

@lesteve thanks for the review :)

)
model = lda_model.fit(lda_features)
```
If the code is long, feel free to put it in a ghostbin (https://ghostbin.com/)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gist is preferable no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, will edit. thanks!

@raghavrv
Copy link
Member

raghavrv commented Mar 2, 2016

Using HTML comments to prevent the instruction text from being rendered is a good idea! ;)

CONTRIBUTING.md Outdated

- Please ensure all code snippets and error messages are formatted in
appropriate code blocks.
See ["Creating and highlighting code blocks"](https://help.github.com/articles/creating-and-highlighting-code-blocks).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the quotes inside the link.

@amueller
Copy link
Member

amueller commented Mar 3, 2016

this looks much better (though I haven't read the changes in detail).

<!--
If your issue is a usage question or does not potentially require
changes to the codebase to be solved, submit it here instead:
- StackOverflow with the scikit-learn tag (http://stackoverflow.com/questions/tagged/scikit-learn)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove the parentheses around the link, it increases the likelihood of the copying and pasting to go wrong.

@lesteve
Copy link
Member

lesteve commented Apr 4, 2016

@nelson-liu could you rebase on master, I think this should make Travis go green ?

I think this PR is a clear improvement, so if you could spend some time finishing it off, it would be great !

@nelson-liu nelson-liu force-pushed the refactor_templates branch from 4c21243 to af3b9b0 Compare April 4, 2016 16:53
@nelson-liu
Copy link
Contributor Author

Hey @lesteve, thanks for the reminder, the current issue / pr template was getting to be a bit of an eyesore due to verbosity. Totally forgot that travis had blocked this from passing; I've since rebased, and it seems to pass the tests. Are there any more fixes that you would recommend to implement? Thanks for keeping an eye on this :)

@lesteve
Copy link
Member

lesteve commented Apr 4, 2016

I'll try to take a closer look tomorrow but from what I remember it was looking like a nice improvement. We can always improve it incrementally in further PR if need be.

@nelson-liu
Copy link
Contributor Author

gentle ping @lesteve / anyone else? I'm waiting for at least one lgtm before squashing.

@maniteja123
Copy link
Contributor

Hi, I know that my review doesn't count much. But it lgtm as a guide to newbies. Nice work @nelson-liu !

@nelson-liu
Copy link
Contributor Author

@maniteja123 thanks for taking a look, i appreciate it! :)

@nelson-liu nelson-liu changed the title [MRG] DOC: refactor issue and PR template [MRG+1] DOC: refactor issue and PR template Apr 14, 2016
@nelson-liu nelson-liu force-pushed the refactor_templates branch 2 times, most recently from 7b1c664 to bd0a25f Compare April 14, 2016 05:12
@lesteve
Copy link
Member

lesteve commented Apr 14, 2016

Looks like a nice improvement, thanks!

Note: +1 need to come from core developers. ping @rvraghav93, @amueller.

@GaelVaroquaux
Copy link
Member

GaelVaroquaux commented Apr 14, 2016 via email

@maniteja123
Copy link
Contributor

Oops I didn't mean for it to be MRG+1. I know it should be from core developers. Just wanted to give my opinion. Sorry about that.

@nelson-liu
Copy link
Contributor Author

@maniteja123 not your fault, sorry for misunderstanding @lesteve .

@nelson-liu nelson-liu changed the title [MRG+1] DOC: refactor issue and PR template [MRG] DOC: refactor issue and PR template Apr 14, 2016
@lesteve
Copy link
Member

lesteve commented Apr 14, 2016

@lesteve: I think that if you give a +1 it counts.

OK then I give my +1, @nelson-liu feel free to edit your title and add back the +1.

@nelson-liu nelson-liu changed the title [MRG] DOC: refactor issue and PR template [MRG+1] DOC: refactor issue and PR template Apr 14, 2016

docs = ["Help I have a bug" for i in range(1000)]

vectorizer = CountVectorizer(input=docs,analyzer='word')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pep8 ;)

@raghavrv
Copy link
Member

This looks much better! Thanks! One more review and merge @TomDLT?

@tguillemot
Copy link
Contributor

LGTM too. Thanks @nelson-liu .
@TomDLT could you merge please ?

@TomDLT TomDLT merged commit 2c0cbdc into scikit-learn:master Apr 18, 2016
@nelson-liu
Copy link
Contributor Author

thanks all! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants