Skip to content

Refactor repository automation into project_setup - #6

Merged
v-Kaefer merged 130 commits into
developfrom
agent/refine-project-setup
Aug 9, 2026
Merged

Refactor repository automation into project_setup#6
v-Kaefer merged 130 commits into
developfrom
agent/refine-project-setup

Conversation

@v-Kaefer

@v-Kaefer v-Kaefer commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Linked Issue

Milestone

  • M0

Summary

  • Rename the reusable package, CLI, configuration, workflows, tests, and canonical documentation to project_setup.
  • Provide a cross-platform Makefile and Python CLI for repository installation, discovery, diagnostics, dry-run planning, and explicit live application.
  • Detect Windows through OS=Windows_NT, select python by default, and remove the dependency on the Unix test command.
  • Make dry-run the default for every mutating CLI path; require --live, the compatibility alias --no-dry-run, or LIVE=1 before writes.
  • Report the GitHub CLI installation and gh auth state separately from environment-token authentication, without exposing credentials.
  • Require PROJECT_SETUP_PAT specifically for live GitHub Projects v2 operations while keeping github.token for repository-scoped Actions operations.
  • Harden GitHub requests with a finite timeout, an API-host allowlist, and automatic retries limited to idempotent reads.
  • Remove the framework-specific Godot profile from the generic tool surface.
  • Address the CodeRabbit review findings for installer side effects, conflicting labels, malformed manifests, milestone pre-validation, PR placeholders, script discovery, documentation alignment, and workflow templates.

How to test

  • Run make check.
  • Run make doctor and verify OS, Python, token source, and gh auth diagnostics.
  • Run make discover TARGET=/path/to/project REPO=owner/repository and confirm the recommended command remains a dry-run.
  • Run make init-dry TARGET=/tmp/example-project and confirm the target directory is not created.
  • Run each module without LIVE=1 and confirm it only previews changes.
  • Run project sync without PROJECT_SETUP_PAT and confirm it produces an offline preview rather than querying Project v2.

Evidence

Known risks and intentional limits

  • Issue generation is intentionally opt-in and is not idempotent; existing issues must be reviewed before repeating it.
  • Project v2 views remain a manual configuration step.
  • Milestone synchronization intentionally inspects at most the first 100 existing milestones.
  • The current distribution model embeds the package in each target repository rather than consuming a published PyPI release.
  • The local sandbox network restriction recorded in the real-test report was an environment limitation, not a Makefile defect.
  • GitHub Actions has not started a workflow run for the latest branch commit, so hosted CI evidence is still pending.

DoD checklist

  • Scope implemented as defined
  • Legacy namespace removed
  • Cross-platform Makefile and installer added
  • Dry-run standardized and live execution made explicit
  • GitHub and gh auth diagnostics improved
  • GitHub request safety hardened
  • Framework-specific Godot profile removed
  • CodeRabbit inline findings addressed or intentionally bounded
  • Reconstructed branch completed make check with 26 tests
  • GitHub Actions execution enabled and hosted make check passed
  • Final user review completed

v-Kaefer added 30 commits August 6, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TASK | Refactor repository automation into project_setup

1 participant