Skip to content

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

Merged
marlonmarcello merged 6 commits into
mainfrom
feature/github/repo-clone-config-setup
Jul 28, 2026
Merged

feature(github): repo clone with config setup#74
marlonmarcello merged 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-botBot 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
NameType
wtcPatch

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

CopilotAI 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
FileDescription
src/utils/git.tsAdds git helpers for remote readiness wait, clone, commit, and push used by bootstrap workflow.
src/tui/pages/github.tsxExtends TUI repo creation with optional Teamwork bootstrap prompts + workflow execution.
src/cli/commands/repo.tsAdds --setup-teamwork flow and supporting flags; routes through new workflow when enabled.
src/cli/commands/repo-command.tsExposes new CLI flags (--setup-teamwork, --clone-dir, --teamwork-project-id, etc.).
src/api/teamwork/tasks.tsAdds task-list reference parsing (getTeamworkTaskListReference).
src/api/teamwork/task.tsRefactors task fetching to support a “summary” read path and optional project metadata.
src/api/teamwork/task-lists.tsNew Teamwork task-list/task discovery utilities used for bootstrap defaults.
src/api/github/repos.tsBumps template cache version and filters archived repos from template selection.
src/api/github/repo-creation-workflow.tsNew orchestrated workflow: create repo → optional bootstrap → apply setup/rules → return warnings.
src/api/github/repo-bootstrap.tsNew bootstrap implementation: clone repo, write .wtc.yaml, commit, push.
plans/PLAN.mdMarks Phase 6.4 as completed and updates phase descriptions.
plans/github/README.mdUpdates subphase status and descriptions to match current implementation.
plans/github/6.5-teamwork-project-linking-and-final-polish.mdAdds new Phase 6.5 plan doc.
plans/github/6.5-local-clone-and-final-features.mdRemoves outdated Phase 6.5 doc.
plans/github/6.4-teamwork-project-linking.mdRemoves outdated Phase 6.4 doc.
plans/github/6.4-local-clone-and-wtc-project-bootstrap.mdAdds new Phase 6.4 plan doc matching implementation.
plans/github/6.3-repo-rules.mdUpdates Phase 6.3 doc to “complete” and clarifies implemented scope.
plans/github/6.2-cli-repo-creation.mdUpdates Phase 6.2 doc to “complete” and reflects actual flags/behavior.
plans/github/6.1-tui-repo-creation-from-template.mdUpdates Phase 6.1 doc to “complete” and reflects rules preset + warnings.
.nvmrcPins Node version for local dev consistency.
.changeset/hip-bags-laugh.mdAdds 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 threadsrc/cli/commands/repo.ts Outdated
Comment threadsrc/cli/commands/repo.ts Outdated
Comment threadsrc/cli/commands/repo.ts
Comment threadsrc/cli/commands/repo.ts
Comment threadsrc/cli/commands/repo.ts
Comment threadsrc/tui/pages/github.tsx
Comment threadsrc/utils/git.ts
Comment threadsrc/utils/git.ts
Comment threadsrc/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 ownerJuly 11, 2026 00:20
@marlonmarcello
marlonmarcello merged commit 00dfe02 into mainJul 28, 2026
5 checks passed
@marlonmarcello
marlonmarcello deleted the feature/github/repo-clone-config-setup branch July 28, 2026 21:20
@github-actionsgithub-actionsBot mentioned this pull request Jul 28, 2026
Sign up for freeto 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

@marlonmarcello