Skip to content

fix: pass --repo to mutating gh pr commands in dependabot merger script - #4825

Open
oksanaphmn wants to merge 1 commit into
BuilderIO:mainfrom
oksanaphmn:main
Open

fix: pass --repo to mutating gh pr commands in dependabot merger script#4825
oksanaphmn wants to merge 1 commit into
BuilderIO:mainfrom
oksanaphmn:main

Conversation

@oksanaphmn

@oksanaphmn oksanaphmn commented Aug 27, 2026

Copy link
Copy Markdown

Fixed a critical bug where mutating gh pr commands could resolve the repository from the current git context instead of BuilderIO/builder. Added a shared REPO constant and passed --repo=${REPO} to all mutating commands to ensure they always target the correct repository.


Note

Low Risk
Dev-only maintenance script change with no production runtime impact; reduces risk of approving or merging the wrong repository when run outside the builder checkout.

Overview
Fixes the dependabot PR merger so approve, auto-merge, admin force-merge, and Dependabot rebase comment steps always run against BuilderIO/builder instead of whatever repo gh infers from the current working directory.

Introduces a shared REPO constant and adds --repo=${REPO} to those mutating gh pr invocations. PR discovery already scoped the repo; this aligns write operations with that behavior.

Reviewed by Cursor Bugbot for commit 77254f9. Bugbot is set up for automated code reviews on this repo. Configure here.

Mutating commands (review/merge/comment) resolved the target repo from
git context instead of the explicit BuilderIO/builder scope used for
search. Could target the wrong repo/PR if run outside this repo's
git context, especially risky for the --admin force-merge path.
@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 77254f9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@builder-io-integration

Copy link
Copy Markdown
Contributor

Review Agent skipped this PR — @oksanaphmn doesn't have a Builder seat in this space.

If you're @oksanaphmn: you may already have a seat under a different GitHub account. Reconnect GitHub

If you're an admin: Add @oksanaphmn to this space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant