Skip to content

Commit 037a672

Browse files
committed
Separate CONTRIBUTING.md into Issues and Pull Requests sections
The previous numbered format of the file made it difficult to determine which sections needed to be read depending on whether an issue report or a pull request was being submitted. This could make the task of reading the file look more daunting than it actually was. Closes #3368
1 parent a06fa27 commit 037a672

File tree

1 file changed

+21
-41
lines changed

1 file changed

+21
-41
lines changed

CONTRIBUTING.md

+21-41
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
## Contributing guide
1+
# Contributing guide
22
This document serves as a checklist before contributing to this repository. It includes includes links to read up on if topics are unclear to you.
33

4-
This guide mainly focuses on the proper use of Git. It has some overlap with the more general information found in the [Development Policy File](https://github.com/arduino/Arduino/wiki/Development-Policy).
5-
6-
### 1. Before using the issue tracker
4+
## Issues
75
To report a bug or a small enhancement please use the [issue tracker](http://github.com/arduino/Arduino/issues). But check the following boxes before posting an issue:
86

97
- [ ] `Your issue is NOT a question about an Arduino sketch.` Sketch questions are handled on the [Arduino Forum](http://forum.arduino.cc/).
@@ -25,7 +23,6 @@ To report a bug or a small enhancement please use the [issue tracker](http://git
2523
|[Arduino's build of AVRDUDE](https://github.com/arduino/avrdude-build-script)||
2624
|Third party repository | for third party libraries, hardware packages or sketches |
2725

28-
### 2. Posting the issue
2926
When you have checked the previous boxes. Please consider the following points before posting the issue.
3027

3128
- [ ] `Describe the issue based on the behaviour you were expecting`
@@ -34,28 +31,22 @@ When you have checked the previous boxes. Please consider the following points b
3431
- [ ] `Demonstration code should be complete, correct and the minimum amount necessary to reproduce the issue`
3532
- [ ] `Library Manager submissions: make sure your library meets all the requirements listed in the` [Library Manager FAQ](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ)
3633

37-
### 3. Pull Requests
38-
Before starting to work on bigger topics like modifying the API or changes with backward compatibility trade-offs please discuss them in the [mailing list](https://groups.google.com/a/arduino.cc/forum/#!forum/developers) first.
39-
40-
### 4. Commit messages
41-
An easy to read pull request will speed up the merging process. Your commit messages need to be logically separate. And containing enough information on their own. When this is done consistently your pull request will have an easy to read log of changes.
42-
43-
Your commits need to be [atomic](https://www.freshconsulting.com/atomic-commits/) which allows the repository to remain flexible after merging.
44-
45-
If you did not read the following 7 points before or just want to fresh up. Please read up on them on this [website](https://chris.beams.io/posts/git-commit) by Chris Beams.
46-
47-
1. Separate subject from body with a blank line
48-
2. Limit the subject line (first line) to 50 characters
49-
3. Capitalize the subject line
50-
4. Do not end the subject line with a period `(.)`
51-
5. Use the imperative mood in the subject line.
52-
This should be in the written as giving an instruction for example "Fixed save-as bug" (it shows what the PR achieves when merging it)
53-
6. Wrap body at 72 characters
54-
7. Use the body to explain what, why and how
55-
56-
If your pull request fixes, closes or resolves an issue please reference it in the body with the following [syntax](https://help.github.com/articles/closing-issues-via-commit-messages/). Also see the last lines of the following example.
34+
## Pull Requests
35+
This guide mainly focuses on the proper use of Git. It has some overlap with the more general information found in the [Development Policy File](https://github.com/arduino/Arduino/wiki/Development-Policy).
5736

58-
A general example with these 7 guidelines in mind is shown below (from the same website of [Chris Beams](https://chris.beams.io/posts/git-commit)):
37+
- Before starting to work on bigger topics like modifying the API or changes with backward compatibility trade-offs please discuss them in the [mailing list](https://groups.google.com/a/arduino.cc/forum/#!forum/developers) first.
38+
- An easy to read pull request will speed up the merging process. Your commit messages need to be logically separate. And containing enough information on their own. When this is done consistently your pull request will have an easy to read log of changes.
39+
- Your commits need to be [atomic](https://www.freshconsulting.com/atomic-commits/) which allows the repository to remain flexible after merging.
40+
- If you did not read the following 7 points before or just want to fresh up. Please read up on them on this [website](https://chris.beams.io/posts/git-commit) by Chris Beams.
41+
- Separate subject from body with a blank line
42+
- Limit the subject line (first line) to 50 characters
43+
- Capitalize the subject line
44+
- Do not end the subject line with a period `(.)`
45+
- Use the imperative mood in the subject line. This should be in the written as giving an instruction for example "Fixed save-as bug" (it shows what the PR achieves when merging it)
46+
- Wrap body at 72 characters
47+
- Use the body to explain what, why and how
48+
- If your pull request fixes, closes or resolves an issue please reference it in the body with the following [syntax](https://help.github.com/articles/closing-issues-via-commit-messages/). Also see the last lines of the following example.
49+
- A general example with these 7 guidelines in mind is shown below (from the same website of [Chris Beams](https://chris.beams.io/posts/git-commit)):
5950
```
6051
Summarize changes in around 50 characters or less
6152
@@ -85,18 +76,7 @@ like this:
8576
Resolves: #123
8677
See also: #456, #789
8778
```
88-
89-
### 5. Rebasing pull requests
90-
When different people are working on the Arduino project simultaneously, pull requests can go stale quickly. A "stale" pull request is one that is no longer up to date with the latest merges in the project. It needs to be updated before it can be merged.
91-
92-
Most often pull requests become stale when merge conflicts occur. This happens when two pull requests both modify similar lines in the same file and one gets merged, the unmerged request will now have a merge conflict and needs updating.
93-
94-
When your pull request is stale, you will need to rebase your branch on the current master branch before you can merge it without conflicts.
95-
96-
More information about rebasing can be found at the repository of [edX](https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request).
97-
98-
### 6. Merged!
99-
When your pull request is merged please update the documentation if the changes require it:
100-
101-
- [ ] Edit appropiate [Wiki pages](https://github.com/arduino/Arduino/wiki/_pages)
102-
- [ ] Submit an [issue report](https://github.com/arduino/Arduino/issues/new) requesting changes to the [arduino.cc reference pages](https://www.arduino.cc/en/Reference/HomePage)
79+
- When different people are working on the Arduino project simultaneously, pull requests can go stale quickly. A "stale" pull request is one that is no longer up to date with the latest merges in the project. It needs to be updated before it can be merged. Most often pull requests become stale when merge conflicts occur. This happens when two pull requests both modify similar lines in the same file and one gets merged, the unmerged request will now have a merge conflict and needs updating. When your pull request is stale, you will need to rebase your branch on the current master branch before you can merge it without conflicts. More information about rebasing can be found at the repository of [edX](https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request).
80+
- When your pull request is merged please update the documentation if the changes require it:
81+
- [ ] Edit appropiate [Wiki pages](https://github.com/arduino/Arduino/wiki/_pages)
82+
- [ ] Submit an [issue report](https://github.com/arduino/Arduino/issues/new) requesting changes to the [arduino.cc reference pages](https://www.arduino.cc/en/Reference/HomePage)

0 commit comments

Comments
 (0)