Conversation
CONTRIBUTING.md
Outdated
| * Click on the "Commit changes" button to open a | ||
| [pull request (see below)](#pull-requests). | ||
| * Choose "Create a new branch for this commit and start a pull request." and | ||
| click on the "Propose changes" button to open a [pull request (see below)](#pull-requests). |
There was a problem hiding this comment.
Users should not commit directly to their master branch. Instead, they should commit to a new branch and submit a PR.
There was a problem hiding this comment.
Should we recommend pygmt python-contributors to make branches on the GenericMappingTools/pygmt repo rather than their own fork?
There was a problem hiding this comment.
Do you mean "python-maintainers"? I don't think "python-contributors" have write permission to the pygmt repo.
There was a problem hiding this comment.
They have triage permissions. Doesn't that allow branching?
There was a problem hiding this comment.
There was a problem hiding this comment.
Huh, should we bump up the python-contributors team to have "write" permissions then? It's a bit annoying having to add a new git remote to check out a new contributor's code locally, and Leo mentioned before at #415 (comment) that "write" privileges are overrated anyway (i.e. pretty standard for an open source repo).
And just to clarify, the "master" branch is a protected branch so it's not like they will be able to write to that branch accidentally without going through a pull request, passing all checks and getting an approval from a maintainer.
There was a problem hiding this comment.
If we do, we should add instructions on adding it to your local git repo; for better or for worse GitHub seems to encourage making branches on your own fork.
There was a problem hiding this comment.
Better to have more discussions at GenericMappingTools/gmt#4732 before making changes.
There was a problem hiding this comment.
If we do, we should add instructions on adding it to your local git repo; for better or for worse GitHub seems to encourage making branches on your own fork.
I think it's because it's easier for new Github users to do stuff on their own fork. The instructions can be a bit long though, so would be good if we can just link to a good tutorial instead.
Better to have more discussions at GenericMappingTools/gmt#4732 before making changes.
Ok, I think we can have a 'python'/'pygmt'-only restructure, and it's up to the rest of the GMT ecosystem to decide whether to make the change too. Will make a quick comment on that thread.
weiji14
left a comment
There was a problem hiding this comment.
Please change the title to be a bit more specific. E.g. "Clarify docs on how to start contributing".
Plus I would prefer to leave this open for a few more days, so that people have time to leave their feedback, especially the new contributors :)
CONTRIBUTING.md
Outdated
| * Click on the "Commit changes" button to open a | ||
| [pull request (see below)](#pull-requests). | ||
| * Choose "Create a new branch for this commit and start a pull request." and | ||
| click on the "Propose changes" button to open a [pull request (see below)](#pull-requests). |
There was a problem hiding this comment.
If we do, we should add instructions on adding it to your local git repo; for better or for worse GitHub seems to encourage making branches on your own fork.
I think it's because it's easier for new Github users to do stuff on their own fork. The instructions can be a bit long though, so would be good if we can just link to a good tutorial instead.
Better to have more discussions at GenericMappingTools/gmt#4732 before making changes.
Ok, I think we can have a 'python'/'pygmt'-only restructure, and it's up to the rest of the GMT ecosystem to decide whether to make the change too. Will make a quick comment on that thread.
maxrjones
left a comment
There was a problem hiding this comment.
A few other things that I would consider improvements:
I think it would be nice to add the subsection headers Building the documentation and Cross-referencing with Sphinx to Documentation
If you get stuck at any point you can create an issue on GitHub (look for the Issues tab in the repository) or contact us at one of the other channels mentioned below.
to
If you get stuck at any point you can create an [issue](https://github.com/GenericMappingTools/pygmt/issues) on GitHub or contact us at one of the other channels [mentioned below](#how-can-i-talk-to-you).
* Make a tutorial or example of how to do something.
to
* Make a tutorial or gallery example of how to do something.
They are executed automatically by sphinx-gallery when the documentation is built
to
They are executed automatically by sphinx-gallery when the [documentation is built](#documentation)
Co-authored-by: Meghan Jones <meghanj@hawaii.edu>
Co-authored-by: Meghan Jones <meghanj@hawaii.edu>
Co-authored-by: Meghan Jones <meghanj@hawaii.edu>
|
@meghanrjones's suggestions in #1056 (review) are addressed in 9e8ecc1 and 16d05a9. |
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Will Schlitzer <schlitzer90@gmail.com>
|
@meghanrjones @weiji14 @willschlitzer @core-man Please see if you have further comments.
After we set up the team permissions, we can add it to the guide and maybe also document the permissions for each team. |
|
Looks good~ |
weiji14
left a comment
There was a problem hiding this comment.
Just spotted one URL link to update, otherwise all good :D
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Meghan Jones <meghanj@hawaii.edu> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> Co-authored-by: Will Schlitzer <schlitzer90@gmail.com>

Description of proposed changes
Improve the contributing guide to documentation:
.pyfiles in theexamplesdirectoryReminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version