Skip to content

feature(github): repo clone with config setup#74

Open
marlonmarcello wants to merge 6 commits into
mainfrom
feature/github/repo-clone-config-setup
Open

feature(github): repo clone with config setup#74
marlonmarcello wants to merge 6 commits into
mainfrom
feature/github/repo-clone-config-setup

Conversation

@marlonmarcello

Copy link
Copy Markdown
Member

Summary

This PR extends the repo creation feature with a way to initialize the new repo with teamwork settings right out of the gate.

Hopefully making it easier to bootstrap a new project.

We can probably extend this further even to allow to add the pinned task lists and project links as well but I thought that these 3 the Project ID, the General Tasklist ID and Code Review ID were enough to start and were the most important ones since we all have to share them.

Type of Change

  • Feature
  • Bug fix
  • Refactor
  • Documentation
  • Tooling / CI / release

Local Verification

  • bun run fmt
  • bun run lint
  • bun run check
  • bun run build

Release Impact

  • No release impact
  • Changeset added in .changeset/
  • Updates CLI behavior
  • Updates install/update behavior
  • Updates build/release packaging
  • Breaking change

@changeset-bot

changeset-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 184c51c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wtc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the GitHub repo creation flow (TUI + CLI) to optionally clone the newly created repo, generate a .wtc.yaml with Teamwork bootstrap settings, commit + push it, and only then apply repo rules/settings—making new repos immediately usable as WTC projects.

Changes:

  • Add a createGitHubRepoWorkflow() that optionally bootstraps a freshly created repo (clone → write .wtc.yaml → commit/push) before applying repo rules.
  • Add Teamwork helpers for task-list parsing and discovery (General Tasks list + Code Review task), and wire them into both the TUI and CLI repo creation flows.
  • Update plans/docs + changeset to reflect Phase 6.4 completion and the new workflow.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/utils/git.ts Adds git helpers for remote readiness wait, clone, commit, and push used by bootstrap workflow.
src/tui/pages/github.tsx Extends TUI repo creation with optional Teamwork bootstrap prompts + workflow execution.
src/cli/commands/repo.ts Adds --setup-teamwork flow and supporting flags; routes through new workflow when enabled.
src/cli/commands/repo-command.ts Exposes new CLI flags (--setup-teamwork, --clone-dir, --teamwork-project-id, etc.).
src/api/teamwork/tasks.ts Adds task-list reference parsing (getTeamworkTaskListReference).
src/api/teamwork/task.ts Refactors task fetching to support a “summary” read path and optional project metadata.
src/api/teamwork/task-lists.ts New Teamwork task-list/task discovery utilities used for bootstrap defaults.
src/api/github/repos.ts Bumps template cache version and filters archived repos from template selection.
src/api/github/repo-creation-workflow.ts New orchestrated workflow: create repo → optional bootstrap → apply setup/rules → return warnings.
src/api/github/repo-bootstrap.ts New bootstrap implementation: clone repo, write .wtc.yaml, commit, push.
plans/PLAN.md Marks Phase 6.4 as completed and updates phase descriptions.
plans/github/README.md Updates subphase status and descriptions to match current implementation.
plans/github/6.5-teamwork-project-linking-and-final-polish.md Adds new Phase 6.5 plan doc.
plans/github/6.5-local-clone-and-final-features.md Removes outdated Phase 6.5 doc.
plans/github/6.4-teamwork-project-linking.md Removes outdated Phase 6.4 doc.
plans/github/6.4-local-clone-and-wtc-project-bootstrap.md Adds new Phase 6.4 plan doc matching implementation.
plans/github/6.3-repo-rules.md Updates Phase 6.3 doc to “complete” and clarifies implemented scope.
plans/github/6.2-cli-repo-creation.md Updates Phase 6.2 doc to “complete” and reflects actual flags/behavior.
plans/github/6.1-tui-repo-creation-from-template.md Updates Phase 6.1 doc to “complete” and reflects rules preset + warnings.
.nvmrc Pins Node version for local dev consistency.
.changeset/hip-bags-laugh.md Adds a patch changeset describing the new CLI cloning/Teamwork setup behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cli/commands/repo.ts Outdated
Comment thread src/cli/commands/repo.ts Outdated
Comment thread src/cli/commands/repo.ts
Comment thread src/cli/commands/repo.ts
Comment thread src/cli/commands/repo.ts
Comment thread src/tui/pages/github.tsx
Comment thread src/utils/git.ts
Comment thread src/utils/git.ts
Comment thread src/api/teamwork/task-lists.ts
Comment thread .changeset/hip-bags-laugh.md
@marlonmarcello marlonmarcello marked this pull request as ready for review July 11, 2026 00:20
@marlonmarcello marlonmarcello requested a review from a team as a code owner July 11, 2026 00:20
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.

2 participants