-
Notifications
You must be signed in to change notification settings - Fork 105
docs: add guide for cherry-picking pull requests to another branch #3633
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary: Code Improvements:
Best Practices:
These improvements will enhance the script's robustness, readability, and user-friendliness, making the cherry-picking process smoother for users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @wuhuizuo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request introduces a new comprehensive guide aimed at assisting contributors with the process of cherry-picking pull requests to other branches, particularly for backporting fixes or features. It outlines both an automated approach using a helper script and a detailed manual method, along with best practices and troubleshooting tips.
Highlights
- New Documentation Guide: A new guide,
docs/guides/cherry-pick-pull-request.md
, has been added to provide comprehensive instructions on how to cherry-pick pull requests to another branch. - Automated Cherry-Picking Workflow: The guide details the use of a helper script (
scripts/ops/cherry_pick_pull.sh
) that automates much of the cherry-picking process, including handling multiple PRs and supporting advanced options via environment variables. - Manual Cherry-Picking Alternative: For users requiring more control, the guide provides a step-by-step alternative for performing manual cherry-picking using standard Git commands.
- Conflict Resolution and Best Practices: The documentation includes sections on how to handle merge conflicts that may arise during cherry-picking, along with best practices and troubleshooting tips to ensure a smooth workflow.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds a new guide for cherry-picking pull requests, which is a great addition to the documentation. My review focuses on improving the clarity, correctness, and readability of the new guide. I've suggested a few changes to fix a potentially broken link, clarify placeholders, improve a section heading for better understanding, and restructure an instruction to make it less ambiguous. Overall, these are minor changes to an already well-written document.
SummaryThis PR introduces documentation updates to the CI repository, including a new guide for cherry-picking pull requests to another branch ( Critical IssuesNo critical issues were identified in this PR. Code Improvements
Best Practices
Testing Coverage
Naming Conventions
Documentation Needs
|
SummaryThis PR introduces a new guide on cherry-picking pull requests to another branch, along with updates to the documentation index in Critical IssuesNo critical issues detected. Code Improvements1. Incomplete Description of Helper Script Behavior
2. Missing Example for Multiple Environment Variable Usage
3. Redundant Manual Cherry-Picking Section
Best Practices1. Inconsistent Terminology
2. Missing Hyperlink to Helper Script
3. Testing Recommendations
4. Improving README Cross-References
Testing Coverage
Documentation Needs
|
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
SummaryThis PR adds comprehensive documentation to the CI repository, including guides for PingCAP's CI system, cherry-picking pull requests, and organizing the Critical IssuesNone detected. Code Improvements
Best Practices
Suggested Next Steps
|
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
SummaryThis pull request introduces well-documented guides for CI processes and cherry-picking pull requests, alongside reorganizing the documentation structure. The approach emphasizes clarity through step-by-step instructions, workflow diagrams, and practical examples. While the content is comprehensive and helpful, some areas could benefit from improved precision, additional context, and minor structural adjustments. Critical IssuesNo critical issues identified. Code Improvements
Best Practices
Additional NotesThe guides are thorough and actionable, and the inclusion of troubleshooting and best practices is commendable. Addressing the above issues will further enhance user experience and reduce ambiguity for contributors unfamiliar with CI processes or Git operations. |
SummaryThis pull request adds structured documentation to the CI repository, including a guide for cherry-picking pull requests, a comprehensive CI system guide, and updates to the README for improved organization. The approach involves creating detailed Markdown files with clear step-by-step instructions, diagrams, and examples. The documentation is well-organized and thorough, but there are minor areas for improvement in clarity, edge cases, and consistency. Critical IssuesNo critical issues were found in this pull request. Code Improvements
Best Practices
Testing Coverage Gaps
Style Guideline Deviations
The documentation is overall high quality, but addressing these improvements will enhance clarity, usability, and completeness. |
This pull request introduces new documentation for the CI repository, focusing on guides for CI processes, cherry-picking pull requests, and improving the overall organization of the documentation. The changes aim to provide clear instructions and streamline workflows for contributors.
New Documentation Guides
docs/guides/CI.md
: Added a comprehensive guide to PingCAP's CI system, including instructions on locating pipelines, modifying and testing pipelines, and the workflow for deploying changes from staging to production. Includes a workflow diagram for clarity.docs/guides/cherry-pick-pull-request.md
: Introduced a detailed guide on how to cherry-pick pull requests to another branch, covering prerequisites, usage of the helper script, handling conflicts, and best practices.Improved Documentation Organization
docs/guides/README.md
: Updated the README to serve as an entry point for the guides section. Added links to available guides, including CI, Docker build instructions, cherry-picking pull requests, and FAQs. Provided recommendations for writing and updating guides.