Skip to content

Conversation

@CybotTM
Copy link
Member

@CybotTM CybotTM commented Feb 2, 2026

Problem

Docker image digest bumps (e.g., php:8.5-alpine@sha256:abc...sha256:def...) weren't being auto-merged because they don't have a semver update type.

Example: PR #13 passed all checks but wasn't auto-merged.

Solution

Add package-ecosystem == 'docker' condition to auto-merge Docker digest updates alongside semver minor/patch updates.

if: |
  steps.metadata.outputs.update-type == 'version-update:semver-minor' ||
  steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
  steps.metadata.outputs.package-ecosystem == 'docker'

Test plan

  • Future Docker digest bump PRs from dependabot should auto-merge

Docker image digest bumps (e.g., php:8.5-alpine@sha256:abc → sha256:def)
don't have a semver update type, so they weren't being auto-merged.

Add package-ecosystem == 'docker' condition to also auto-merge these
safe updates.
Copilot AI review requested due to automatic review settings February 2, 2026 13:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Dependabot auto-merge workflow so that certain Docker updates (not just semver minor/patch updates) are automatically merged once checks pass.

Changes:

  • Renames the auto-merge step from “Auto-merge minor and patch updates” to “Auto-merge safe updates”.
  • Broadens the if: condition to auto-merge when the Dependabot update is semver minor/patch or when the package-ecosystem is docker.

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

Add guard to prevent auto-merging Docker major version updates (e.g.,
php:8 → php:9) while still allowing digest and minor/patch updates.
@CybotTM CybotTM enabled auto-merge February 2, 2026 13:23
@CybotTM CybotTM merged commit dcdde4b into main Feb 2, 2026
11 checks passed
@CybotTM CybotTM deleted the fix/auto-merge-docker-digests branch February 2, 2026 13:24
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