Skip to content

Conversation

@shreyanshJain852
Copy link
Contributor

@shreyanshJain852 shreyanshJain852 commented Feb 13, 2025

API PR Checklist

Pre-requisites

  • I have gone through the Contributing guidelines for Submitting a Pull Request (PR) and ensured that this is not a duplicate PR.
  • I have performed unit testing for the new feature added or updated to ensure the new features added are working as expected.
  • I have performed preliminary testing to ensure that any existing features are not impacted and any new features are working as expected as a whole.
  • I have added/updated the .env.example file with the required values as applicable.

PR Details

PR details have been updated as per the given format (see below)

  • PR title adheres to the format specified in guidelines (e.g., feat: add admin login endpoint)
  • Description has been added
  • Related changes have been added (optional)
  • Screenshots have been added (optional)
  • Query request and response examples have been added (as applicable, in case added or updated)
  • Documentation changes have been listed (as applicable)
  • Unit testing output is added (as applicable)
  • Pending actions have been added (optional)
  • Any other additional notes have been added (optional)

Additional Information

  • Appropriate label(s) have been added
  • Assignee(s) and reviewer(s) have been added (optional)

Note: Reviewer should ensure that the checklist and description have been populated and followed correctly, and the PR should be merged only after resolving all conversations and verifying that CI checks pass.


Description:

Add merge request template to the repository

Related changes:

  • Add merge request template in the root of the repository

Screenshots:

N/A

Query request and response:

N/A

Documentation changes:

N/A

Unit testing output:

N/A

Pending actions:

N/A

Additional notes:

N/A

Summary by CodeRabbit

  • Documentation
    • Introduced a structured template for API pull requests.
    • Added a comprehensive checklist for contributors to ensure all pre-submission requirements, such as testing and configuration reviews, are completed.

@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2025

Warning

Rate limit exceeded

@shreyanshJain852 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 12 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 5fc4676 and 977ad55.

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

Walkthrough

A new API pull request template has been introduced to guide contributors. The template, located in the repository's GitHub workflow directory, provides a checklist and structured format requiring contributors to confirm pre-requisites (such as guideline review, unit testing, and environment file updates) and to include detailed information in their pull requests. It enforces proper descriptions, formatting, and continuous integration check pass statuses before merging.

Changes

File(s) Change Summary
.github/PULL_REQUEST_TEMPLATE/…pull_request_template_api.md Added a new API pull request template with a detailed checklist covering contributing guidelines, unit testing, environment file updates, and CI checks.

Sequence Diagram(s)

sequenceDiagram
    participant Contributor
    participant GitHub
    participant CI
    Contributor->>GitHub: Submit API pull request using new template
    GitHub->>Contributor: Validate checklist completion
    GitHub->>CI: Trigger continuous integration checks
    CI-->>GitHub: Report test results and statuses
    GitHub->>Contributor: Display CI results and pending actions
Loading

Poem

In the code field where ideas bloom,
I hopped to a template to clear the gloom.
A checklist so neat, a guide in sight,
Helping pull requests fly just right.
With a wag of my tail and hop so true,
Celebrating new changes, fresh as dew!
🐰✨


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 (4)
.github/PULL_REQUEST_TEMPLATE/pull_request_template_api.md (4)

6-7: Improve clarity of testing requirements.

The testing requirements could be more specific and grammatically correct:

-- [ ] I have performed unit testing for the new feature added or updated to ensure the new features added are working as expected.
-- [ ] I have performed preliminary testing to ensure that any existing features are not impacted and any new features are working as expected as a whole.
+- [ ] I have performed unit testing for the new features or updates to ensure they are working as expected.
+- [ ] I have performed integration testing to ensure that existing features are not impacted, and all features work together as expected.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~6-~6: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...have performed unit testing for the new feature added or updated to ensure the new feat...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[uncategorized] ~7-~7: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ...t any existing features are not impacted and any new features are working as expecte...

