Skip to content

v1.6 リポジトリ管理・.gitignoreテンプレート#24

Merged
HMasataka merged 6 commits intomainfrom
feat/v1.6-repo-management-cli
Mar 7, 2026
Merged

v1.6 リポジトリ管理・.gitignoreテンプレート#24
HMasataka merged 6 commits intomainfrom
feat/v1.6-repo-management-cli

Conversation

@HMasataka
Copy link
Owner

概要

v1.6 のリポジトリ管理機能を実装。リポジトリのOpen/Init/Clone、最近開いたリポジトリ一覧、.gitignoreテンプレート取得を追加。

変更内容

バックエンド (Rust)

  • commands/repo.rs: Open/Init/Clone/最近のリポジトリ管理コマンド(setup_repo_after_openヘルパーで共通処理集約)
  • commands/gitignore.rs: GitHub APIから.gitignoreテンプレート取得(メモリ+ファイルの2層キャッシュ、TTL 1時間)
  • git/dispatcher.rs: init()(git2-rs)、clone_repo()(git CLI subprocess)追加
  • config/mod.rs: RecentRepo型、add_recent_repo/remove_recent_repo追加
  • 新規依存: reqwest, tauri-plugin-dialog, chrono

フロントエンド (TypeScript/React)

  • Open Repositoryページ(サイドバーなしフルページ、Open Folder/Clone/Initボタン + 最近のリポジトリ一覧)
  • Cloneダイアログ(URL入力 + ディレクトリ選択)
  • Initダイアログ(パス + .gitignoreテンプレート選択)
  • repoStore: 5アクション(fetchRecentRepos, openRepository, initRepository, cloneRepository, removeRecentRepo)
  • repo.ts, gitignore.ts: IPCサービス
  • 新規依存: @tauri-apps/plugin-dialog

テスト

  • repoStore.test.ts: 11件(全アクションの成功/失敗パス)
  • repo.test.ts: 6件(全サービス関数)
  • gitignore.test.ts: 2件
  • Rust: dispatcher 4件, config 7件, error 2件

動作確認

  • Rust テスト 246件全通過
  • Frontend テスト 400件全通過
  • clippy 警告なし
  • Biome エラーなし

🤖 Generated with Claude Code

HMasataka and others added 6 commits March 5, 2026 22:33
@HMasataka HMasataka merged commit 9325024 into main Mar 7, 2026
5 checks passed
@HMasataka HMasataka deleted the feat/v1.6-repo-management-cli branch March 7, 2026 06: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.

1 participant