Skip to content

ci: keep dependabot-reqs in sync with main#77

Merged
Grol-DBT merged 1 commit into
BattletechModders:mainfrom
RogueTech-NightMareEdition:ci/sync-dependabot-reqs
May 24, 2026
Merged

ci: keep dependabot-reqs in sync with main#77
Grol-DBT merged 1 commit into
BattletechModders:mainfrom
RogueTech-NightMareEdition:ci/sync-dependabot-reqs

Conversation

@nx-thaddeusaid
Copy link
Copy Markdown
Contributor

What

Adds a GitHub Actions workflow (.github/workflows/sync-dependabot-reqs.yml) that merges main into dependabot-reqs on every push to main (plus manual workflow_dispatch).

Why

Dependabot computes its weekly updates against the manifests on its target branch (dependabot-reqs, configured in #76). If that branch drifts behind main, Dependabot evaluates stale package.json / lockfile. This keeps it current automatically.

Design notes

  • Merge, not rebase/force-push: dependabot-reqs is the base of open Dependabot PRs, so its tip must only advance — a force-push would churn those PRs and is blocked by branch protection.
  • Skips when dependabot-reqs already contains main (no empty commits).
  • Fails loudly on conflict (e.g. a manifest edited on both branches) rather than auto-resolving — a human should reconcile.
  • Inline git only, no third-party actions; contents: write, single-concurrency.

Depends on

🤖 Generated with Claude Code

Merge main into dependabot-reqs on every push to main (and on demand) so
Dependabot's weekly updates are computed against the latest manifests. Uses
merge rather than rebase/force-push because dependabot-reqs is the base of
open Dependabot PRs and its tip must only advance.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Grol-DBT Grol-DBT merged commit 26f8485 into BattletechModders:main May 24, 2026
3 checks passed
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.

2 participants