pictcode / CONTRIBUTING.md @ 635eef61
履歴 | 表示 | アノテート | ダウンロード (3.878 KB)
1 | 635eef61 | spyder1211 | # How to contribute |
---|---|---|---|
2 | |||
3 | CakePHP loves to welcome your contributions. There are several ways to help out: |
||
4 | * Create an [issue](https://github.com/cakephp/cakephp/issues) on GitHub, if you have found a bug |
||
5 | * Write test cases for open bug issues |
||
6 | * Write patches for open bug/feature issues, preferably with test cases included |
||
7 | * Contribute to the [documentation](https://github.com/cakephp/docs) |
||
8 | |||
9 | There are a few guidelines that we need contributors to follow so that we have a |
||
10 | chance of keeping on top of things. |
||
11 | |||
12 | ## Code of Conduct |
||
13 | |||
14 | Help us keep CakePHP open and inclusive. Please read and follow our [Code of Conduct](https://github.com/cakephp/code-of-conduct/blob/master/CODE_OF_CONDUCT.md). |
||
15 | |||
16 | ## Getting Started |
||
17 | |||
18 | * Make sure you have a [GitHub account](https://github.com/signup/free). |
||
19 | * Submit an [issue](https://github.com/cakephp/cakephp/issues), assuming one does not already exist. |
||
20 | * Clearly describe the issue including steps to reproduce when it is a bug. |
||
21 | * Make sure you fill in the earliest version that you know has the issue. |
||
22 | * Fork the repository on GitHub. |
||
23 | |||
24 | ## Making Changes |
||
25 | |||
26 | * Create a topic branch from where you want to base your work. |
||
27 | * This is usually the master branch. |
||
28 | * Only target release branches if you are certain your fix must be on that |
||
29 | branch. |
||
30 | * To quickly create a topic branch based on master; `git branch |
||
31 | master/my_contribution master` then checkout the new branch with `git |
||
32 | checkout master/my_contribution`. Better avoid working directly on the |
||
33 | `master` branch, to avoid conflicts if you pull in updates from origin. |
||
34 | * Make commits of logical units. |
||
35 | * Check for unnecessary whitespace with `git diff --check` before committing. |
||
36 | * Use descriptive commit messages and reference the #issue number. |
||
37 | * Core test cases should continue to pass. You can run tests locally or enable |
||
38 | [travis-ci](https://travis-ci.org/) for your fork, so all tests and codesniffs |
||
39 | will be executed. |
||
40 | * Your work should apply the [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html). |
||
41 | |||
42 | ## Which branch to base the work |
||
43 | |||
44 | * Bugfix branches will be based on master. |
||
45 | * New features that are backwards compatible will be based on next minor release |
||
46 | branch. |
||
47 | * New features or other non backwards compatible changes will go in the next major release branch. |
||
48 | |||
49 | ## Submitting Changes |
||
50 | |||
51 | * Push your changes to a topic branch in your fork of the repository. |
||
52 | * Submit a pull request to the repository in the cakephp organization, with the |
||
53 | correct target branch. |
||
54 | |||
55 | ## Test cases and codesniffer |
||
56 | |||
57 | CakePHP tests requires [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html) |
||
58 | 3.7, version 4 is not compatible. To run the test cases locally use the following command: |
||
59 | |||
60 | ./lib/Cake/Console/cake test core AllTests --stderr |
||
61 | |||
62 | To run the sniffs for CakePHP coding standards: |
||
63 | |||
64 | phpcs -p --extensions=php --standard=CakePHP ./lib/Cake |
||
65 | |||
66 | Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer) |
||
67 | repository to setup the CakePHP standard. The [README](https://github.com/cakephp/cakephp-codesniffer/blob/master/README.md) contains installation info |
||
68 | for the sniff and phpcs. |
||
69 | |||
70 | ## Reporting a Security Issue |
||
71 | |||
72 | If you've found a security related issue in CakePHP, please don't open an issue in GitHub. Instead contact us at security@cakephp.org. For more information on how we handle security issues, [see the CakePHP Security Issue Process](http://book.cakephp.org/2.0/en/contributing/tickets.html#reporting-security-issues). |
||
73 | |||
74 | # Additional Resources |
||
75 | |||
76 | * [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html) |
||
77 | * [Existing issues](https://github.com/cakephp/cakephp/issues) |
||
78 | * [Development Roadmaps](https://github.com/cakephp/cakephp/wiki#roadmaps) |
||
79 | * [General GitHub documentation](https://help.github.com/) |
||
80 | * [GitHub pull request documentation](https://help.github.com/send-pull-requests/) |
||
81 | * #cakephp IRC channel on freenode.org |