Skip to content

Conversation

chrisbbreuer
Copy link
Member

@chrisbbreuer chrisbbreuer commented Oct 7, 2025

This PR contains the following updates:

github-actions

Action Change Type Files
oven-sh/setup-bun v2 β†’ v2.0.2 🟒 patch release.yml

Release Notes

oven-sh/setup-bun

v2 β†’ v2.0.2

Visit oven-sh/setup-bun for release notes.


πŸ“Š Package Statistics

  • oven-sh/setup-bun: GitHub Action for workflow automation

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Buddy πŸ€–

Copy link

netlify bot commented Oct 7, 2025

❌ Deploy Preview for stacks-buddy failed. Why did it fail? β†’

Name Link
πŸ”¨ Latest commit b31e3ab
πŸ” Latest deploy log https://app.netlify.com/projects/stacks-buddy/deploys/68ee91076ea5cb00089a73fb

Copy link

pkg-pr-new bot commented Oct 7, 2025

Open in StackBlitz

npm i https://pkg.pr.new/stacksjs/buddy-bot@384

commit: b31e3ab

chrisbbreuer added a commit that referenced this pull request Oct 15, 2025
This critical fix prevents the "hundreds of deleted PRs" problem by
ensuring PR branches are kept up-to-date with main before applying
new dependency updates.

Previously, when updating an existing PR:
1. Checkout main and generate updates
2. Commit updates to PR branch (WITHOUT merging main first)

This caused PR branches to fall behind main, creating merge conflicts
and causing buddy-bot to close and recreate PRs instead of updating them.

Now the flow is:
1. Checkout main and generate updates
2. Checkout PR branch
3. Merge main into PR branch to resolve conflicts
4. Apply the new dependency updates
5. Commit and push

The merge uses a conflict resolution strategy:
- First tries a clean merge
- If conflicts occur, retries with '-X theirs' to accept main's changes
- Then our file updates overwrite with correct dependency versions

This ensures existing PRs like #384 are properly updated instead of
being closed and recreated, preventing hundreds of deleted PRs over time.

Fixes the issue where PR #384 has CONFLICTING merge state.

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
chrisbbreuer added a commit that referenced this pull request Oct 15, 2025
This completes the fix for the "hundreds of deleted PRs" problem by ensuring
PR branches ALWAYS stay up-to-date with main, even when there are no file
content differences to commit.

Previously:
- Detected no content differences between branches
- Skipped calling commitChanges entirely
- PR branch never got merged with main
- PR stayed in CONFLICTING state (e.g., PR #384)

Now:
- Always calls commitChanges, even with no content differences
- When no changes: commits with empty file array and message "chore: merge main to keep branch up-to-date"
- This triggers the merge logic in commitChangesWithGit
- PR branches stay current with main, preventing CONFLICTING status

This implements the user's directive: "yes always do that when possible!"
to always merge main into PR branches regardless of file content differences.

Together with the previous commit that added merge logic to commitChangesWithGit,
this ensures existing PRs are properly updated instead of being closed and recreated.

Fixes the issue where PR #384 has CONFLICTING merge state.

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@chrisbbreuer chrisbbreuer deleted the buddy-bot/update-non-major-updates-1759810080695 branch October 15, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant