Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tktcorporation
Copy link
Owner

Summary

  • .gitignore に記載されたファイルを init/diff/push 全コマンドで自動的に除外する機能を追加
  • ローカルディレクトリとテンプレートリポジトリ両方の .gitignore をチェック
  • クレデンシャル等の機密情報の誤流出を防止

Changes

  • ignore パッケージを追加して gitignore パターンをパース
  • src/utils/gitignore.ts を新規作成
    • loadMergedGitignore(): 複数ディレクトリの .gitignore をマージ
    • filterByGitignore(): gitignore ルールでファイルをフィルタリング
  • src/utils/template.ts, src/utils/diff.ts に gitignore フィルタリングを統合
  • ユニットテストを追加 (10 cases)
  • 依存パッケージをアップデート (@octokit/rest v22 など)

Test plan

  • pnpm build 成功
  • pnpm test:run 全テスト通過 (22 tests)
  • pnpm typecheck 型チェック通過

🤖 Generated with Claude Code

tktcorporation and others added 3 commits December 9, 2025 01:28
- ignore パッケージを追加して gitignore パターンをパース
- loadMergedGitignore: ローカルとテンプレート両方の .gitignore をマージ
- filterByGitignore: gitignore ルールでファイルをフィルタリング
- init, diff, push 全コマンドで gitignore されたファイルを除外
- クレデンシャル等の機密情報の誤流出を防止

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- @octokit/rest: ^21.0.0 → ^22.0.1 (major)
- ignore: ^7.0.0 → ^7.0.5 (patch)
- tinyglobby: ^0.2.0 → ^0.2.15 (patch)
- @types/node: ^22.19.1 → ^22.19.2 (patch)
- pnpm: 10.0.0 → 10.25.0 (minor)
- rollup: ^4.40.0 → ^4.53.3 (minor)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@octokit/rest v22 が Node.js v18 をサポートしなくなったため

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@tktcorporation tktcorporation merged commit 5e0f695 into main Dec 9, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Dec 9, 2025
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