-
Notifications
You must be signed in to change notification settings - Fork 228
Revise Pull Request review process in CONTRIBUTING.md #1119
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
Conversation
Fix some typos and do some light rewording of sentences. Wrapped line lengths to 79 chars to have lots of git diffs, so that people can start making suggested changes line by line on the GitHub UI.
Co-authored-by: Yao Jiayuan <[email protected]> Co-authored-by: Michael Grund <[email protected]>
I also have some suggestions about the Documentation sections (I think I cannot make suggestions directly at the original file). I am sorry those suggestions are not directly related to the PR itself. See lines 558-561:
This is simply repeated to the Docstrings subsection, and it also misses the second point about 79 chars.
So, shall we just add a link to the Docstrings subsection? e.g.,
Or we can remove this sentence. GMT reStructuredText Cheatsheet is great. Shall we a link in the Documentation section? |
I am wondering about whether these two points should go into this PR or a separate PR: #1190 (comment) (For naming aliases): "Use an underscore to separate words bridged by vowels (aeiou), e.g. no_skip, z_only, etc. Don't use underscore for others, e.g. distcalc, crossprofile (I'll change this) and coltypes." #1145 (review) (For PRs that wrap modules): Break up the wrapping of module aliases into multiple PRS. |
Thanks team for all the suggestions, great to see lots of ideas on making PRs better in PyGMT! @core-man, since you have write access to the PyGMT repo now, do you want to go ahead and make direct commits in this PR? I know you're busy with job applications at the moment, and I'm juggling quite a few things as well (PRs, paper writing), but once you have time, feel free to push changes directly to this 'revise-pr-review-process' branch, and I'll try to keep up on top of things too in the next few weeks. |
Co-authored-by: Yao Jiayuan <[email protected]>
Okay. I'll work on it next week. |
I've performed the following revisions since I began to work on this PR. Ping @weiji14 for some comments before I further polish them. Code Review
General guidelines for making a PR Documentation |
Thanks @core-man for the great work! Sorry for coming back to this so late, I've had a scan through your changes and it looks much improved. Only made one tiny typo change at 8b716a6, but otherwise, I think it's at a stage that's ready to review by the wider team 😄 |
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.
Nice work! In my opinion, much of "General Guidelines" section under "Contributing Code" applies to both code- and documentation-focused PRs. What do you think about this section being before "Editing the Documentation" and "Contributing Code"?
Co-Authored-By: Meghan Jones <[email protected]>
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.
Looks good to me.
You're quite right. I've had a think about moving "General Guidelines" up before "Editing the Documentation", but it seems a bit intimidating if we start explaining what a Pull Request is when someone just wants to submit a typo fix. So I would keep the "Editing the Documentation" section at the top since it's where most people making a simple contribution will start, and leave the "Contributing Code"-"General Guidelines" section below it for more advanced user contributions. I.e. keep the current state. That said, I'm open to reorganizing the whole CONTRIBUTING.md documentation in a follow-up PR, once this one (focused on the PR review process) is completed. You raise an important point that there is room to streamline the new-contributor workflow a bit more. |
Co-authored-by: Dongdong Tian <[email protected]>
Great. I think the current CONTRIBUTING.md is friendly for experienced contributors, while a new contributor may always be a little confused with such a long list. |
@weiji14 Merge this PR? |
…Tools#1119) Revise our CONTRIBUTING.md documentation to be more clear on all the steps from getting a Pull Request opened to being merged. * Add a quick look at the issues * Use nested lists for PR guidelines * Use nested lists for Code Review * Move Code Review to be within General guidelines * Remove docstrings note in Cross-referencing with Sphinx * Add reStructuredText tutorial in Documentation subsection * Remove code review section * Add some section links in Code Review * Clarify that docs are mostly under the examples and pygmt folder Co-authored-by: Yao Jiayuan <[email protected]> Co-authored-by: Michael Grund <[email protected]> Co-authored-by: Meghan Jones <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
Description of proposed changes
To make it easier for new contributors submitting a Pull Request to PyGMT, the changes here will revise our CONTRIBUTING.md documentation to be more clear on all the steps from getting a Pull Request opened to being merged.
I.e. It should answer the question: What should a new contributor know about when submitting a Pull Request to PyGMT?
We should strike a balance between being detailed enough to cover the essential steps, and yet still keep it succinct so as not to overwhelm people with a big checklist of tasks to do. Keep it focused on the point of view of a new Contributor!
Resources (from #1113):
Addresses one component of #1113
Reminders
make format
andmake check
to 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