chore(ci): add regen-push bot script and update commenter message - #26093
Merged
Conversation
Add etc/scripts/regen-push.sh — a standalone script that automatically pushes "Regen" commits to PR branches when CI detects uncommitted generated file changes. It downloads the regen-patch artifact produced by the CI build and pushes the fix directly. Works for both same-repo and fork PRs (requires maintainer access and "Allow edits from maintainers" enabled). Uses ETag-based polling on the Events API for efficient cron usage. Update pr-test-commenter.yml to inform contributors that a bot will auto-push the regen fix when maintainer edits are allowed, with manual instructions as fallback.
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
gnodet
marked this pull request as draft
September 3, 2026 14:52
Contributor
✅ Generated files are up to dateAn earlier CI run reported uncommitted generated changes; the latest run no longer does. |
Add a blank line between the ASF license block and the script documentation to prevent the regen formatter from treating them as a single license block and stripping the documentation.
Contributor
|
🧪 CI tested the following changed modules:
🔬 Scalpel shadow comparison — Scalpel: 1 tested, 0 compile-only — current: 0 all testedMaveniverse Scalpel detected 1 affected modules (current approach: 0).
|
oscerd
approved these changes
Sep 3, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Add
etc/scripts/regen-push.sh— a standalone script that automatically pushes "Regen" commits to PR branches when CI detects uncommitted generated file changes.Update
pr-test-commenter.ymlto inform contributors that a bot will auto-push the regen fix when maintainer edits are allowed, with manual instructions as fallback.How it works
regen-patchartifactsmaintainerCanModify=trueRequirements
ghCLI authenticated with a maintainer PAT (repo scope)python3(for JSON parsing)curl(for ETag polling)Usage
Commenter update
The PR comment posted by
pr-test-commenter.ymlnow mentions that a bot will auto-push the fix when Allow edits from maintainers is enabled, with manual instructions as fallback.