Skip to content

Commit 2f8a54f

Browse files
committed
Add sections for documentation and conventions
List all the known documentation places and remove the vague references coming from the rails guides. Collapse coding conventions into a single section.
1 parent 49882f3 commit 2f8a54f

1 file changed

Lines changed: 21 additions & 10 deletions

File tree

CONTRIBUTING.md

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Typically, Pull Requests can be merged when they have met the following criteria
5858
- Passing CI
5959
- 2 or more Core Team approvals
6060

61-
Though in some cases the Core Team may choose not to merge a PR that meets these requirements.
61+
Though in some cases the Core Team may choose not to merge a PR that meets these
62+
requirements.
6263

6364
### Pull Request guidelines
6465

@@ -68,22 +69,32 @@ Though in some cases the Core Team may choose not to merge a PR that meets these
6869
* If you're still working on the pull-request please keep it in "Draft" mode
6970
* Ask for another review after addressing comments from a previous one
7071

72+
#### Document your changes
73+
74+
Update the documentation:
75+
76+
- **`README.md` files**, both at the project root folder and inside sub-components
77+
- **opportunistically add inline YARD documentation**,
78+
although methods that are part of the private API can be simply marked as `# @private`
79+
- **guides should be updated**, please follow the instructions in the
80+
[dedicated repo](https://github.com/solidusio/edgeguides#readme)
81+
82+
#### Writing good commit messages
83+
7184
Here are some resources on writing good commit messages:
7285

7386
* [Notes from Linus](https://github.com/subsurface/subsurface/commit/b6590150d68df528efd40c889ba6eea476b39873)
7487
* [Erlang's guide](https://github.com/erlang/otp/wiki/Writing-good-commit-messages)
7588
* [An often-cited post](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
7689

77-
Some things that will increase the chance that your pull request is accepted,
78-
taken straight from the [Ruby on Rails guide](http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html):
90+
#### Follow the coding conventions
7991

80-
* Use Rails idioms and helpers
81-
* Include tests that fail without your code, and pass with it
82-
* Update the documentation, the surrounding one, examples elsewhere, guides,
83-
whatever is affected by your contribution
92+
This is a Rails-based framework, use Rails idioms and helpers will increase
93+
the chance that your pull-request will be accepted.
8494

85-
### Follow the coding conventions
95+
For new features and bug-fixes the included tests should fail without your
96+
code, and pass with it.
8697

87-
This is a Rails-based framework. See the [Rails coding conventions](http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions).
98+
See the [Rails coding conventions](http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions).
8899

89-
And in case we didn't emphasize it enough: **we love tests!**
100+
And in case we didn't emphasize it enough: **we love tests!** ❤️

0 commit comments

Comments
 (0)