Skip to content

bug: Dependabot opens dependency PRs against main instead of dev #1341

Closed

Description

@vybe

Summary

Several Dependabot PRs open against main instead of dev, violating the SDLC (all work flows feature/* → dev → main). Because Dependabot recreates a PR when its base is changed, these can't be retargeted by hand — the fix must set target-branch: dev in .github/dependabot.yml for the affected ecosystems.

Context

Observed during PR review (2026-06-24): #1324 (vite, /tests/git-sync), #1298 (form-data, /src/mcp-server), and #1249 (vite, /src/frontend, since closed) all opened against main. Retargeting manually triggers a Dependabot recreate-loop, so the fix belongs in config. The /src/mcp-server form-data bump is a security patch, so the misroute also delays a security fix from reaching dev.

Acceptance Criteria

  • .github/dependabot.yml sets target-branch: dev for every updates entry currently defaulting to main (at minimum /tests/git-sync, /src/mcp-server, /src/frontend)
  • A newly-opened Dependabot PR targets dev (verify on the next scheduled run or a manual trigger)
  • Open Dependabot PRs still pointing at main are closed so Dependabot reopens them against dev under the new config
  • No ecosystem is left defaulting to main

Technical Notes

Activity

  1. added
    priority-p2
    type-bug
    theme-infrastructure
    complexity-low
    status-ready
    on Jun 24, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Jun 25, 2026
  3. self-assigned this
    on Jun 25, 2026
  4. dolho commented on Jun 25, 2026

    @dolho
    Contributor

    Resolution: config already correct; residual is a GitHub limitation, not a config bug

    Investigated against the repo + the open Dependabot PRs. The config fix this issue asks for is already in place, and the remaining symptom is by-design GitHub behavior target-branch can't change.

    AC1 / AC4 — already satisfied. .github/dependabot.yml sets target-branch: dev on all 6 ecosystem entries (github-actions, npm ×3, pip, docker), identical on main and dev (no diff). Added by #1243 / 8f3822f1 and live on main since v0.6.1 (2026-06-12). Newer version-update PRs correctly target dev (e.g. #1331, #1330, #1328).

    The two PRs still on main are security updates, not config misroutes:

    Dependabot security updates ignore target-branch and always open against the default branch (main) by GitHub design — exactly as the config comment already noted. Closing them (AC3) triggers the recreate loop this issue itself warns about, and they'd reopen against main. So AC3 isn't achievable for these two.

    What to do with #1298 / #1324: let them merge to main as security fixes (they fix main's vulnerabilities); they reach dev on the next release back-merge, or cherry-pick the bump into a dev PR if urgent.

    Doc follow-up: #1346 sharpens the dependabot.yml header comment so a security PR against main is clearly flagged as expected, not re-filed as a config bug.

    Closing as resolved — the config bug was fixed by #1243 / v0.6.1; the residual is an accepted GitHub limitation.

  5. removed
    status-in-progress
    on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p2theme-infrastructuretype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions