Repository navigation
Hold the Upstream-Dependency Watcher While Its PR Carries a Maintainer Commit - #410
Conversation
…r Commit create-pull-request rebuilds upstream-dependency-develop from develop and force-updates it, so a Dockerfile commit a maintainer added to the open review PR was lost at the next daily run. The watcher now skips its checkout, resolve, and PR steps while the open PR carries a commit the App did not author. The check reads the open PR rather than the branch, since merged head branches are not auto-deleted here. WORKFLOW.md records the hold in the watcher section, D10.6, and trace S25. Fixes #408 Co-Authored-By: Claude Opus 5.5 <[email protected]>
gh pr list --head matches the branch name only, so a fork's pull request on a branch named upstream-dependency-develop would have held the watcher for as long as it stayed open. The hold now skips cross-repository pull requests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
🟡 Changes recommended
A critical active finding remains because unlinked commit authors can be misclassified as the App, allowing potentially destructive branch updates contrary to the documented safety rule.
1 open issue
What changed in this PR
This pull request prevents the upstream-dependency watcher from overwriting maintainer changes on its open rolling pull request.
Changes:
- Adds a hold check for open, same-repository watcher PRs containing non-App commits.
- Skips checkout, dependency resolution, and PR creation while the PR is held.
- Documents the behavior in
WORKFLOW.md, including D10.6, audit evidence, and trace scenario S25. - A critical issue remains: commits with unlinked authors are not currently treated as held.
This pull request requires changes.
| File | Summary |
|---|---|
WORKFLOW.md |
Documents the watcher hold behavior, guarantees, audit coverage, and trace scenario. |
.github/workflows/check-upstream-dependency.yml |
Adds held-PR detection and conditional watcher steps; unlinked commit authors require correction. |
Review effort: Lite
A commit whose author email links to no GitHub account can come back from gh pr list with an empty authors array, which the earlier filter skipped, so the hold cleared. A commit with no listed author now counts as not the App's, alongside one listed with an empty login. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |

Summary
peter-evans/create-pull-requestrebuildsupstream-dependency-developfromdevelopplus one regenerated commit, then force-updates the branch whenever the remote differs. So a Dockerfile orWORKFLOW.mdcommit a maintainer added to the open watcher PR was lost at the next daily run. That also blocked the rule in "The Upstream-Dependency Watcher" that such changes belong in the same PR. A second form: if upstream reverted while the PR was open,delete-branch: truedeleted the branch and closed the PR with the maintainer's commits on it.heldstep after the App token. It skips checkout, resolve, and create-pull-request while an open, same-repository PR onupstream-dependency-developintodevelopcarries a commit not authored by<app-slug>[bot]. A PR holding only the bot's commit keeps rolling forward as before.delete_branch_on_mergeis off and a merged head branch would otherwise hold every later run. Fork PRs on a same-named branch are ignored, so an outsider cannot switch the watcher off.WORKFLOW.mdsection 7 records the hold in the watcher section, D10.6, its audit bullet, and trace S25.Fixes #408
Verification
gh pr list | jqlocally against merged Review upstream base image packages added: libssl-dev #385 with--state all. It selects Review upstream base image packages added: libssl-dev #385, which carries maintainer commits. It selects nothing for a bot-only commit list or an empty list. The bot login readsptr727-codegen[bot], matching${app-slug}[bot].hold=falseon the no-PR path.🤖 Generated with Claude Code
Summary by CodeRabbit