8000 Merge pull request #509 from Automattic/add/code-attribution-docs · elsewhencode/wp-calypso@32d6fd4 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 32d6fd4

Browse files
committed
Merge pull request Automattic#509 from Automattic/add/code-attribution-docs
Documentation: Code attribution instructions
2 parents 1b50c4f + 704da96 commit 32d6fd4

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,10 @@ We encourage you to ask for help at any point. We want your first experience wit
122122
## License
123123

124124
Calypso is licensed under [GNU General Public License v2 (or later)](./LICENSE.md).
125+
126+
All materials contributed should be compatible with the GPLv2. This means that if you own the material, you agree to license it under the GPLv2 license. If you are contributing code that is not your own, such as adding a component from another Open Source project, or adding an `npm` package, you need to make sure you follow these steps:
127+
128+
1. Check that the code has a license. If you can't find one, you can try to contact the original author and get permission to use, or ask them to release under a compatible Open Source license.
129+
2. Check the license is compatible with [GPLv2](http://www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses), note that the Apache 2.0 license is *not* compatible.
130+
3. Add the code source URL (e.g. a GitHub URL), the files where it's used in `wp-calypso` and the full license terms to [`CREDITS.md`](/CREDITS.md)
131+
4. Add attribution to the code, if applicable. This line should include the copyright notice of the source, and a reference to the license contained in [`CREDITS.md`](/CREDITS.md)

bin/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
echo "\nBy contributing to this project, you license the materials you contribute under the GNU General Public License v2 (or later).\n\n"
3+
echo "\nBy contributing to this project, you license the materials you contribute under the GNU General Public License v2 (or later). All materials must have GPLv2 compatible licenses — see CONTRIBUTING.md for details.\n\n"
44

55
files=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx*$")
66
if [ "$files" = "" ]; then

bin/pre-push

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

3-
echo "\nBy contributing to this project, you license the materials you contribute under the GNU General Public License v2 (or later).\n\n"
3+
echo "\nBy contributing to this project, you license the materials you contribute under the GNU General Public License v2 (or later). All materials must have GPLv2 compatible licenses — see CONTRIBUTING.md for details.\n\n"
4+
45
echo "\nRunning tests ...\n"
56
make test
67
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)
0