Skip to content

chore: add postMergeReverts to upstream merge history and skill workflow#272

Merged
takaokouji merged 1 commit into
developfrom
chore/update-merge-history-post-revert
Mar 11, 2026
Merged

chore: add postMergeReverts to upstream merge history and skill workflow#272
takaokouji merged 1 commit into
developfrom
chore/update-merge-history-post-revert

Conversation

@takaokouji
Copy link
Copy Markdown

Summary

PR #271 で scratch-blocks v2.0.3 → v1.3.0 にダウングレードした結果、.upstream-merge-history.jsonlastMerge が示す「取り込み済み」状態と実際のコードに乖離が生じた。

次回の upstream merge でスムーズにコンフリクト解決できるよう、以下を対応:

  • .upstream-merge-history.jsonpostMergeReverts フィールドを追加し、revert の範囲・理由・影響ファイル・次回マージ時のガイダンスを記録
  • upstream-merge skill の全フェーズを postMergeReverts 対応に更新

Changes

.upstream-merge-history.json

.claude/skills/upstream-merge/SKILL.md

  • postMergeReverts の JSON スキーマをドキュメント化
  • フィールドの意味と運用ルールを記載
  • ワークフロー進め方に revert 確認ステップを追加

.claude/skills/upstream-merge/phase1-prepare.md

  • Step 1.3: postMergeReverts の存在チェックとユーザーへの方針確認フロー追加
  • Step 1.4: upstream diff と affectedAreas の重複確認追加

.claude/skills/upstream-merge/phase2-conflicts.md

  • 方針A(upstream 受け入れ)と方針B(revert 維持)の具体的なコンフリクト解決手順を追加

.claude/skills/upstream-merge/phase4-finalize.md

  • merge history 更新時の postMergeReverts 処理ルール追加(方針に応じてクリアまたは維持)

Record scratch-blocks v2→v1.3.0 downgrade (PR #271) as a post-merge revert
in .upstream-merge-history.json so the next upstream merge can handle
affected files correctly.

Update upstream-merge skill (SKILL.md, phase1, phase2, phase4) to:
- Document postMergeReverts JSON schema
- Check for reverts in Phase 1 and prompt user for resolution strategy
- Add conflict resolution guidance for both "accept upstream" and
  "maintain revert" strategies in Phase 2
- Handle postMergeReverts cleanup in Phase 4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@takaokouji takaokouji merged commit 35c66ed into develop Mar 11, 2026
9 checks passed
@takaokouji takaokouji deleted the chore/update-merge-history-post-revert branch March 11, 2026 01:30
@github-actions
Copy link
Copy Markdown

github-actions Bot pushed a commit that referenced this pull request Mar 11, 2026
…merge-history-post-revert

chore: add postMergeReverts to upstream merge history and skill workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant