Fix quality checks for README reorders - #6589
Conversation
Automated Quality ChecksSkipped — this PR does not modify This is expected for maintenance, documentation, or workflow PRs. |
PR Summary by QodoFix PR quality check detection for README-only package reorders
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Non-entry edits bypass validation
|
| if [ -n "$added_entries" ] && [ "$added_entries" = "$removed_entries" ]; then | ||
| echo "is_package_pr=false" >> "$GITHUB_OUTPUT" | ||
| echo "README.md only reorders existing package entries — skipping quality checks" |
There was a problem hiding this comment.
1. Non-entry edits bypass validation 🐞 Bug ≡ Correctness
The detector treats any README patch whose added and removed package-entry lines match as a pure reorder, even when the same patch also changes headings, prose, category structure, or other README content. Such a PR is marked non-package and skips both quality and diff checks despite modifying the package catalog file.
Agent Prompt
## Issue description
A README patch is classified as a reorder solely because sorted added and removed package-entry lines are identical. Unrelated README edits in the same patch therefore bypass package and diff validation.
## Issue Context
Only skip checks when the complete README diff represents an entry reorder; headings, prose, category structure, formatting, and other non-entry changes must prevent the skip. The downstream diff checker handles README changes with no package entries and should remain available for those cases.
## Fix Focus Areas
- .github/workflows/pr-quality-check.yaml[25-35]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Qodo Fixer✅ Merged (0) · ☑ Fixed (0) Process
|
Summary
Root cause
The current detector classifies every pull request touching
README.mdas a package PR. Maintenance-only reorders therefore run package-submission validation against an unchanged entry and can fail link consistency, as seen in #6586.Validation
The detector logic was evaluated against the live patches for:
The updated workflow also parses successfully as YAML.