Repository navigation
버전 번호를 base 기준으로 자동 계산하는 bump-version 스크립트 - #127
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EQ8Gz2nHcHM4FENndwKiiG
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.
Requested by 이동규 · project thread
요약
PR마다 버전을 손으로 정하다 병렬 PR과 충돌해 CI
version검사가 반복 실패(#125, #126)하던 문제를, 숫자를 base 기준으로 계산하는 스크립트로 없앱니다.이유
다른 PR이 먼저 머지되면 내 PR의 숫자가 base와 같거나 낮아져 실패합니다. 판단을 없애고 계산으로 바꾸면 리베이스 뒤에도 안전합니다.
변경 내용
scripts/bump-version.js추가: 배포 파일이 바뀌었고 현재 버전이 base보다 높지 않으면 base patch + 1로plugin.json과marketplace.json을 함께 맞춥니다. 서식은 유지하고, 다시 실행해도 결과가 같습니다.scripts/lib/version-check.js에targetVersion추가.check-version.js실패 메시지에 고치는 명령을 안내.CONTRIBUTING.md,agents/worker.md에 "숫자를 직접 정하지 말고 스크립트를 실행" 규칙 추가.테스트
node --test tests/*.test.js617개 중 616 통과, 1 건너뜀, 실패 없음. 새tests/bump-version.test.js는 실제 git 이력으로 실패 → bump → 통과 → 재실행 시 변화 없음을 확인합니다.위험과 영향
CI 검사 자체는 그대로입니다. 스크립트는 로컬에서만 파일을 바꿉니다.
Generated by Claude Code