Repository navigation
ci(dependabot): auto-retarget dependabot PRs from main to Dev_new_gui (#11696) - #11724
Merged
Merged
Conversation
Contributor
✅ SSOT Configuration Compliance: Passing🎉 No hardcoded values detected that have SSOT config equivalents! |
21 of 23 tasks
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.
Closes #11696
Thinking Path
Dependabot security updates always open against the default branch (
main) and ignoredependabot.ymltarget-branch— a documented GitHub limitation. Manual retargeting reverts on the next@dependabot rebase(observed on #11566). Owner decision on #11696: retarget the PRs (option 2 in the issue). A workflow that re-applies the retarget on every PR event, includingsynchronize, makes the retarget rebase-proof.What Changed
.github/workflows/dependabot-retarget.yml: onpull_request_target(opened/reopened/synchronize), if the PR author isdependabot[bot]and base ismain, PATCH the base toDev_new_gui. Comments once on open/reopen; on failure (e.g. Dev_new_gui already carries the bump → empty diff) it comments with the superseded-close instruction instead of failing silently.github-scriptAPI calls only — norun:shell interpolation of untrusted input, PR code never checked out,pull-requests: writeis the only permission.Verification
yaml.safe_loadparses the workflow cleanly (YAML-OK).dependabot-auto-merge.ymlpatterns (actions/github-script@v9,secrets.GITHUB_TOKEN).Dev_new_guiautomatically and stays there after a rebase (Dependabot PRs target main and revert manual retarget on rebase — bypass Dev_new_gui-first workflow #11696 acceptance).Model Used
Claude Fable 5