本项目采用 Contributor Covenant 2.1 版。中文与英文内容并列;私密举报方式已按 Mebular 的实际情况补充。
身为社区成员、贡献者和维护者,我们承诺使社区参与者不受骚扰,无论其年龄、体型、可见或不可见的缺陷、族裔、性征、性别认同和表达、经验水平、教育程度、社会与经济地位、国籍、相貌、种族、种姓、肤色、宗教信仰、性倾向或性取向如何。
我们承诺以有助于建立开放、友善、多样化、包容、健康社区的方式行事和互动。
有助于为我们的社区创造积极环境的行为包括:
- 表现出对他人的同理心和善意;
- 尊重不同的主张、观点和经历;
- 提出并大方接受建设性意见;
- 承担责任,向受我们错误影响的人道歉,并从中学习;
- 注重社区共同利益,而非只考虑个人得失。
不当行为包括:
- 使用情色化的语言或图像,以及任何形式的性引诱或挑逗;
- 嘲弄、侮辱或诋毁性评论,以及人身或政治攻击;
- 公开或私下的骚扰行为;
- 未经他人明确许可,公布他人的私人信息,例如住址或电子邮件地址;
- 其他有理由认定为违反职业操守的不当行为。
社区维护者有责任解释并落实这些行为准则,并妥善、公正地对其认为不当、具有威胁性、冒犯或有害的行为采取纠正措施。
社区维护者有权力和责任删除、编辑或拒绝与本行为准则不相符的评论、提交、代码、Wiki 编辑、Issue 及其他贡献,并在适当时候说明 moderation 决定的理由。
本行为准则适用于所有社区空间,也适用于个人在公共场所正式代表社区的情形。代表社区的例子包括使用官方电子邮件地址、通过官方社交媒体账号发帖,或在线上、线下活动中担任指定代表。
辱骂、骚扰或其他不可接受的行为,请通过 GitHub 私密公告 向负责执行的维护者报告:
- 公告标题请以
[Code of Conduct]开头,以便与安全漏洞报告区分; - 请不要通过公开 Issue 或 Discussion 披露相关事件;
- 请提供审查所需的时间、地点、相关人员和经过,但不要提交与举报无关的个人数据;
- 安全漏洞仍请按照 SECURITY.md 处理,无需添加此前缀。
所有投诉都会得到及时、公平的审查和调查。所有维护者都有义务尊重举报者的隐私和安全。
社区维护者将遵循下列社区影响指南,决定其认定违反本行为准则的行为所产生的后果。
社区影响:使用不恰当的语言,或其他在社区中被认定为不符合职业道德或不受欢迎的行为。
处理结果:由维护者发出非公开的书面警告,明确说明违规行为的性质,并解释该行为为何不恰当。维护者也可能要求公开道歉。
社区影响:单次违规,或一系列相关行为构成的违规。
处理结果:警告并说明继续违规的后果。在指定时间内,不得与相关人员互动,包括主动与行为准则执行者互动。这包括避免在社区空间以及社交媒体等外部渠道互动。违反这些条款可能导致临时或永久封禁。
社区影响:严重违反社区准则,包括持续的不当行为。
处理结果:在指定时间内,暂时禁止与社区进行任何形式的互动或公开交流。在此期间,不得与相关人员进行公开或私下互动,包括主动与行为准则执行者互动。违反这些条款可能导致永久封禁。
社区影响:表现出持续的违规模式,包括持续的不当行为、骚扰个人,或攻击、贬低某类群体。
处理结果:永久禁止在社区内进行任何形式的公开互动。
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our community include:
- Demonstrating empathy and kindness toward other people;
- Being respectful of differing opinions, viewpoints, and experiences;
- Giving and gracefully accepting constructive feedback;
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience;
- Focusing on what is best not just for us as individuals, but for the overall community.
Examples of unacceptable behavior include:
- The use of sexualized language or imagery, and sexual attention or advances of any kind;
- Trolling, insulting or derogatory comments, and personal or political attacks;
- Public or private harassment;
- Publishing others' private information, such as a physical or email address, without their explicit permission;
- Other conduct which could reasonably be considered inappropriate in a professional setting.
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement through a private GitHub advisory:
- Prefix the advisory title with
[Code of Conduct]so it can be distinguished from a security vulnerability report. - Do not disclose the incident in a public issue or discussion.
- Include the time, location, people involved, and facts needed for review, but do not submit unrelated personal data.
- Continue to use SECURITY.md for security vulnerabilities; those reports do not need this prefix.
All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident.
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct.
Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
Community Impact: A violation through a single incident or series of actions.
Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
Consequence: A permanent ban from any sort of public interaction within the community.
本行为准则改编自 / This Code of Conduct is adapted from the Contributor Covenant, version 2.1:
社区处理方针的灵感来自 / Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.
常见问题与其他语言版本请参阅 / For FAQs and translations, see the Contributor Covenant FAQ and translations.