Skip to content

Commit

Permalink
Enhanced contributing guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
rdoursenaud committed Oct 5, 2015
1 parent c7c3ba7 commit fa64761
Showing 1 changed file with 43 additions and 7 deletions.
50 changes: 43 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ How to contribute to Dolibarr
Bug reports and feature requests
--------------------------------

*Note*: Issues are not a support forum. If you need help using the software, please use [the forums](http://www.dolibarr.org/forum).
<a name=not-a-support-forum></a>*Note*: Issues are not a support forum. If you need help using the software, please use [the forums](http://www.dolibarr.org/forum).

**NEW**

Issues are now managed on [GitHub](https://github.com/Dolibarr/dolibarr/Issues).
Issues are managed on [GitHub](https://github.com/Dolibarr/dolibarr/Issues).

1. Please [use the search engine](https://help.github.com/articles/searching-issues) to check if nobody's already reported your problem.
2. [Create an issue](https://help.github.com/articles/creating-an-issue). Choose an appropriate title. Prepend appropriately with Bug or Feature Request.
Expand Down Expand Up @@ -42,9 +40,45 @@ Choose your base branch accordingly.
### General rules
Please don't edit the ChangeLog file. A project manager will update it from your commit messages.

### Commits
### <a name=commits></a>Commits
Use clear commit messages with the following structure:

```
[KEYWORD] [ISSUENUM] DESC
LONGDESC
```

#### Keyword
In uppercase to appear in ChangeLog when generated.

The keyword can be ommitted if your commit does not fit in any of the following categories:
- Fix: for a bug fix
- Close: for closing a referenced feature request
- New: for an unreferenced new feature (Opening a feature request and using close is prefered)

#### Issuenum
If your commit fixes a referenced bug or feature request.

In the form of a # followed by the GitHub issue number.

#### Desc
A short description of the commit content.

This should ideally be less than 50 characters.

#### LongDesc
A long description of the commit content.

You can really go to town here and explain in depth what you've been doing.

Feel free to express technical details, use cases or anything relevant to the current commit.

This section can span multiple lines.

Try to keep lines under 72 characters.

#### Samples
<pre>
FIX|Fix #456 Short description (where #456 is number of bug fix, if it exists. In upper case to appear into ChangeLog)
or
Expand All @@ -58,8 +92,10 @@ Long description (Can span accross multiple lines).
</pre>

### Pull Requests
When submitting a pull request, use same rule than Commits. With upper case keyword to appear into ChangeLog.
When submitting a pull request, use same rule as [Commits](#commits) for the message.

If your pull request only contains one commit, GitHub will be smart enough to fill it for you.
Otherwise, please be a bit verbose about what you're providing.

### Resources
[Developer documentation](http://wiki.dolibarr.org/index.php/Developer_documentation)
Expand All @@ -81,5 +117,5 @@ Documentation
-------------
The project's documentation is maintained on the [Wiki](http://wiki.dolibarr.org/index.php).

*You need to create an account before being able to edit.*
*Note*: to help prevent spam, you need to create an account before being able to edit.

0 comments on commit fa64761

Please sign in to comment.