Reduce nags about PRs that reference issues but don't fix them. - #16112
Conversation
Summary of ChangesHello @jacob314, 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 refines the PR triage script to reduce unnecessary notifications for pull requests that reference issues without explicitly marking them as 'fixing' them. It achieves this by enhancing the script's ability to detect referenced issues within the PR body and by optimizing API calls to fetch PR details, resulting in a more accurate and efficient automated triage process. Highlights
Using Gemini Code AssistThe 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 by creating a comment using either
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 Limitations & Feedback Gemini Code Assist 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. 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
|
There was a problem hiding this comment.
Code Review
This pull request improves the PR triage script by reducing API calls and adding logic to detect issue references in the PR body, which is a great enhancement. I've found one potential issue with the regular expression used for detecting issue numbers, which could lead to false positives. My feedback includes a suggestion to make the pattern matching more precise.
|
Size Change: -2 B (0%) Total Size: 22.3 MB ℹ️ View Unchanged
|
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…le-gemini#16112) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
… but don't fix them. (google-gemini#16112)
…le-gemini#16112) 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>
…le-gemini#16112) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Summary
PRs such as #15948 where getting incorrectly tagged as needing an issue when they referenced but didn't fully resolve an issue.
Details
Check for references to PRs in the issue content if the PR doesnt explicitly fix an issue.
How to Validate
Run the tool on just issue and validate it doesn't get tagged as needing an issue.
Case I used to verify: