Skip to content

update CODE_OF_CONDUCT.md and add CODE_OF_CONDUCT_CN.md - #804

Merged
gaoxueyu merged 2 commits into
IvorySQL:masterfrom
OreoYang:master
May 22, 2025
Merged

gaoxueyu merged 2 commits into
IvorySQL:masterfrom
OreoYang:master

Conversation

@OreoYang

@OreoYang OreoYang commented May 20, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Updated the Code of Conduct to be IvorySQL-specific, with expanded responsibilities, clearer enforcement procedures, and improved inclusivity language.
    • Added a Chinese translation of the IvorySQL Code of Conduct for broader accessibility.

@coderabbitai

coderabbitai Bot commented May 20, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The changes involve a comprehensive rewrite and customization of the project's code of conduct, renaming and adapting it specifically for IvorySQL. Additionally, a new Chinese translation of the code of conduct is introduced, ensuring community guidelines are accessible to a broader audience.

Changes

File(s) Change Summary
CODE_OF_CONDUCT.md Extensively rewritten and customized for IvorySQL, expanding contributor and maintainer responsibilities, clarifying enforcement procedures, and updating terminology and contacts to IvorySQL-specific context.
CODE_OF_CONDUCT_CN.md New file added: Chinese translation of the IvorySQL code of conduct with equivalent content, including contributor commitments, enforcement guidelines, and reporting processes.

Poem

In the warren of code, we gather and share,
With kindness and care, our voices declare—
Now in two tongues, our conduct is clear,
For every bunny, far and near!
Hop forth, contribute, let respect be the guide,
In English or Chinese, side by side.
🐇

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (4)
CODE_OF_CONDUCT.md (2)

5-7: Vary sentence openers for improved flow.
Three successive sentences begin with “We,” which can feel repetitive. Consider rephrasing one or two of them to avoid monotony while preserving the pledge’s emphasis.

🧰 Tools
🪛 LanguageTool

[style] ~6-~6: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...n, or sexual identity and orientation. We pledge to act and interact in ways that...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


91-93: Attribution links updated.
Linking to Contributor Covenant v2.0 and Mozilla’s framework gives proper credit.

