You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add closed to the Merge-Bot Stub Types of Adopters Setting delete-branch #2336
The merge-bot task's delete-branch input now deletes a merged bot head from a pull_request_targetclosed run (#2296). An adopter's caller stub only reaches that job when its types include closed and its pin reaches the hub release that carries the delete job.
These adopters already set delete-branch: true, and their stubs list types: [opened, reopened, synchronize]:
NxWitness
LanguageTags
aiopurpleair
MediaTools
VSCode-Server-DotNetCore
Dependabot bumps only their pin, never their types, so after the release their bot heads still persist. The spec/files.json interface contract checks job keys and tokens, not types, so no audit finding surfaces it.
Done When
Each listed adopter's .github/workflows/merge-bot-pull-request.yml lists closed in types, at a pin that carries the delete job.
Optionally, the audit's interface contract for the merge-bot stub checks that closed is present wherever delete-branch: true is set, so the gap cannot recur silently.
Each downstream change is a pull request in that repository, made with that repository's own write permission.
Found during a LanguageTags resync to hub 009d3e5e (audit run 2026-11-12T22:10:34Z).
docs/reusable-workflows.md "Stage 1: Merge-Bot Adoption" records ptr727/LanguageTags and ptr727/NxWitness each as a delete-branch: true adopter. On develop, neither repository's merge-bot-pull-request.yml carries a with: delete-branch: true block or closed in its types. So the ledger records an adoption that never landed in either stub, and bot head branches are not deleted there while delete_branch_on_merge stays off fleet-wide.
The catalog snippet catalog/snippets/workflows/merge-bot-pull-request.yml now lists closed unconditionally. The ledger line above this one still says only adopters setting delete-branch: true add it, so the two read differently for a repository that does not opt in.
LanguageTags is adding both closed and delete-branch: true in its workflows resync pull request. NxWitness still needs the same change.
Activity
Delete Merge-Bot Heads From the Closed Event and Split the Stub Concu…
ptr727 commentedon Nov 12, 2026
Found during a LanguageTags resync to hub
009d3e5e(audit run 2026-11-12T22:10:34Z).docs/reusable-workflows.md"Stage 1: Merge-Bot Adoption" records ptr727/LanguageTags and ptr727/NxWitness each as adelete-branch: trueadopter. Ondevelop, neither repository'smerge-bot-pull-request.ymlcarries awith: delete-branch: trueblock orclosedin itstypes. So the ledger records an adoption that never landed in either stub, and bot head branches are not deleted there whiledelete_branch_on_mergestays off fleet-wide.The catalog snippet
catalog/snippets/workflows/merge-bot-pull-request.ymlnow listsclosedunconditionally. The ledger line above this one still says only adopters settingdelete-branch: trueadd it, so the two read differently for a repository that does not opt in.LanguageTags is adding both
closedanddelete-branch: truein its workflows resync pull request. NxWitness still needs the same change.