[fix-publish-workflow] auto-publish blog drafts on merge (fetch base.sha + squash-safe) - #102
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesPublish Blog Draft Workflow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merged [blog-draft] PRs were not publishing. The find-drafts step diffs base.sha..head.sha but the checkout was shallow and base.sha was never fetched -> diff errored, '|| true' swallowed it -> 0 drafts -> 'Nothing to commit'. محضر اجتماع (#98) needed a manual publish (#101).
Fix: checkout fetch-depth: 0 (base.sha in history) + explicit fetch of head.sha (squash-safe) + --diff-filter=AM. Now every merged [blog-draft] PR auto-publishes.
🤖 Generated with Claude Code
Summary by CodeRabbit