-
Notifications
You must be signed in to change notification settings - Fork 8k
feat(workflows): add automated and scheduled PR triage #3062
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
Conversation
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 @jerop, 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 significantly enhances our repository's pull request management by introducing automated triage and auditing workflows. The primary goal is to ensure consistency, improve context for reviewers, and streamline the PR lifecycle by automatically linking PRs to issues and synchronizing labels. This automation is complemented by an updated PR template that guides contributors on best practices for issue linking.
Highlights
- Automated PR Triage Workflows: Introduces two new GitHub Actions workflows: one for real-time PR triage on every change, and another for hourly scheduled auditing of open PRs.
- Real-time Issue & Label Sync: The 'Gemini Automated PR Triage' workflow ensures every PR is linked to an issue and syncs labels from the linked issue to the PR for immediate context and consistency.
- Scheduled PR Auditing: The 'Gemini Scheduled PR Triage' workflow runs hourly to catch any PRs missed by real-time triage and ensures all labels remain in sync with their linked issues.
- Updated Pull Request Template: The
.github/pull_request_template.md
file has been updated with detailed instructions on how to properly link issues to pull requests, including guidance on keywords for automatic issue closure.
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 updates the pull request template to provide clearer instructions for linking issues. The changes are well-structured and improve contributor guidance. Based on the provided diff, I have reviewed the changes and found no issues that meet the high
or critical
severity threshold for feedback.
Code Coverage Summary
CLI Package - Full Text Report
Core Package - Full Text Report
For detailed HTML reports, please see the 'coverage-reports-20.x' artifact from the main CI run. |
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.
Approved, and I'll keep an eye on it if it needs adjusted.
4855219
to
cd198b5
Compare
cd198b5
to
9ab6110
Compare
This commit introduces two new workflows to automate pull request triage and auditing. The "Gemini Automated PR Triage" workflow is triggered on every pull request change. It ensures that every PR is linked to an issue and syncs all labels from the issue to the PR. This provides immediate context to reviewers and ensures consistency. The "Gemini Scheduled PR Triage" workflow runs hourly to audit all open pull requests, ensuring that any PRs that were missed by the real-time triage are correctly labeled and that all labels are kept in sync with their linked issues. This also updates the pull request template to provide clear instructions on how to link issues to pull requests.
9ab6110
to
3c248c2
Compare
This commit introduces two new workflows to automate pull request triage and auditing.
The "Gemini Automated PR Triage" workflow is triggered on every pull request change. It ensures that every PR is linked to an issue and syncs all labels from the issue to the PR. This provides immediate context to reviewers and ensures consistency.
The "Gemini Scheduled PR Triage" workflow runs hourly to audit all open pull requests, ensuring that any PRs that were missed by the real-time triage are correctly labeled and that all labels are kept in sync with their linked issues.
This also updates the pull request template to provide clear instructions on how to link issues to pull requests.
Fixes #3065
See the action acting on itself below:
