Skip to content

Autopilot: Install CI-failure issue workflow to all repos (opt-in plan) #2

@OgeonX-Ai

Description

@OgeonX-Ai

Objective

Autopilot must prepare an org-wide rollout plan and optionally apply it where safe.

Required behavior

  1. Enumerate all repos in this org.
  2. For each repo:
    • Detect if it already contains a workflow that creates issues on CI failure.
    • Detect CI workflow names (YAML files + workflow "name:" field).
  3. Create a PR (in THIS repo) that adds:
    • /docs/rollout-plan.md with a table:
      • repo name
      • primary language
      • CI workflow names
      • has failure->issue workflow? (yes/no)
      • recommended action
  4. For repos that are clearly safe (no restrictions detected), open PRs that add:
    .github/workflows/autofix-create-issue.yml
    using the template from /templates/workflows/.
  5. Post a single summary comment in this issue:
    • list of PR links created
    • repos skipped + why

Constraints

  • Never ask questions.
  • If permissions prevent repo PRs, create issues in those repos titled:
    "Opt-in required: add CI failure issue workflow"
    with copy-paste instructions.
  • Do not auto-merge anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions