Repository navigation
finalize-release に Ruleset 一時緩和つき sync PR マージ手順を追加 - #6297
Merged
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Changesfinalize-release スキルへの merge commit マージ対応追加
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
1 of 9 tasks
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.
概要
finalize-releaseスキルに、devブランチの Ruleset が squash マージのみ許可(allowed_merge_methods: ["squash"])の場合に sync PR(dev<-master)を merge commit でマージできない問題への対処手順を組み込みました。sync PR は履歴整合のため merge commit が必須(squash すると merge commit が潰れる。PR #5838 / #5840 の教訓)ですが、Ruleset がそれを阻むため、Ruleset を一時的に緩めて merge commit でマージし、成否に関わらず必ず元へ復元するフローを追加しています。変更の種類
変更内容
.claude/skills/finalize-release/SKILL.mdを更新:allowed_merge_methodsとruleset_idを先読みし、「マージ時に緩和が必要か」をプランに記録。リモート削除済み+ローカル枝残存時の安全判定の補足も追加。gh pr merge --merge→ 必ず復元」を規定。緩和→マージ→復元を 1 つの bash 呼び出しに束ねset +eで復元を無条件実行、2 親 merge commit の検証、一時ファイル削除、ローカル dev の ff 追従まで明記。/tmp不使用・force/admin マージ禁止」を不変条件として明文化。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること省略: コード変更なし(
.claude/配下のスキル文書のみの変更で、アプリ挙動・コード本体パスに影響しないため lint / test / typecheck は対象外)。関連Issue
スクリーンショット(任意)
Summary by CodeRabbit