ci: add guard against zero-change PRs (rubber-stamp prevention) #1738
Reference in New Issue
Block a user
Delete Branch "step35/1445-process-prevent-rubber-stamp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue #1445 — Prevent rubber-stamping of PRs with no changes
Problem
PR #359 had 0 additions, 0 deletions, 0 changes but received 3 APPROVED reviews — rubber-stamping without actual review.
Solution (Option 1: CI Validation)
Add a gate that rejects PRs with zero file changes to the CI pipeline.
Implementation
.gitea/workflows/ci.ymlvalidatejobgit diff --name-only origin/main...HEAD | wc -lto count changed filesVerification
Closes
This PR closes #1445.