Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: /
Date: Tue, 28 Jan 2014 19:46:33
Message-Id: 1390727864.5dcfbeaf5f310bc47e909acef735b2b877c597a3.bicatali@gentoo
1 commit: 5dcfbeaf5f310bc47e909acef735b2b877c597a3
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 26 09:17:44 2014 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 26 09:17:44 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=5dcfbeaf
7
8 Vastely update and rewrite the text
9 Include commends from bicatali
10
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 ---
14 CONTRIBUTING.md | 73 +++++++++++++++++++++++++++++++++++++++++----------------
15 1 file changed, 53 insertions(+), 20 deletions(-)
16
17 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
18 index 6f47e97..7da80ca 100644
19 --- a/CONTRIBUTING.md
20 +++ b/CONTRIBUTING.md
21 @@ -1,16 +1,27 @@
22 #Contributions to the Gentoo Science Overlay
23
24 +This guide summerizes the contribution and merging procedures for the Gentoo Science overlay on Github. For more information please visit the [Science Project page](https://wiki.gentoo.org/wiki/Project:Science/Contributing) in the [Gentoo wiki](https://wiki.gentoo.org/).
25 +
26 ----
27 ##Prerequisite
28 +For the most convinient way to work with the overlay you should fulfill all prerequisites.
29
30 ###Required
31
32 +* **Install git**
33 +
34 +The Science overlay is controlled by [git](http://git-scm.com/). You can install it with
35 +
36 + emerge dev-vcs/git
37 +
38 +Familiarize yourself with git and visit [http://git-scm.com/documentation](http://git-scm.com/documentation) for documentation.
39 +
40 * **Account at [github](https://github.com/join)**
41
42 -Everybody who wants to contribute needs to own an account. Please register yourself there.
43 +Everybody who wants to contribute needs to own an account @ [Github](http://github.com/). Please register yourself [there](https://github.com/join).
44
45 ###Recommended
46 -* **Define echangelog user**
47 +* **Define the echangelog user**
48
49 Make sure the ECHANGELOG_USER variable is present in your environment.
50
51 @@ -23,58 +34,69 @@ Create a [gpg key](http://www.gossamer-threads.com/lists/gentoo/dev/268496?do=po
52
53 git config --global user.signingkey <gpg-key-id>
54
55 +Now git will sign your commits to the overlay by using the gpg key.
56
57 -* **Install [hub](http://hub.github.com/)**, the "command-line wrapper for git that makes you better at GitHub".
58 +* **Install [hub](http://hub.github.com/)**, the *command-line wrapper for git that makes you better at GitHub*.
59
60 -This file will use *hub* because of it's convenience when working with github.
61 +*hub* can be used equivalent to to *git* and upstream even recommends *"alias git='hub'*.
62
63 emerge dev-vcs/hub
64
65 +* **Install [repo-commit](https://bitbucket.org/gentoo/repo-commit/)**, *A repository commit helper*
66
67 -----
68 -##For Contributors
69 +*repo-commit* sanitizes your commit in a convinient way.
70
71 + emerge app-portage/repo-commit
72
73 -First clone the overlay
74 +---
75 +##Contributing ebuilds
76
77 - hub clone gentoo-science/sci
78 +###Clone the overlay
79
80 +Create a local checkout of the overlay
81
82 + hub clone gentoo-science/sci
83 +
84 +###Fork the overlay
85 In order to send pull request and ask for inclusion of your changes you need to have your own fork of the overlay on github. You can do this by issuing
86
87 cd sci
88 hub fork
89
90 -Now you are ready to start your work.
91 -
92 +###Branch out for contribution
93 It is always convenient for development as well as for the review and merging process, if the development is done in branches.
94
95 git checkout -b my-feature master
96
97 -Now you can work on you package of interest. Once you are finished you should _always_ use **[repoman](http://dev.gentoo.org/~zmedico/portage/doc/man/repoman.1.html)** to check, verify and commit your changes.
98 +###Work on the package
99 +Now you are ready to work on your package of interest. Once you are finished you should _always_ use **[repoman](http://dev.gentoo.org/~zmedico/portage/doc/man/repoman.1.html)** to do a statical analysis of your work.
100
101 -Static analysis can be done with
102 +This can be done with
103
104 repoman full
105
106 +###Commit your work
107 Once *all* reported problems are resolved, you can commit it
108
109 - echangelog "Here we write a comprehensible ChangeLog message"
110 - repoman -m "Here we write a comprehensible commit message" commit
111 + repo-commit "Here we write a comprehensible commit message"
112
113 +###Push to Github and make a pull request
114 Next we push back the changes to our fork and send a pull-request to the overlay maintainers.
115
116 hub push YOUR_GITHUB_USER
117 hub pull-request
118
119 -Lastly you need to wait for review comments and the merge of your work. In case you need to include some improvements, just commit your work again using repoman and push it again to your fork. No need to send another pull-request as your new changes will be added to the original one.
120 +Lastly you need to wait for review comments and the merge of your work. If you feel that they are slacking, don't bother to ping them again. In case you need to include some improvements, just commit your work again using *repo-commit* and push it again to your fork. No need to send another pull-request as your new changes will be added to the original one.
121 +
122 +###What's next?
123 +If you would like to get direct access to the overlay, prove some contribution and ping us via sci@g.o or on irc in #gentoo-science @ freenode. If you would like to become a dev yourself, prove some more contributions and again, contact us. We are always looking for new candidates.
124
125 ----
126 -##For Maintainers
127 +##Merging contributions
128 +
129 +**It is important, that if you merge a pull request, you should feel as responsible as if you have written the commits yourself!**
130
131 -**The merging of pull request should only be done by gentoo developers!**
132
133 -If you feel that they are slacking, don't bother to ping them again. If you would like to become a dev yourself, prove some contribution and ping us via sci@g.o or on irc in #gentoo-science @ freenode.
134
135 ###Prerequisite
136
137 @@ -93,21 +115,32 @@ should give
138 >origin git+ssh://git@×××××××××××××××××××.org/proj/sci.git (push)
139
140
141 -In the beginning you should review the pull request on github directly and recommend as much improvements as possible. Once everything is fine or you like to fix the rest yourself, simply can use the follow command to get the pull-request in a new branch in you repo.
142 +###Review process
143 +
144 +In the beginning you should review the pull request on github directly and recommend as much improvements as possible. By this you train the new contributor towards becoming a new dev, which should be our final goal.
145 +
146 +####Checking out the pull-request as local branch
147 +Once everything is fine or you like to fix the rest yourself, simply use the following command to get the pull-request in a new branch in your repo.
148
149 hub checkout https://github.com/gentoo-science/sci/pull/PULLREQUEST-NUMBER
150
151 -Now check the package by building and installing it, and run *repoman* in the package dir. If this is also fine, merge the branch into the master
152 +####Testing and repoman check
153 +Now check the package by building and installing it, and run *repoman* in the package dir. Remember, when merging a pull request you take the responsibility for the quality of the commit.
154 +
155 +####Merge the pull-request branch into master
156 +If this is also fine, merge the branch into the master
157
158 git checkout master
159 git merge USER-BRANCH
160
161 +####Merging the two remote HEADs
162 Finally use the script **merge-dualHEAD** from the *scripts* directory to merge the github and gentoo.org remote repo.
163
164
165 ---
166 ####Contribution to the document
167 Sebastien Fabbro <bicatali@g.o>
168 +
169 Justin Lecher <jlec@g.o>
170
171 This document is available under [Creative Commons Attribution ShareAlike 4.0](http://creativecommons.org/licenses/by-sa/4.0)