blob: b02edbe00d2eb94980d4f6c9e2e07142d9dbce01 [file] [log] [blame] [view]
jfarrell347a5eb2014-04-05 12:20:07 -04001## Process used by committers to review and submit patches
2
Konrad Grochowski3bc64242015-02-04 16:43:26 +010031. Make sure that there is an issue for the patch(s) you are about to commit in our [Jira issue tracker](http://issues.apache.org/jira/browse/THRIFT)
4
jfarrell347a5eb2014-04-05 12:20:07 -040051. Check out the latest version of the source code
Konrad Grochowski3bc64242015-02-04 16:43:26 +01006
7 * git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift
jfarrell347a5eb2014-04-05 12:20:07 -04008
91. Apply the patch
Konrad Grochowski3bc64242015-02-04 16:43:26 +010010
11 * curl https://issues.apache.org/jira/... |git apply --ignore-space-change
12
13 or
14
15 * curl https://github.com/<GitHub User>/thrift/commit/<Commit ID>.patch |git apply --ignore-space-change
16
17
jfarrell347a5eb2014-04-05 12:20:07 -0400181. Inspect the applied patch to ensure that all [Legal aspects on Submission of Contributions (Patches)](http://www.apache.org/licenses/LICENSE-2.0.html#contributions) are met
19
201. Run the necessary unit tests and cross language test cases to verify the patch
21
221. Commit the patch
23
Konrad Grochowski3bc64242015-02-04 16:43:26 +010024 git --config user.name "Your Name"
25 git --config user.email "YourApacheID@apache.org"
26 git add -A
27 git commit
28
jfarrell347a5eb2014-04-05 12:20:07 -0400291. The commit message should be in the format:
jfarrell347a5eb2014-04-05 12:20:07 -040030
Konrad Grochowski3bc64242015-02-04 16:43:26 +010031 THRIFT-###:<Jira description>
32 Client: <component>
33 Patch: <Name of person contributing the patch>
jfarrell347a5eb2014-04-05 12:20:07 -040034
Konrad Grochowski3bc64242015-02-04 16:43:26 +010035 Description of what was fixed or addressed.
36
37 <%
38 if this is a github pull request then add below comment
39 to automaticaly close GitHub request.
40 %>
41 This closes #XX
jfarrell347a5eb2014-04-05 12:20:07 -040042
43
441. Double check the patch committed and that nothing was missed then push the patch
45
Konrad Grochowski3bc64242015-02-04 16:43:26 +010046 git status
47 git show HEAD
48 git push origin master
jfarrell347a5eb2014-04-05 12:20:07 -040049
Konrad Grochowski3bc64242015-02-04 16:43:26 +010050
jfarrell347a5eb2014-04-05 12:20:07 -0400511. Resolve the jira issue and set the following for the changelog
52
Konrad Grochowski3bc64242015-02-04 16:43:26 +010053 * Component the patch is for
54 * fixVersion to the current version on master