Skip to content

Add closed to the Merge-Bot Stub Types of Adopters Setting delete-branch #2336

Open

Description

@ptr727

Problem

The merge-bot task's delete-branch input now deletes a merged bot head from a pull_request_target closed 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.

Activity

  1. added
    enhancement
    on Oct 4, 2026
  2. ptr727 commented on Nov 12, 2026

    @ptr727
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions