Skip to content

chore: switch from Dependabot to Renovate and automate dependency changelog - #513

Merged
c-vigo merged 16 commits into
devfrom
chore/509-switch-dependabot-to-renovate
Apr 10, 2026
Merged

c-vigo merged 16 commits into
devfrom
chore/509-switch-dependabot-to-renovate

Conversation

@c-vigo

@c-vigo c-vigo commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Description

Implements #509 (switch from Dependabot to Renovate for dependency updates, including template paths Dependabot could not scan) and #506 (automatic CHANGELOG.md updates on Renovate PRs via pull_request_target and renovate-changelog-pr). Adds .vig-os + resolve-image so sync-issues and sync-main-to-dev run in the pinned devcontainer image; install.sh / init-workspace.sh resolve GITHUB_REPOSITORY for templated renovate.json.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • 27 files, ~1164 insertions / ~247 deletions vs dev (includes merge commit from origin/dev).
  • Renovate / Dependabot: Remove root and workspace dependabot.yml; add renovate.json, assets/workspace/renovate.json, renovate-default.json, smoke-test renovate.json; update CODEOWNERS.
  • CI image pinning: Add .vig-os, .github/actions/resolve-image/, release.yml step to bump DEVCONTAINER_VERSION on final release; sync-issues.yml / sync-main-to-dev.yml use resolved GHCR tag, safe.directory, drop setup-env / inlined retry; sync branch creation uses git push.
  • Workspace init: parse-github-remote-lib.sh, Containerfile placeholder manifest, install.sh --repo, init-workspace.sh + BATS/install/conftest updates.
  • Changelog automation: renovate_changelog_pr.py, tests, console script in pyproject.toml, root + workspace renovate-changelog.yml; scripts/manifest.toml syncs new paths.
  • Docs: CHANGELOG.md and synced assets/workspace/.devcontainer/CHANGELOG.md.

Changelog Entry

Added

  • Renovate changelog automation (#506)
    • renovate-changelog-pr CLI tool parses Renovate PR metadata and inserts Keep-a-Changelog entries under ## Unreleased
    • renovate-changelog workflow runs on pull_request_target for renovate[bot] PRs in both upstream and workspace template
  • Devcontainer image version pinning (#509)
    • .vig-os file at repo root declares DEVCONTAINER_VERSION as the single source of truth for CI container image tags
    • resolve-image composite action resolves the image tag and validates it exists in GHCR
  • GITHUB_REPOSITORY resolution for workspace init (#509)
    • parse-github-remote-lib.sh extracts owner/repo from HTTPS, SSH, and git@ GitHub URLs
    • install.sh gains --repo flag; init-workspace.sh replaces {{GITHUB_REPOSITORY}} in workspace template files

Changed

  • Switch from Dependabot to Renovate (#509)
    • Replace .github/dependabot.yml with renovate.json and shared renovate-default.json preset
    • Renovate covers all ecosystems previously tracked (github-actions, pip, npm, docker) plus template directories not reachable by Dependabot
  • Sync workflows run in devcontainer image (#509)
    • sync-issues and sync-main-to-dev use resolve-image and run inside the pinned devcontainer, removing the setup-env composite action dependency and the inlined retry helper
    • sync-main-to-dev creates sync branches via git push instead of the GitHub refs API

Removed

  • Dependabot configuration (#509)
    • Delete .github/dependabot.yml and assets/workspace/.github/dependabot.yml

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A (CI and scripted tests cover changes; Renovate/changelog workflow validates in GitHub after merge).

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

  • Branch merged latest origin/dev before PR (includes unrelated doc sync under docs/pull-requests/).
  • Commit 6 subject is docs: (not docs(changelog):) due to commit-msg scope allowlist.

Refs: #509, #506

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates automated dependency updates from Dependabot to Renovate and adds automation to keep CHANGELOG.md updated for Renovate PRs, while also pinning CI container jobs to a repo-declared devcontainer image version.

Changes:

  • Replace Dependabot configs with Renovate configs (root + workspace/smoke-test templates) and add a shared Renovate preset.
  • Add Renovate-driven changelog automation via a new renovate-changelog-pr CLI and pull_request_target workflows (root + workspace template).
  • Introduce .vig-os + resolve-image to resolve/pin the devcontainer image tag for containerized CI workflows; extend workspace init/install to resolve GITHUB_REPOSITORY.

Reviewed changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tests/conftest.py Adjusts init-workspace test harness for new GITHUB_REPOSITORY handling and an added Renovate prompt stage.
tests/bats/install.bats Adds BATS coverage for install.sh --repo and default GITHUB_REPOSITORY behavior.
tests/bats/init-workspace.bats Adds BATS coverage for parsing GitHub remotes and resolving GITHUB_REPOSITORY.
scripts/manifest.toml Updates workspace sync manifest to include resolve-image action and renovate-changelog workflow; drops Dependabot sync.
renovate.json Adds root Renovate configuration extending the shared preset.
packages/vig-utils/tests/test_renovate_changelog_pr.py Adds unit tests for Renovate PR parsing and changelog insertion behavior.
packages/vig-utils/src/vig_utils/renovate_changelog_pr.py Implements Renovate PR metadata parsing + Keep-a-Changelog insertion CLI.
packages/vig-utils/pyproject.toml Exposes renovate-changelog-pr as a console script.
install.sh Adds --repo and auto-detection to supply GITHUB_REPOSITORY into init-workspace.sh --no-prompts.
Containerfile Extends placeholder manifest generation to include {{GITHUB_REPOSITORY}}.
CHANGELOG.md Documents Renovate migration, changelog automation, and image pinning changes.
assets/workspace/renovate.json Adds workspace template Renovate config using {{GITHUB_REPOSITORY}} for preset resolution.
assets/workspace/.github/workflows/renovate-changelog.yml Adds workspace-template workflow to auto-append changelog entries for Renovate PRs.
assets/workspace/.github/renovate-default.json Adds shared Renovate preset with grouping/semantic commit conventions.
assets/workspace/.github/dependabot.yml Removes workspace template Dependabot configuration.
assets/workspace/.devcontainer/CHANGELOG.md Syncs changelog content into workspace template copy.
assets/smoke-test/renovate.json Adds Renovate configuration for the smoke-test template.
assets/parse-github-remote-lib.sh Adds reusable parsing + interactive/non-interactive resolution for GITHUB_REPOSITORY.
assets/init-workspace.sh Preserves renovate.json, resolves GITHUB_REPOSITORY, and replaces the new placeholder during init.
.vig-os Adds repo-level devcontainer version source-of-truth for CI container image resolution.
.github/workflows/sync-main-to-dev.yml Runs sync workflow inside pinned devcontainer image and switches branch creation to git push.
.github/workflows/sync-issues.yml Runs sync workflow inside pinned devcontainer image and updates git safe.directory handling.
.github/workflows/renovate-changelog.yml Adds root workflow to auto-append changelog entries for Renovate PRs.
.github/workflows/release.yml Updates .vig-os to the final release version during finalization.
.github/dependabot.yml Removes root Dependabot configuration.
.github/CODEOWNERS Updates ownership from Dependabot config to Renovate config/preset.
.github/actions/resolve-image/action.yml Adds composite action to resolve/validate the CI devcontainer image tag from .vig-os.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread renovate.json Resolved
Comment thread assets/workspace/renovate.json Resolved
Comment thread install.sh Resolved
Comment thread assets/parse-github-remote-lib.sh Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 27 out of 27 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread install.sh Resolved
Comment thread assets/parse-github-remote-lib.sh Resolved
@c-vigo
c-vigo enabled auto-merge April 10, 2026 12:01
@c-vigo
c-vigo merged commit 901e3df into dev Apr 10, 2026
11 checks passed
@c-vigo
c-vigo deleted the chore/509-switch-dependabot-to-renovate branch April 10, 2026 12:06
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