Skip to content

Per-repo caller stub + cross-repo redispatch #820

Description

@don-petry

Story

As a fleet-repo maintainer,
I want copy a thin standards/workflows/initiative-planner.yml stub that, on idea:approved, dispatches the central planner for my repo,
so that I get idea→initiative planning without vendoring BMAD frameworks/tooling locally.

Acceptance Criteria

  1. A new standards/workflows/initiative-planner.yml (in the public petry-projects/.github repo) triggers on discussion:[labeled], guarded if: github.event.label.name == 'idea:approved', copied verbatim per the org stub convention (mirrors standards/workflows/dev-lead.yml).
  2. The stub runs the redispatch path with a target_repo argument, dispatching gh workflow run initiative-planner.yml --repo petry-projects/.github-private -f discussion=<n> -f target_repo=<host>; redispatch.sh gains a TARGET_REPO/-f target_repo arg.
  3. The stub documents the required dispatch secret (App token / GH_PAT_WORKFLOWS) and the idea:approved label + Ideas-category prerequisite.
  4. The PAT-present guard is retained (a dispatch fired with GITHUB_TOKEN never starts a run — redispatch.sh:17-22).
  5. tests/test_initiative_planner_redispatch.bats covers the target_repo argument (re-asserting the regression test feat: implement issue #574 — pr-review: PRs with >300 changed files hard-fail the cascade (gh pr diff 406); define org standard for oversized PRs #606 deleted).

Tasks / Subtasks

Dev Notes

Project Structure Notes

Spans two repos: the stub lands in public petry-projects/.github (standards/workflows/), the redispatch.sh + test changes land in .github-private. Open the stub PR against .github and the script/test PR against .github-private.

References

  • standards/workflows/dev-lead.yml (petry-projects/.github)
  • standards/workflows/feature-ideation.yml (petry-projects/.github)
  • scripts/initiative-planner/redispatch.sh#L56-L58
  • tests/test_initiative_planner_redispatch.bats

Likely target surface

  • standards/workflows/initiative-planner.yml (new — petry-projects/.github)
  • scripts/initiative-planner/redispatch.sh
  • tests/test_initiative_planner_redispatch.bats

Story prepared by the BMAD Scrum Master (Bob) for epic #817. Status: ready-for-dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-leadFor dev-lead agent pickupenhancementFeature requestsinitiativeEpic / initiative tracking issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions