Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
업스트림(
milind-soni/OpenMausBot) 병합 시 반복되는 브랜드 리네임 충돌 해소와 다단계 검증을 단일 CLI(scripts/sync-upstream.mjs)로 자동화하고 docs/brand-rename.md의 병합 절차를 갱신합니다.이유
0.1.157 -> 0.1.175동기화(PR chore(sync): merge upstream OpenMausBot 0.1.175 #42)에서 총 35.2분이 소요되었고, 이 중 **27.9분(79%)**이 131개 충돌 파일과 다단계 검증을 직렬로 처리하는 데 쓰였습니다.OpenMausBot->OpenMyBot) 또는 비겹침 3-way 병합으로 자동 해소 가능하며, 나머지 58개 의미 충돌에도 브랜드 리네임 노이즈가 섞여 있었습니다.변경
scripts/sync-upstream.mjs추가:status [--ref <ref>]: 업스트림 대비 버전·커밋 격차 및 진행 중 병합 상태를 JSON으로 출력.resolve [--dry-run] [--apply-brand]:base/theirs에brand-rename.mjs변환을 먼저 적용한 뒤 3-way 병합을 수행해brandOnly·cleanThreeWay충돌을 자동 스테이징하고, 남은 의미 충돌 파일은 브랜드 노이즈를 제거한 충돌 마커로 정리.deleted-in-fork/deleted-in-upstream/added-both/binary는 명시적 사유와 함께 분리 보고. 재실행 idempotent.verify [--update-goldens]:brand-rename --check,tsc(client/server),pnpm lint,pnpm i18n:check,pnpm check:electron, 포크 가드 vitest 스위트를 한 번에 실행해 JSON 요약 반환.docs/brand-rename.md:Merging upstream절차를scripts/sync-upstream.mjs기준으로 갱신.직접 검증 (Before / After)
Before (
0.1.157 -> 0.1.175수동 동기화, PR #42)git merge upstream/main직후 미병합 파일: 131개After (
scripts/sync-upstream.mjs실병합 검증)npx oxlint --deny-warnings scripts/sync-upstream.mjs: 0 errors, 0 warningsnode scripts/sync-upstream.mjs status --ref upstream/main:0.1.157vs0.1.175(forkAheadCommits: 95,upstreamBehindCommits: 1854) 정상 출력git merge --no-commit --no-ff upstream/main상태에서resolve실행:brandOnly: 51,cleanThreeWay: 16,semanticConflicts: 58,special(deleted-in-fork): 6)resolve재실행(idempotency):64 -> 0 auto, 64 remaining일치 확인 후git merge --abortnode scripts/sync-upstream.mjs verify: 단일 실행(~48초)으로 7개 항목 집계(tsc-client,tsc-server,lint,i18n,check-electron통과;main기존 Bitwarden 브랜드 문자열 2건은 정상 감지, 신규 파일 위반 0건)