Skip to content

Comments

docs: clarify pull request naming#58

Merged
zolotokrylin merged 6 commits intoholdex:mainfrom
lucky-ivanius:docs/pr-naming
Jun 3, 2025
Merged

docs: clarify pull request naming#58
zolotokrylin merged 6 commits intoholdex:mainfrom
lucky-ivanius:docs/pr-naming

Conversation

@lucky-ivanius
Copy link
Contributor

@lucky-ivanius lucky-ivanius commented May 2, 2025

Resolve https://github.com/holdex/hr-member-lucky-ivanius/issues/7

Summary by CodeRabbit

  • Documentation
    • Enhanced PR naming guidelines to emphasize user-focused, clear, and action-oriented titles. Added detailed principles, examples contrasting effective and ineffective titles, and a contributor checklist to improve clarity and consistency for all stakeholders.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 2, 2025

Caution

Review failed

The pull request is closed.

"""

Walkthrough

The contributing guidelines were updated to provide more explicit instructions for naming pull requests. The new guidelines require PR names to be written from the user's perspective and in present tense. An explanatory note was added to clarify that PR titles should describe user-facing capabilities rather than technical details, with illustrative examples contrasting effective and ineffective naming approaches.

Changes

File(s) Change Summary
.github/CONTRIBUTING.md Expanded PR naming guidelines with detailed principles, rationale, user-focused examples, and a checklist

Suggested reviewers

  • zolotokrylin

Assessment against linked issues

Objective Addressed Explanation
PR names must be user perspective
PR names must use present tense
"""

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 14e906f and 4b321df.

📒 Files selected for processing (1)
  • .github/CONTRIBUTING.md (1 hunks)

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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

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 (1)
.github/CONTRIBUTING.md (1)

215-215: Nitpick: Add missing comma for clarity
A comma after “perspective” improves readability.

- This makes it immediately clear that PR names should describe features from the user's perspective rather than the technical components used to implement them.
+ This makes it immediately clear that PR names should describe features from the user's perspective, rather than the technical components used to implement them.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~215-~215: Possible missing comma found.
Context: ...hould describe features from the user's perspective rather than the technical components us...

(AI_HYDRA_LEO_MISSING_COMMA)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a6f4139 and 2ad11d1.

📒 Files selected for processing (1)
  • .github/CONTRIBUTING.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
.github/CONTRIBUTING.md

[uncategorized] ~215-~215: Possible missing comma found.
Context: ...hould describe features from the user's perspective rather than the technical components us...

(AI_HYDRA_LEO_MISSING_COMMA)

🔇 Additional comments (4)
.github/CONTRIBUTING.md (4)

171-174: Approve: Explicit PR naming criteria added
The new items (Conventional Commits, clean & simple, user perspective, present tense) align well with established semantic conventions and improve clarity for contributors.


188-201: Approve: Enhanced explanatory note on user-centric titles
The [!IMPORTANT] block clearly illustrates the shift from implementation to user capability and provides strong “before/after” examples.


202-208: Approve: Key differences section
The bulleted “Good examples focus on user capabilities” section succinctly reinforces the guideline.


209-214: Approve: Bad examples section
The “Bad examples focus on technical implementation” list effectively warns contributors what to avoid.

@holdex
Copy link

holdex bot commented May 2, 2025

Time Submission Status

Member Status Time Action Last Update
lucky-ivanius ✅ Submitted 30min Update time Jun 3, 2025, 1:05 AM
zolotokrylin ✅ Submitted 1h Update time Jun 3, 2025, 1:05 AM

@lucky-ivanius lucky-ivanius changed the title [DRAFT] docs: PR naming guidelines docs: clarify pull request naming May 2, 2025
@lucky-ivanius
Copy link
Contributor Author

I can't assign reviewers @zolotokrylin

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

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 (2)
.github/CONTRIBUTING.md (2)

173-174: Consistent article usage for perspective guideline
To align with other list items (e.g., “the end users”), consider changing “a user's perspective” to “the user's perspective” for consistency.

-1. be written from a user's perspective (what the user gets)
+1. be written from the user's perspective (what the user gets)

215-215: Add a comma for readability
Consider placing a comma after “perspective” to improve flow.

-This makes it immediately clear that PR names should describe features from the user's perspective rather than the technical components used to implement them.
+This makes it immediately clear that PR names should describe features from the user's perspective, rather than the technical components used to implement them.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~215-~215: Possible missing comma found.
Context: ...hould describe features from the user's perspective rather than the technical components us...

(AI_HYDRA_LEO_MISSING_COMMA)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2ad11d1 and 29d7c42.

