You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit makes a minor stylistic refactoring in the
`scripts/gha/get_pr_review_comments.py` script.
When displaying the trailing lines of a diff hunk (for
`--context-lines > 0`, after the header line is potentially
printed and removed from the `hunk_lines` list), the script
now uses `print("\n".join(hunk_lines[-args.context_lines:]))`
instead of explicitly creating a sub-list and then looping
through it with `print()` for each line.
This change achieves the same visual output (printing a newline
if `hunk_lines` becomes empty after header removal) but is more
concise.
0 commit comments