Skip to content
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

feat(docs): address failed CI checks before PR review requests #54

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lmontero18
Copy link
Collaborator

@lmontero18 lmontero18 commented Jan 15, 2025

ETA: 2 hours
resolves: https://github.com/holdex/marketing/issues/106

Summary by CodeRabbit

  • Documentation
    • Added a new section on Continuous Integration (CI) checks in the CONTRIBUTING.md file.
    • Updated the "Naming" section for clarity and adjusted the numbering format.
    • Enhanced formatting for improved readability and structure of the contribution guidelines.

@lmontero18 lmontero18 self-assigned this Jan 15, 2025
Copy link

coderabbitai bot commented Jan 15, 2025

Walkthrough

The pull request introduces several formatting adjustments and a new section on Continuous Integration (CI) checks in the .github/CONTRIBUTING.md file. These changes include improved readability through spacing and line breaks, an updated "Naming" section, and the addition of guidelines specifying that PRs must pass CI checks before being marked as "ready to review." The updates aim to clarify the requirements for contributors without changing the core content.

Changes

File Change Summary
.github/CONTRIBUTING.md - Added new section on CI Checks
- Updated Naming section with new numbering format
- Improved spacing and line breaks for readability

Assessment against linked issues

Objective Addressed Explanation
Propose changes to developer guidelines
Ensure awareness of CI checks before PR review

Possibly related PRs

  • docs(Goal): provide ETA and ensure Specs presents #51: The changes in this PR also involve updates to the .github/CONTRIBUTING.md file, focusing on clarity and consistency in the contributing guidelines, which aligns with the formatting and structural improvements made in the main PR.

Suggested reviewers

  • matthewvogas
  • angelicawill
  • lwtsn
  • markholdex
  • georgeciubotaru

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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. (Beta)
  • @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

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

1-2: Consider removing or clarifying the HTML comment.

The HTML comment <!-- pr init --> seems out of place and its purpose is unclear. Consider either removing it or adding a clear explanation of its purpose.


13-16: Consider using sequential numbers for better readability.

While Markdown will render the list correctly with all "1." prefixes, using sequential numbers (1, 2, 3) improves readability in the source file.

-1. **Goal** – a business aim
-1. **Problem** – an issue that is on our way to achieving the Goal
-1. **Solution** – the actual deliverable which resolves the problem
+1. **Goal** – a business aim
+2. **Problem** – an issue that is on our way to achieving the Goal
+3. **Solution** – the actual deliverable which resolves the problem

102-108: Add language identifier to the code block.

The fenced code block should specify a language identifier for proper syntax highlighting.

