Skip to content

Add a fleet auto-PR renderer for bulk library migration #1793

Open

Description

@danielmeza

Description

Bulk-migrating the lib-* fleet will produce many pull requests, and the PR conventions document defines a renderer contract for those auto-created PRs (body from the org template, no AI attribution, no issue references in the title, correct base branch, idempotent re-runs). The contract is documented but the reference renderer is not built, so opening fleet PRs would have to be done by hand or with an ad-hoc script that does not enforce the contract.

How to solve the problem

Build a fleet auto-PR renderer next to the converter (in tools/migrate) that:

  • Takes (repo, homeIssue, types[]) and fills the org PR-template slots per the contract: Description, Motivation and Context, How Has This Been Tested?, Types of changes, Checklist — full sentences, ticking only boxes that apply.
  • Never puts issue or PR references in the title and never targets main/master (base is the migration integration branch move-to-sdk, or develop).
  • Adds no AI/tool attribution to any PR text.
  • Checks for an existing open PR for the branch before creating (idempotency), respects GitHub rate limits when fanning out, and shells out to the documented gh pr create recipe.
  • Opens PRs leaf-first (dependencies before dependents).

Acceptance: running the renderer over a pilot opens template-compliant draft PRs leaf-first; re-running opens no duplicates.

Describe alternatives you've considered

  • Open each fleet PR manually. Does not scale to 100+ repos and is inconsistent.
  • A throwaway script without the contract checks. Risks non-compliant PR bodies, duplicate PRs, and rate-limit failures across the fleet.

Additional context

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions