Skip to content

Move repo Project Intake workflow generation out of inline Bash #1489

Description

@codeforester

Problem

cli/bash/commands/basectl/subcommands/repo.sh embeds a full Project Intake GitHub Actions Bash program inside base_repo_write_project_intake_workflow. That here-doc includes authentication diagnostics, retry handling, Project lookup, field lookup, and field mutation logic.

This makes repo.sh harder to review and obscures the boundary between Base repository-baseline generation and the generated workflow content.

Scope

  • Move the generated Project Intake workflow content out of the middle of repo.sh into a clearer owned artifact boundary, such as a template asset or a Python-backed generator.
  • Preserve the generated file content unless a narrow correctness fix is required.
  • Keep repo.sh responsible for orchestration and file placement.
  • Do not split repo.sh mechanically beyond this generated-content boundary.

Acceptance Criteria

  • The generated .github/workflows/project-intake.yml output remains stable or has intentional snapshot/test updates.
  • repo.sh is shorter and no longer contains the full embedded workflow program inline.
  • basectl repo init, basectl repo check, and generated baseline validation continue to pass.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or product improvement

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Backlog

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions