Skip to content
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

GitHub Templates: Issue Templates and Pull Request Template #3

Merged
merged 13 commits into from
Dec 5, 2018

Conversation

janpio
Copy link
Member

@janpio janpio commented Aug 23, 2018

This PR adds documentation on GitHub Templates and adds suggested templates.

Its content is the result of this discussion on the mailing list: https://lists.apache.org/thread.html/fe1d0c812b24826bec74ff07e487806a3b5ad8aa1ae882c0294cb6bd@%3Cdev.cordova.apache.org%3E

You can try the issue templates at this repository:
https://github.com/janpio/cordova-github-templates/issues/new/choose
https://github.com/janpio/cordova-github-templates/issues/new
(Pull Request template unfortunately is not that easy, you have to look at the source here)

I don't expect the templates I wrote to match all situations and survive contact with actual users - so please make suggestion on what is missing, could be improved, changed and so on.

Note that whatever we merge here will not be final and those are just text files that will be able to be edited at any time. This is just the starting point.


The section "Distribute GitHub Templates to all repositories" is currently just a TODO, we will have to find a solution for that problem later and describe it via another PR.


Please feel free to nitpick any language and grammar problems - I rewrote this quite often, so it is very possible there are some "organically grown" sentences that could use some polishing.

@shazron
Copy link
Member

shazron commented Aug 24, 2018

LGTM. To test, I checked out all 3 issue types and created a PR.

Copy link

@raphinesse raphinesse left a comment

Choose a reason for hiding this comment

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

Left a few comments, but LGTM overall. 👍

.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md Outdated Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE.md Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE.md Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE.md Show resolved Hide resolved
@raphinesse
Copy link

Another thing that would be great to have in the bug template is:

Could you reproduce the bug in master/a recent nightly build? (Link to docs on how to do that)

@janpio
Copy link
Member Author

janpio commented Aug 27, 2018

I see you raised your hand to write the documentation on how to use nightly builds of anything ;)

@raphinesse
Copy link

I see you raised your hand to write the documentation on how to use nightly builds of anything ;)

😁 Didn't someone write docs about that recently?

But seriously, I see so many issues where people didn't check master and it's possibly already fixed there. At least installing a nightly build of the CLI isn't hard to do nor document:

npm i cordova@nightly

(We will have to make sure to only tag nightly builds when the build actually succeeds, but that's a different story)

@janpio
Copy link
Member Author

janpio commented Aug 27, 2018

That would result in something like this I guess:

[ ] I checked that my issue is still present when using a Nightly Build (npm install -g cordova@nightly)

Agree?
When does having a nightly CLI actually help? For platforms and plugins as well?

Problem is that most Cordova users are not using nvm, so they are effectively "destroying" their working environment when they mess with any of our components and don't really have a way to go back :/

@raphinesse
Copy link

Agree?

Yes

When does having a nightly CLI actually help? For platforms and plugins as well?

Mostly for errors that occur while using the CLI, I guess. Adding platforms and plugins and preparing the project are favorites.

Problem is that most Cordova users are not using nvm, so they are effectively "destroying" their working environment when they mess with any of our components and don't really have a way to go back :/

That's a valid point. Would be less problematic if people were using a local cordova installation. Someone should write docs for best practices 😁

A solution for moderately recent setups would be

npx cordova@nightly <YOUR COMMAND>

@raphinesse
Copy link

If the situation is more complicated for plugins and platforms, we can add that section only for tooling repos after rolling out the templates.

@janpio
Copy link
Member Author

janpio commented Aug 27, 2018

Adding platforms and plugins and preparing the project are favorites.

So this would be mainly useful on the cordova-cli repo, not on the platform or plugin repos, right? Because that is an issue that should be created there if someone has problems with that, correct?

Would be less problematic if people were using a local cordova installation. Someone should write docs for best practices 😁

Keep in mind that on Windows that might not be that simple.

But yes, updating the "Install and run Cordova" docs might be nice, especially now that npx exists.

@raphinesse
Copy link

Keep in mind that on Windows that might not be that simple.

What do you mean? Why would you not be able to have a local installation and run cordova through npm scripts or npx?

@janpio
Copy link
Member Author

janpio commented Aug 27, 2018

Because "run cordova through npm scripts or npx" is more complicated than install -g and just run cordova on the command line (as people don't know what npm scripts are and may be using a npm without npx).

@raphinesse
Copy link

@janpio I agree, but I don't see how that has to do with users running Cordova on Windows or not 😕

@janpio
Copy link
Member Author

janpio commented Aug 28, 2018

On macOS and Linux you can run local files and scripts pretty simple.
On Windows you have to mess with PATH or an executable - which is why -g was always preferred.
Wrong?

@janpio janpio deleted the janpio-github_templates branch December 5, 2018 12:55
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.

4 participants