Use when merging multiple Dependabot PRs at once - creates a work branch, rebases Dependabot PRs onto it, runs tests, and merges to main
Dependabot PR을 일괄로 머지하는 워크플로우. 개별 머지 대신 작업 브랜치에 모아서 테스트 후 main에 반영한다.
Core principle: PR 조회 → 작업 브랜치 생성 → base 변경 후 머지 → 테스트 → main 머지
Announce at start: "batch-dependabot-merge 스킬을 사용하여 Dependabot PR을 일괄 처리합니다."
열려 있는 Dependabot PR을 확인한다.
gh pr list --search "author:app/dependabot" --state open
git checkout main
git pull origin main
git checkout -b feature/dependency-updates
git push -u origin feature/dependency-updates
gh pr create --title "chore: batch dependency updates" --body "Dependabot PR 일괄 적용"
각 Dependabot PR의 base를 작업 브랜치로 변경하고 머지한다.
# 각 PR에 대해 반복
gh pr edit <PR번호> --base feature/dependency-updates
gh pr merge <PR번호> --merge
git pull origin feature/dependency-updates
로컬에서 테스트를 실행하여 의존성 업데이트가 문제없는지 확인한다.
bundle exec rails test, npm test 등)테스트 통과 확인 후 작업 브랜치 PR을 main에 머지한다.
gh pr merge <작업브랜치PR번호> --merge
git checkout main
git pull origin main
git branch -d feature/dependency-updates