(COMMA_COMPOUND_SENTENCE_2)


14-22: Improve organization of PR details checklist.

Consider reorganizing the checklist to clearly separate required and optional items:

-### PR Details
-
-PR details have been updated as per the given format (see below)
-
-- [ ] PR title adheres to the format specified in guidelines (e.g., `feat: add admin login endpoint`)
-- [ ] Description has been added
-- [ ] Related changes have been added (optional)
-- [ ] Screenshots have been added (optional)
-- [ ] Query request and response examples have been added (as applicable, in case added or updated)
-- [ ] Documentation changes have been listed (as applicable)
-- [ ] Unit testing output is added (as applicable)
-- [ ] Pending actions have been added (optional)
-- [ ] Any other additional notes have been added (optional)
+### PR Details
+
+#### Required Items
+- [ ] PR title adheres to the format specified in guidelines (e.g., `feat: add admin login endpoint`)
+- [ ] Description has been added
+- [ ] Query request and response examples (if API changes)
+- [ ] Documentation changes (if applicable)
+- [ ] Unit testing output (if applicable)
+
+#### Optional Items
+- [ ] Related changes
+- [ ] Screenshots
+- [ ] Pending actions
+- [ ] Additional notes

29-29: Make reviewer instructions more prominent.

Consider making the reviewer instructions more visible:

-_Note: Reviewer should ensure that the checklist and description have been populated and followed correctly, and the PR should be merged only after resolving all conversations and verifying that CI checks pass._
+> ⚠️ **Reviewer Instructions**
+> - Ensure all required checklist items are completed
+> - Verify description is populated correctly
+> - Confirm all conversations are resolved
+> - Check that CI pipeline passes

35-63: Enhance template sections with examples.

Consider adding more specific examples to guide contributors:

 **Description:**
 
-Add brief description about the changes made in this PR and their purpose. This section can also include mention to any other PRs or issues if needed.
+Add brief description about the changes made in this PR and their purpose.
+
+Example:
+> Added a new endpoint `/api/v1/documents/{id}` to retrieve document details. This implements the requirement from issue #123.
+
+Related PRs/Issues: #123, #124
 
 **Query request and response:**
 
-- Add any query request body, cURL statement and response body for the made change or addition.
+Add request/response examples for API changes:
+
+Example:
+```bash
+# Request
+curl -X GET http://localhost:3000/api/v1/documents/123
+
+# Response
+{
+  "id": "123",
+  "title": "Sample Document"
+}
+```
 
 **Unit testing output:**
 
-- Add the output of the status of different test cases in the unit testing performed.
+Add the output of unit tests:
+
+Example:
+```
+PASS  tests/document.test.js
+  ✓ should return 404 for non-existent document
+  ✓ should return document details for valid ID
+
+Test Suites: 1 passed, 1 total
+Tests:       2 passed, 2 total
+```
🧰 Tools
🪛 LanguageTool

[uncategorized] ~63-~63: You might be missing the article “a” here.
Context: ... this PR. Additional notes: - Add list of any additional notes you may want to...

(AI_EN_LECTOR_MISSING_DETERMINER_A)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c00fcef and 5fc4676.

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

[uncategorized] ~6-~6: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...have performed unit testing for the new feature added or updated to ensure the new feat...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[uncategorized] ~7-~7: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ...t any existing features are not impacted and any new features are working as expecte...

(COMMA_COMPOUND_SENTENCE_2)


[uncategorized] ~63-~63: You might be missing the article “a” here.
Context: ... this PR. Additional notes: - Add list of any additional notes you may want to...

(AI_EN_LECTOR_MISSING_DETERMINER_A)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyze (csharp)

@osm-vishnukyatannawar osm-vishnukyatannawar merged commit ba6e50f into main Feb 26, 2025
3 checks passed
@osm-vishnukyatannawar osm-vishnukyatannawar deleted the chore/add-merge-template branch February 26, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants