- Notifications
You must be signed in to change notification settings - Fork 126
Add script to fetch PR review comments #1722
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits Select commit Hold shift + click to select a range
da2efa9 feat: Add script to fetch PR review comments
google-labs-jules[bot] 0678049 feat: Enhance PR comment script with context and filters
google-labs-jules[bot] e84b02d fix: Correct IndentationError in get_pr_review_comments.py
google-labs-jules[bot] 5948b96 fix: Correct --context-lines behavior for non-line-specific comments
google-labs-jules[bot] 565eed2 feat: Simplify diff hunk display and add comment filters
google-labs-jules[bot] 24a03ea refactor: Update script description and format diff hunks
google-labs-jules[bot] 7e182aa fix: Adjust 'next command' timestamp increment to 2 seconds
google-labs-jules[bot] 599845b docs: Minor textual cleanups in PR comments script
google-labs-jules[bot] 77d1ed2 feat: Format output as Markdown for improved readability
google-labs-jules[bot] 9cb8d42 style: Adjust Markdown headings for structure and conciseness
google-labs-jules[bot] 203e88f style: Adjust default context lines and Markdown spacing
google-labs-jules[bot] b900c7f feat: Refactor comment filtering with new status terms and flags
google-labs-jules[bot] 5a4010f feat: Improve context display and suggested command robustness
google-labs-jules[bot] 94417e7 style: Refactor hunk printing to use join for conciseness
google-labs-jules[bot] 9312a0c fix: Align 'since' filter and next command with observed API behavior…
google-labs-jules[bot] 07d06bb style: Condense printing of trailing hunk lines
google-labs-jules[bot] 7c7a269 chore: Remove specific stale developer comments
google-labs-jules[bot] 91bfae6 fix: Ensure removal of specific stale developer comments
google-labs-jules[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: Refactor comment filtering with new status terms and flags
This commit introduces a more granular system for classifying and filtering pull request review comments in the `scripts/gha/get_pr_review_comments.py` script. New Comment Statuses: - `[IRRELEVANT]`: Comment's original diff position is lost (`position` is null). Displays `original_line`. - `[OLD]`: Comment is anchored to the diff, but its line number has changed (`line` != `original_line`). Displays current `line`. - `[CURRENT]`: Comment is anchored and its line number is unchanged. Displays current `line`. New Command-Line Flags: - `--exclude-old` (default False): If set, hides `[OLD]` comments. - `--include-irrelevant` (default False): If set, shows `[IRRELEVANT]` comments (which are hidden by default). - The old `--skip-outdated` flag has been removed. Default Behavior: - Shows `[CURRENT]` and `[OLD]` comments. - Hides `[IRRELEVANT]` comments. This provides you with more precise control over which comments are displayed, improving the script's utility for various review workflows. The "suggest next command" feature correctly interacts with these new filters, only considering non-skipped comments for its timestamp calculation.
- Loading branch information
commit b900c7ff4afe5f151a5d6bf3f1a76e97b7a13ffe
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.