📒 Files selected for processing (1)
  • .github/CONTRIBUTING.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
.github/CONTRIBUTING.md

[uncategorized] ~215-~215: Possible missing comma found.
Context: ...hould describe features from the user's perspective rather than the technical components us...

(AI_HYDRA_LEO_MISSING_COMMA)

🔇 Additional comments (2)
.github/CONTRIBUTING.md (2)

174-174: Well-defined present tense guideline
The addition clearly instructs contributors to use present tense in PR titles, which will improve consistency across PRs.


188-201: Great clarification with user-focused examples
This new >[!IMPORTANT] section effectively demonstrates the difference between naming technical components and describing user capabilities. The examples and “Think of it this way” bullets enhance understanding.

lucky-ivanius and others added 2 commits May 2, 2025 18:16
zolotokrylin
zolotokrylin previously approved these changes Jun 3, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

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 (1)
.github/CONTRIBUTING.md (1)

204-209: Nit: Remove Trailing Colon in Heading
markdownlint flagged a trailing punctuation in the heading. For consistency with other headings, consider removing the colon:

-### Before Submitting, Ask:
+### Before Submitting, Ask
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

204-204: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 29d7c42 and a631cce.

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

[grammar] ~196-~196: After ‘It’, use the third-person verb form “replaces”.
Context: ...ges. #### How to Apply It 1. Replace UI labels with actions: - 🚫 "Ad...

(IT_VBZ)

🪛 markdownlint-cli2 (0.17.2)
.github/CONTRIBUTING.md

204-204: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

🔇 Additional comments (5)
.github/CONTRIBUTING.md (5)

167-172: Clear and Concise Naming Intro
The three core rules (“User-focused”, “Follow Conventional Commits”, “Clear & simple”) are well-articulated and directly support the PR objectives of user-centric, consistent, present-tense titles. Great framing.


173-180: Effective Example Comparison Table
The side-by-side Good vs. Bad examples clearly demonstrate each guideline in practice. Table formatting is consistent and easy to follow.


183-188: Key Principles “What to Focus On”
Excellent explanation distinguishing technical labels from user gains, with actionable questions. The ❌/✅ icons add clarity.


190-194: Compelling “Why It Matters” Section
Succinctly articulates benefits (clarity, consistency, user-centricity) and ties back to stakeholder value.


195-202: Practical “How to Apply It” Steps
The numbered steps with concrete examples make it straightforward for contributors to translate principles into PR titles.

🧰 Tools
🪛 LanguageTool

[grammar] ~196-~196: After ‘It’, use the third-person verb form “replaces”.
Context: ...ges. #### How to Apply It 1. Replace UI labels with actions: - 🚫 "Ad...

(IT_VBZ)

Signed-off-by: Vadim <vadim@holdex.io>
Signed-off-by: Vadim <vadim@holdex.io>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

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 (2)
.github/CONTRIBUTING.md (2)

186-202: Clarify pronoun in sub-heading
The heading “How to Apply It” may leave readers asking “apply what?”. Consider renaming to explicitly reference the naming principle for better clarity, e.g.:

- #### **How to Apply It**
+ #### **How to Apply This Principle**
🧰 Tools
🪛 LanguageTool

[grammar] ~199-~199: After ‘It’, use the third-person verb form “replaces”.
Context: ...ges. #### How to Apply It 1. Replace UI labels with actions: 🚫 "Add dropd...

(IT_VBZ)


204-209: Remove trailing punctuation in heading
Markdownlint flags the colon at the end of the heading. For consistency, you can drop the colon:

- ### Before Submitting, Ask:
+ ### Before Submitting, Ask
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

204-204: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a631cce and 14e906f.

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

[grammar] ~199-~199: After ‘It’, use the third-person verb form “replaces”.
Context: ...ges. #### How to Apply It 1. Replace UI labels with actions: 🚫 "Add dropd...

(IT_VBZ)

🪛 markdownlint-cli2 (0.17.2)
.github/CONTRIBUTING.md

204-204: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

🔇 Additional comments (2)
.github/CONTRIBUTING.md (2)

167-175: Guideline language is clear and user-focused
The three bullet points (“User-focused”, “Follow Conventional Commits”, “Clear & simple”) concisely capture the naming requirements and align well with the PR objectives.


176-183: Example comparison table is helpful
The “Good vs Bad” table illustrates the dos and don’ts effectively. It reinforces the naming rules and will be valuable for new contributors.

@zolotokrylin zolotokrylin merged commit 092f6d0 into holdex:main Jun 3, 2025
2 of 3 checks passed
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