-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Document GitHub moderation policies #8882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
arnab-logs
wants to merge
1
commit into
kubernetes:main
Choose a base branch
from
arnab-logs:github-moderation-doc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+78
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| # GitHub Moderation | ||
|
|
||
| Contributions to Kubernetes GitHub repositories must meet legal, technical, and behavioral standards. Submissions that fail to meet these expectations, whether due to copyright violations, low-quality automated generation, spam-like behavior, or bad-faith engagement may be moderated, restricted, or escalated according to established project processes. | ||
|
|
||
| GitHub moderation is handled at the repository level by maintainers, with escalation to **[@kubernetes/owners](https://github.com/kubernetes/org/blob/main/OWNERS)** and the [Kubernetes Code of Conduct Committee](./committee-code-of-conduct) when necessary. | ||
|
|
||
| All actions must follow the [Kubernetes Code of Conduct](./committee-code-of-conduct) and the escalation procedures defined in the [moderation documentation](/communication/moderation.md). | ||
|
|
||
| ## Comment Moderation | ||
|
|
||
| Maintainers may edit or remove comments that: | ||
|
|
||
| - Violate the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). | ||
| - Contain harassment or personal attacks | ||
| - Include sensitive personal information | ||
| - Are spam or malicious | ||
|
|
||
| ## Legal and Copyright Compliance | ||
|
|
||
| All contributions must: | ||
|
|
||
| - Be covered by a signed [Contributor License Agreement (CLA)](https://git.k8s.io/community/CLA.md). | ||
| - Comply with copyright requirements. | ||
| - Not introduce code copied from third-party sources in violation of license terms. | ||
|
|
||
| This applies equally to: | ||
|
|
||
| - Human-authored content | ||
| - Copy-pasted content | ||
| - AI-generated content | ||
|
|
||
| Use of generative tools does not exempt contributors from CLA or copyright obligations. Contributors are responsible for ensuring they have the right to submit all material. | ||
|
|
||
| See [Linux Foundation guidance](https://www.linuxfoundation.org/legal/generative-ai) on generative AI and licensing expectations. | ||
|
|
||
| ## Quality and Engineering Standards | ||
|
|
||
| Each pull request requires reviewer time and project resources. | ||
| Submissions must: | ||
|
|
||
| - Demonstrate understanding of the change being proposed. | ||
| - Be technically sound. | ||
| - Meet project quality standards. | ||
| - Be responsive to review feedback. | ||
|
|
||
| Contributions that appear automated, mechanically generated, or submitted without understanding may be closed if: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should also mention if the submitter continues to refuse to abide by the documented policies (and link to them? e.g. https://www.kubernetes.dev/docs/guide/pull-requests/#ai-guidance) |
||
|
|
||
| - The submitter cannot meaningfully respond to review. | ||
| - The change introduces avoidable defects. | ||
| - The review burden is disproportionate to the value of the change. | ||
|
|
||
| This standard applies regardless of whether content was human-written or AI-generated. Contributors must understand and be able to explain and modify the changes they submit, regardless of how they were authored. | ||
|
|
||
| ## Spam, Automation, and Bad-Faith Contributions | ||
|
|
||
| Kubernetes has historically received automated and low-quality submissions. Repeated spammy or obviously automated behavior may result in: | ||
|
|
||
| - PR closure | ||
| - Issue locking | ||
| - Participation restriction | ||
| - Escalation to organization-level moderation | ||
| - Account banning where appropriate | ||
|
|
||
| Excessive low-quality automated submissions are treated as disruptive behavior. | ||
|
|
||
| Moderation decisions will consider: | ||
|
|
||
| - Volume of submissions | ||
| - Responsiveness to feedback | ||
| - Pattern of behavior across repositories | ||
|
|
||
| ## Trivial or Fragmented Edits | ||
|
|
||
| Contributors are encouraged to batch related fixes. Trivial single-line edits that create unnecessary review overhead may be closed with a request to consolidate improvements into a single submission. | ||
|
|
||
| Automation reduces cost, but review remains an engineering effort. Contributors should respect reviewer time. | ||
|
|
||
| See [guidance on trivial edits](https://www.kubernetes.dev/docs/guide/pull-requests/#trivial-edits) in the pull request guidelines. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the situation where copyright violations would result in a ban?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can elaborate a bit more on the "copyright violations" part below in the document.
For all Kubernetes project github repositories - we follow the kubernetes Repository Guidelines, and per that, our copyright attribution requirements are:
per our latest boilerplate header text, all kubernetes code files must include:
in the case of donated repositories, if existing contributors have not signed the CLA and cannot be reached, the following attribution is also acceptable, accompanied by a matching NOTICE file:
anything not following the above guidelines would be considered a copyright violation?
so, we can summarize the above bit and put a link to our repo guidelines doc.
Also per our latest AI policy, attributing copyright ownership of code contributions to AI tools/systems/vendors would be considered non-compliant and fall under copyright violations.