[Chore] - 신규 클론 환경 자동 셋업 스크립트(bin/setup) 추가#302
Conversation
- gh CLI 인증을 활용해 private 레포(thingineeer/thingineeer-env)의 Runnect-env에서 비밀 파일 3종을 메인 레포 내 정해진 경로로 자동 배치 - Config.swift / AdConfig.swift / GoogleService-Info.plist 모두 .gitignore 등록 상태 검증까지 포함 - 권한 없는 계정에선 gh repo clone 단계에서 자동 차단되어 secret 노출 위험 없음 - README와 CLAUDE.md에 신규 셋업 흐름 명시
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughDocumentation is updated to guide developers through a new automated setup process for managing sensitive configuration files. A new Changes
Sequence DiagramsequenceDiagram
actor Developer
participant setup as bin/setup Script
participant gh as GitHub CLI (gh)
participant PrivateRepo as Private Repository<br/>(thingineeer-env)
participant LocalRepo as Local Repository<br/>(Runnect-iOS)
Developer->>setup: Execute ./bin/setup
activate setup
setup->>setup: Validate prerequisites<br/>(gh CLI, auth, directory)
setup->>gh: Authenticate session check
gh-->>setup: Auth status confirmed
setup->>gh: Clone private repository<br/>(Runnect-env subdir)
gh->>PrivateRepo: Request repository access
PrivateRepo-->>gh: Return repository contents
gh-->>setup: Clone successful
setup->>setup: Iterate secret file mappings
setup->>LocalRepo: Copy Config.swift
setup->>LocalRepo: Copy AdConfig.swift
setup->>LocalRepo: Copy GoogleService-Info.plist
setup->>LocalRepo: Validate git ignore status
LocalRepo-->>setup: Ignore status confirmed
setup-->>Developer: Setup complete ✓
deactivate setup
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🌱 작업한 내용
신규 머신/회사 환경에서도 한 줄로 빌드 가능 상태가 되도록 셋업 자동화.
./bin/setup이 하는 일:ghCLI / 인증 / 디렉토리 위치 사전 체크thingineeer/thingineeer-env를 임시 디렉토리에--depth=1클론Runnect-env/의 비밀 파일 3종을 메인 레포 정해진 경로로 복사Config.swift→Runnect-iOS/Runnect-iOS/Network/Foundation/Config.swiftAdConfig.swift→Runnect-iOS/Runnect-iOS/Network/Foundation/AdConfig.swiftGoogleService-Info.plist→Runnect-iOS/Runnect-iOS/GoogleService-Info.plist.gitignore에 의해 추적 해제 상태인지 검증🌱 PR Point
gh repo clone thingineeer/thingineeer-env가 권한 없는 계정에서는 자동 실패. 별도 비밀번호/토큰 관리 불필요 — gh CLI 본인 인증 그대로 활용GoogleService-Info.plist가 백업 누락된 상황을 발견했었음. 셋업 스크립트가 3종 +.gitignore검증까지 강제성과 기록
Summary by CodeRabbit
New Features
Documentation