Skip to content

Commit 4c43879

Browse files
committed
Add a page for general contribution guidelines.
1 parent 2a358ba commit 4c43879

File tree

3 files changed

+72
-5
lines changed

3 files changed

+72
-5
lines changed

engine/guidelines/best_practices.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,4 @@ larger if there is no other choice.
233233
.. _doc_best_practices_for_engine_contributors_license_compliance:
234234

235235
Libraries must use a permissive enough license to be included into Godot.
236-
Some examples of acceptable licenses are Apache 2.0, BSD, MIT, ISC, and MPL 2.0.
237-
In particular, we cannot accept libraries licensed under the GPL or LGPL since
238-
these licenses effectively disallow using it in proprietary software
239-
(which Godot is distributed as in most exported projects). This
240-
also applies for libraries that are only linked in the editor.
236+
For more information, see :ref:`doc_licenses`.

index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ for your topic of interest. You can also use the search function in the top-left
2525
organization/how_to_contribute
2626
organization/areas
2727
organization/pull_requests/index
28+
organization/general_rules_and_guidelines
2829

2930
.. toctree::
3031
:hidden:
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
General rules and guidelines
2+
============================
3+
4+
This page contains guidelines relevant for contributing to any area of Godot.
5+
6+
When contributing to any particular area, please also refer to its respective guidelines.
7+
8+
Respect our Code of Conduct
9+
-------------------------------
10+
11+
When you contribute to Godot, we expect that you respect our `Code of Conduct <https://godotengine.org/code-of-conduct/>`__.
12+
13+
.. _doc_licenses:
14+
15+
Respect copyright
16+
-----------------
17+
18+
You must be mindful of the copyright of anything you submit.
19+
20+
If you authored every part of your contribution, this is not a problem. You can submit your contribution
21+
without reading further.
22+
23+
However, any code, images, or ideas you took from somewhere else have a copyright you must respect.
24+
25+
In this case, you need to check the license of the copyrighted material. Some are permissive enough to be compatible
26+
with Godot's `MIT license <https://github.com/godotengine/godot/blob/master/LICENSE.txt>`__. You must include this
27+
license in your contribution.
28+
Examples of compatible licenses include Apache 2.0, BSD, ISC, MPL 2.0, and MIT itself.
29+
30+
However, others are not compatible with Godot's license. This includes "copy-left" licenses like GPL or LGPL,
31+
since these licenses effectively disallow static linking in proprietary software
32+
(which Godot is distributed as in most exported projects).
33+
This also applies for libraries that are only linked in the editor.
34+
35+
"Source-available" is **not** "open-source". For example, you cannot submit exclusive code or ideas from proprietary
36+
game engines like Unreal or Unity, nor use their code as inspiration. We strongly recommend against reading any
37+
"source-available" code before contributing to Godot.
38+
39+
Contribute only what you understand
40+
-----------------------------------
41+
42+
Please only submit code that you understand and are prepared to explain to a maintainer.
43+
44+
If you do not fully understand the code, please take extra care to test it rigorously, and disclose this in your
45+
pull request description.
46+
47+
This especially applies if you implement the idea of another person, copy code from elsewhere, or if you use AI to
48+
assist you with your contribution. In all of these cases, you must disclose which part of your submission wasn't fully
49+
authored by you.
50+
51+
AI-assisted contributions
52+
-------------------------
53+
54+
The use of AI to contribute to Godot is discouraged.
55+
56+
We acknowledge that AI can be useful, but we are convinced that human effort results in better and more relevant
57+
contributions.
58+
59+
.. note:: "AI" in this page refers to any LLM/generative
60+
AI model like ChatGPT, Claude, Grok, etc., or any other
61+
models that fulfill the same role. Using translation
62+
software to communicate is fine, and single-line code
63+
completion does not have to be disclosed.
64+
65+
If you do use AI, we expect that you put in effort to proofread and improve anything it generates, and that you disclose
66+
what you used AI for. Maintainers are spending their personal time reviewing your code, please make sure
67+
that the code you submit is well-tested and functional.
68+
Please be respectful of their time and only submit something you have put thought and effort into.
69+
70+
Contributions made entirely by AI are prohibited.

0 commit comments

Comments
 (0)