-```
+```markdown
 ## Feature
 - [/page](https://figma.com/your-design-file-url)
   - ./page/{params}
     - (group)
       - [[state]](https://figma.com/your-design-file-url)

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

102-102: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

---

`121-127`: **Add language identifier to the example code block.**

The example code block should specify a language identifier for proper syntax highlighting.

```diff
-```
+```markdown
 ## Credit Vaults
 - [/lending](https://figma.com/your-design-file-url)
   - ./vaults/{poolAddr}
     - (Auction)
       - [[Withdraw Popup]](https://figma.com/your-design-file-url)
       - [[Bid Popup]](https://figma.com/your-design-file-url)

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

---

`157-161`: **Consider restructuring the time reporting section for better visibility.**

The information about time allocation (40% planning, 20-30% QA) is crucial for contributors. Consider making this more prominent by:
1. Adding a dedicated "Time Reporting" subsection
2. Using a table or bullet points to break down the time allocation

```diff
 ## Requesting Review

 Once your PR is ready, assign reviewers and mark it as "ready to review." But before that, report the time you have spent on it.

+### Time Reporting Guidelines
+
 > [!NOTE]
 > When contributing, it's essential to report time accurately, including all stages of development (planning, implementation, QA). We encourage opening a PR at the start of your work, even during the planning or investigation phase. Programming and designing isn't just about writing code or creating designs; it also involves planning (40%) and QA (20-30%).
+
+Typical time allocation:
+- Planning and Investigation: 40%
+- Implementation: 30-40%
+- Quality Assurance: 20-30%
🧰 Tools
🪛 LanguageTool

[style] ~160-~160: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 6524 characters long)
Context: ...port the time you have spent on it. > [!NOTE] > When contributing, it's essentia...

(EN_EXCESSIVE_EXCLAMATION)


110-111: Remove trailing punctuation from heading.

According to markdown best practices, headings should not end with punctuation marks.

-#### Key:
+#### Key
🧰 Tools
🪛 Markdownlint (0.37.0)

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

(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 b06e571 and 7829097.

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

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

(MD026, no-trailing-punctuation)


102-102: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 LanguageTool
.github/CONTRIBUTING.md

[style] ~160-~160: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 6524 characters long)
Context: ...port the time you have spent on it. > [!NOTE] > When contributing, it's essentia...

(EN_EXCESSIVE_EXCLAMATION)

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

Line range hint 1-170: Overall, the contribution guidelines are well-structured and comprehensive.

The document effectively communicates the contribution process, from understanding goals to submitting PRs. The changes improve readability while maintaining the essential guidance for contributors.

🧰 Tools
🪛 Markdownlint (0.37.0)

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

(MD026, no-trailing-punctuation)


102-102: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

@lmontero18 lmontero18 marked this pull request as draft January 15, 2025 16:37
@lmontero18 lmontero18 marked this pull request as ready for review January 15, 2025 16:44
Copy link

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

81-93: Consider enhancing the CI Checks section with documentation links.

The new CI Checks section is well-structured, but could be more helpful for new contributors by:

  1. Adding links to documentation for each CI check tool
  2. Providing more details about the "code-rabbit" validator and its quality standards
 The required checks are as follows:
 
-- The pr-time-tracker verifies that the time spent on the PR has been properly logged.
-- The pr-time-tracker for bugs ensures that bug-related time tracking is correctly linked to the corresponding commit and bug author.
-- The code-rabbit validates that the code meets quality standards and passes all automated checks.
+- [The pr-time-tracker](link-to-docs) verifies that the time spent on the PR has been properly logged.
+- [The pr-time-tracker for bugs](link-to-docs) ensures that bug-related time tracking is correctly linked to the corresponding commit and bug author.
+- [The code-rabbit](link-to-docs) validates that the code meets quality standards by checking:
+  - Code style and formatting
+  - Test coverage
+  - Static analysis results
+  - Other quality metrics
🧰 Tools
🪛 LanguageTool

[style] ~92-~92: Consider using a different verb for a more formal wording.
Context: ... in "draft" status until all issues are fixed. --- ## Scoping > [!NOTE] > Here's a...

(FIX_RESOLVE)


121-128: Add language specifiers to code blocks.

For better syntax highlighting and markdown compliance, add language specifiers to the code blocks:

-```
+```markdown
 ## Feature
 - [/page](https://figma.com/your-design-file-url)
   - ./page/{params}
     - (group)
       - [[state]](https://figma.com/your-design-file-url)

Apply the same change to the example code block:
```diff
-```
+```markdown
 ## Credit Vaults
 - [/lending](https://figma.com/your-design-file-url)
   - ./vaults/{poolAddr}
     - (Auction)
       - [[Withdraw Popup]](https://figma.com/your-design-file-url)
       - [[Bid Popup]](https://figma.com/your-design-file-url)


Also applies to: 140-147

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

---

`129-129`: **Remove trailing punctuation from heading.**

Remove the colon from the heading to comply with markdown style guidelines:

```diff
-#### Key:
+#### Key
🧰 Tools
🪛 Markdownlint (0.37.0)

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

(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 7829097 and b0e6fe7.

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

[style] ~92-~92: Consider using a different verb for a more formal wording.
Context: ... in "draft" status until all issues are fixed. --- ## Scoping > [!NOTE] > Here's a...

(FIX_RESOLVE)

🪛 Markdownlint (0.37.0)
.github/CONTRIBUTING.md

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

(MD026, no-trailing-punctuation)


121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


140-140: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

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

Line range hint 1-180: Overall changes look good!

The changes effectively improve the documentation's clarity and structure. The new CI Checks section is a valuable addition that will help contributors understand the requirements before requesting reviews.

🧰 Tools
🪛 Markdownlint (0.37.0)

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

(MD026, no-trailing-punctuation)


121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

@lmontero18
Copy link
Collaborator Author

@zolotokrylin pls review this.

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.

1 participant