Consider adding “the” before “Community Impact Guidelines” for grammatical completeness.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~92-~92: You might be missing the article “the” here.
Context: ...org/version/2/0/code_of_conduct.html). Community Impact Guidelines were inspired by [Moz...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

CODE_OF_CONDUCT_CN.md (2)

47-49: 违规处理与责任分配描述合理
但第47行“审查和调查”前可考虑使用“及时且公平地审查和调查”以符合中文语法习惯。

🧰 Tools
🪛 LanguageTool

[uncategorized] ~47-~47: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:公平"地"审查
Context: ...ivorysql.org向负责监督的社区维护团队报告。所有投诉都将得到及时和公平的审查和调查。所有社区维护者都有义务尊重任何事件报告者的隐私和安全。 由社区负责人...

(wb4)


91-93: 归因链接格式建议优化
可将“[贡献者公约]”与版本号合并,如“贡献者公约 v2.0”,增强可读性。

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 683f602 and 1805963.

📒 Files selected for processing (2)
  • CODE_OF_CONDUCT.md (1 hunks)
  • CODE_OF_CONDUCT_CN.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
CODE_OF_CONDUCT_CN.md

[uncategorized] ~23-~23: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:私下"地"骚扰
Context: ...与性相关的语言或图像、性骚扰 - 恶意挑衅、侮辱性言论或人身攻击 - 公开或私下的骚扰行为 - 未经明确允许,公开他人隐私信息(如地址、联系方式) - 其他可被认...

(wb4)


[uncategorized] ~47-~47: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:公平"地"审查
Context: ...ivorysql.org向负责监督的社区维护团队报告。所有投诉都将得到及时和公平的审查和调查。所有社区维护者都有义务尊重任何事件报告者的隐私和安全。 由社区负责人...

(wb4)


[uncategorized] ~77-~77: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:私下"地"互动
Context: ...参与社区进行任何形式的互动或公开交流。在此期间,不得与相关人员进行任何公开或私下的互动,包括主动与执行行为准则的人员进行交流。违反这些条款可能会导致永久封禁。 ...

(wb4)

CODE_OF_CONDUCT.md

[style] ~6-~6: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...n, or sexual identity and orientation. We pledge to act and interact in ways that...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~24-~24: Try using a synonym here to strengthen your wording.
Context: ...vances - Trolling, insulting/derogatory comments, and personal or political attacks - Pu...

(COMMENT_REMARK)


[style] ~47-~47: ‘with regard to’ might be wordy. Consider a shorter alternative.
Context: ...s obligated to maintain confidentiality with regard to the reporter of an incident. Enforceme...

(EN_WORDINESS_PREMIUM_WITH_REGARD_TO)


[uncategorized] ~49-~49: Possible missing comma found.
Context: ...sponsibilities are delegated to project leaders who will determine the consequences for...

(AI_HYDRA_LEO_MISSING_COMMA)


[style] ~49-~49: ‘without warning’ might be wordy. Consider a shorter alternative.
Context: ... permanent expulsion from the community without warning. ## Reporting Process 1. Contact the ...

(EN_WORDINESS_PREMIUM_WITHOUT_WARNING)


[uncategorized] ~92-~92: You might be missing the article “the” here.
Context: ...org/version/2/0/code_of_conduct.html). Community Impact Guidelines were inspired by [Moz...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

🪛 markdownlint-cli2 (0.17.2)
CODE_OF_CONDUCT.md

97-97: Bare URL used
null

(MD034, no-bare-urls)

⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: oracle_regression (ubuntu-latest)
  • GitHub Check: contrib_regression
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: oracle_pg_regression (ubuntu-latest)
  • GitHub Check: meson_build (ubuntu-latest)
  • GitHub Check: pg_regression (ubuntu-latest)
🔇 Additional comments (23)
CODE_OF_CONDUCT.md (13)

1-1: Title updated appropriately.
Renaming the document to “IvorySQL Code of Conduct” correctly reflects the project branding.


11-19: Standards section clearly enumerates positive behaviors.
The added items (“Being supportive of others’ growth and learning,” etc.) are on-point and maintain a logical order.


23-29: Unacceptable behaviors expanded sensibly.
Including misuse of community tools and encouraging prohibited conduct strengthens the policy’s coverage.

🧰 Tools
🪛 LanguageTool

[style] ~24-~24: Try using a synonym here to strengthen your wording.
Context: ...vances - Trolling, insulting/derogatory comments, and personal or political attacks - Pu...

(COMMENT_REMARK)


31-31: Section renamed to “Our Responsibilities.”
The heading aligns with IvorySQL-specific terminology.


33-39: Maintainer duties detailed thoroughly.
Adding mentorship, accessibility, and conflict-resolution tasks enhances clarity on enforcement roles.


43-43: Scope clarified to cover all community spaces.
Explicitly listing repo, discussions, calls, and social media ensures contributors know what’s governed.


47-47: Reporting contact and confidentiality clause.
Specifying the email and confidentiality commitment strengthens trust in the process.

🧰 Tools
🪛 LanguageTool

[style] ~47-~47: ‘with regard to’ might be wordy. Consider a shorter alternative.
Context: ...s obligated to maintain confidentiality with regard to the reporter of an incident. Enforceme...

(EN_WORDINESS_PREMIUM_WITH_REGARD_TO)


49-49: Enforcement delegation is clear.
Detailing project leaders’ authority to enact bans without warning underscores the seriousness of violations.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~49-~49: Possible missing comma found.
Context: ...sponsibilities are delegated to project leaders who will determine the consequences for...

(AI_HYDRA_LEO_MISSING_COMMA)


[style] ~49-~49: ‘without warning’ might be wordy. Consider a shorter alternative.
Context: ... permanent expulsion from the community without warning. ## Reporting Process 1. Contact the ...

(EN_WORDINESS_PREMIUM_WITHOUT_WARNING)


51-51: “Reporting Process” section introduced.
A step-by-step guide to filing reports is very helpful.


53-57: Reporting steps are comprehensive.
Acknowledgement within 48 hours and follow-up steps set clear expectations.


59-59: Privacy obligation restated.
Reaffirming reporter confidentiality after the process steps is a good call.


63-87: Enforcement guidelines are well-structured.
The four-tier ladder (Correction, Warning, Temporary Ban, Permanent Ban) matches best practices and retains IvorySQL branding.


95-95: “Questions” section is clear.
Providing a direct contact email for inquiries ensures accessibility.

CODE_OF_CONDUCT_CN.md (10)

1-1: 标题翻译准确
“IvorySQL社区行为准则”与英文标题对应,无需修改。


5-5: 承诺段落译文忠实
文本涵盖所有受保护特征,语义清晰。


11-17: 积极行为准则翻译完善
条目与英文版本一致,语句通顺。


21-27: 禁止行为列表翻译准确
所有条款均已正确传达项目要求。

🧰 Tools
🪛 LanguageTool

[uncategorized] ~23-~23: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:私下"地"骚扰
Context: ...与性相关的语言或图像、性骚扰 - 恶意挑衅、侮辱性言论或人身攻击 - 公开或私下的骚扰行为 - 未经明确允许,公开他人隐私信息(如地址、联系方式) - 其他可被认...

(wb4)


31-38: 维护者义务一览无遗
“为新贡献者提供指导和支持”等四项职责翻译得当。


42-44: 适用范围段落清晰
涵盖仓库、讨论区、社区会议及社交媒体,翻译对应。


53-57: 举报流程条款齐全
各步骤清晰,符合英文文档逻辑。


59-59: 隐私保护声明翻译到位
重申维护者对举报人隐私的义务。


63-87: 分级处理指南翻译一致
纠正、警告、临时封禁及永久封禁流程均已正确映射。

🧰 Tools
🪛 LanguageTool

[uncategorized] ~77-~77: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:私下"地"互动
Context: ...参与社区进行任何形式的互动或公开交流。在此期间,不得与相关人员进行任何公开或私下的互动,包括主动与执行行为准则的人员进行交流。违反这些条款可能会导致永久封禁。 ...

(wb4)


95-95: 疑问咨询段落翻译恰当
提供了项目团队联系方式,无需更改。

Comment thread CODE_OF_CONDUCT_CN.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
CODE_OF_CONDUCT_CN.md (3)

9-9: Use fullwidth colon for Chinese typography.
Replace the ASCII colon “:” after “包括但不限于” with the Chinese fullwidth colon “:” in these lines for consistency with Chinese punctuation rules.
Example diff:

- 有助于创造积极环境的行为包括但不限于:
+ 有助于创造积极环境的行为包括但不限于:
 
- 参与者不应采取的行为包括但不限于:
+ 参与者不应采取的行为包括但不限于:

Also applies to: 19-19


45-49: Convert email to a mailto hyperlink and unify terminology.

  • Anchor the email address as a mailto link for better Markdown rendering.
  • Use consistent terminology: replace “社区负责人” with “社区维护者” to match earlier sections.

Example diff:

- 辱骂、骚扰或其他不可接受的行为可通过[email protected]向负责监督的社区维护团队报告。由社区负责人行使处置权...
+ 辱骂、骚扰或其他不可接受的行为可通过[[email protected]](mailto:[email protected])向负责监督的社区维护团队报告。由社区维护者行使处置权...
🧰 Tools
🪛 LanguageTool

[uncategorized] ~47-~47: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:公平"地"审查
Context: ...ivorysql.org向负责监督的社区维护团队报告。所有投诉都将得到及时和公平的审查和调查。所有社区维护者都有义务尊重任何事件报告者的隐私和安全。 由社区负责人...

(wb4)

🪛 markdownlint-cli2 (0.17.2)

47-47: Bare URL used
null

(MD034, no-bare-urls)


84-92: Approve “致谢” and hyperlink bare URLs.

  • The section heading “## 致谢” correctly aligns with the English file and resolves the previous “免责声明” issue.
  • Convert the raw URL for the full Contributor Covenant into a hyperlink with anchor text.

Example diff:

- 本行为准则改编自[贡献者公约](https://www.contributor-covenant.org), v2.0全文[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html]。
+ 本行为准则改编自[贡献者公约](https://www.contributor-covenant.org),[v2.0 全文](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html)。
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

91-91: Bare URL used
null

(MD034, no-bare-urls)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 1805963 and ca4771e.

📒 Files selected for processing (1)
  • CODE_OF_CONDUCT_CN.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
CODE_OF_CONDUCT_CN.md

[uncategorized] ~23-~23: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:私下"地"骚扰
Context: ...与性相关的语言或图像、性骚扰 - 恶意挑衅、侮辱性言论或人身攻击 - 公开或私下的骚扰行为 - 未经明确允许,公开他人隐私信息(如地址、联系方式) - 其他可被认...

(wb4)


[uncategorized] ~47-~47: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:公平"地"审查
Context: ...ivorysql.org向负责监督的社区维护团队报告。所有投诉都将得到及时和公平的审查和调查。所有社区维护者都有义务尊重任何事件报告者的隐私和安全。 由社区负责人...

(wb4)


[uncategorized] ~77-~77: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:私下"地"互动
Context: ...参与社区进行任何形式的互动或公开交流。在此期间,不得与相关人员进行任何公开或私下的互动,包括主动与执行行为准则的人员进行交流。违反这些条款可能会导致永久封禁。 ...

(wb4)

🪛 markdownlint-cli2 (0.17.2)
CODE_OF_CONDUCT_CN.md

47-47: Bare URL used
null

(MD034, no-bare-urls)


91-91: Bare URL used
null

(MD034, no-bare-urls)

⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: oracle_regression (ubuntu-latest)
  • GitHub Check: oracle_pg_regression (ubuntu-latest)
  • GitHub Check: meson_build (ubuntu-latest)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: contrib_regression
  • GitHub Check: pg_regression (ubuntu-latest)
🔇 Additional comments (1)
CODE_OF_CONDUCT_CN.md (1)

1-6: Approve translation of title and contributor commitment.
The file title and “贡献者承诺” section accurately reflect the English original and read naturally in Chinese.

@gaoxueyu
gaoxueyu merged commit 7a6289e into IvorySQL:master May 22, 2025
@gaoxueyu gaoxueyu mentioned this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants