File: codereviews.rst

package info (click to toggle)
owncloud-doc 0~20141208-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,164 kB
  • ctags: 324
  • sloc: makefile: 151; python: 144; php: 30; sh: 17
file content (60 lines) | stat: -rw-r--r-- 2,191 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Code Reviews on GitHub
======================

  Given enough eyeballs, all bugs are shallow

  -- Linus' Law

Introduction
------------

In order to increase the code quality within ownCloud, developers are requested
to perform code reviews.  As we are now heavily using the GitHub platform these
code review shall take place on GitHub as well.

Precondition
------------

From now on no direct commits/pushes to master or any of the stable branches are
allowed in general.  **Every code** change - **even one liners** - have to be
reviewed!

How will it work?
-----------------

#. A developer will submit his changes on GitHub via a pull request.
   `GitHub:help - using pull requests`_ #. Within the pull request the developer
   could already name other developers (using @GitHubusername) and ask them for
   review.
#. Other developers (either named or at free will) have a look at the changes
   and are welcome to write comments within the comment field.  #. In case the
   reviewer is okay with the changes and thinks all his comments and suggestions
   have been take into account a :+1 on the comment will signal a positive
   review.
#. Before a pull request will be merged into master or the corresponding
   branch at least 2 reviewers need to give :+1 score.
#. Our `continuous integration server`_ will give an additional indicator for
   the quality of the pull request.

Examples
--------
Read our `coding guidelines`_ for information on what a good pull request and
good ownCloud code looks like.

These are two examples that are considered to be good examples of how pull
requests should be handled

* https://github.com/owncloud/core/pull/121
* https://github.com/owncloud/core/pull/146

Questions?
----------

Feel free to drop a line on the `mailing list`_ or join us on `IRC`_.

.. _core repository: https://GitHub.com/owncloud/core
.. _GitHub: help - using pull requests: https://help.GitHub.com/articles/using-pull-requests
.. _continuous integration server: https://ci.owncloud.org/
.. _mailing list: https://mailman.owncloud.org/mailman/listinfo/devel
.. _IRC: http://webchat.freenode.net/?channels=owncloud-dev
.. _coding guidelines: ../general/codingguidelines