Check pull requests for edits to generated site files
Site generators overwrite hand edits to their outputs. This check flags those changes on PRs into main and rebrand-doors, using the merge base and the actual PR head. It points contributors to the generator or upstream source where known.
Maintainers can apply generated-output to intentional regenerations. Adding or removing the label reruns the check. The data workflow’s same-repository glossary and Google Analytics PRs are exempt based on their verified author and branch names.
Once this reaches rebrand-doors, scripts/rebrand/check_source_rules.py should import the shared path list.
Validated with actionlint and 68 unit tests. Tested the script against the summaries refresh (#1274), the automated glossary update (#1067) and the automated Analytics update (#936).
Created with GPT-6.2 Sol in Codex.
🤖 Generated with Claude Code