Skip to content

Add Dependabot auto-merge workflow#236

Merged
Marenz merged 1 commit intofrequenz-floss:v1.x.xfrom
Marenz:add-dependabot-workflow
Nov 3, 2025
Merged

Add Dependabot auto-merge workflow#236
Marenz merged 1 commit intofrequenz-floss:v1.x.xfrom
Marenz:add-dependabot-workflow

Conversation

@Marenz
Copy link
Contributor

@Marenz Marenz commented Nov 3, 2025

Needs to be in v1.x.x

Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
@Marenz Marenz requested review from a team as code owners November 3, 2025 09:34
@github-actions github-actions bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:dispatcher labels Nov 3, 2025
@Marenz
Copy link
Contributor Author

Marenz commented Nov 3, 2025

old pr aimed at v0.x.x

@Marenz Marenz merged commit c830549 into frequenz-floss:v1.x.x Nov 3, 2025
8 checks passed
@Marenz Marenz deleted the add-dependabot-workflow branch November 3, 2025 09:35
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 adds a new GitHub Actions workflow to automatically manage Dependabot pull requests. The workflow automatically approves and merges all Dependabot PRs using the frequenz-floss/dependabot-auto-approve action.

  • Adds auto-approval and auto-merge functionality for all Dependabot PRs
  • Configures the workflow to use merge commits and add an 'auto-merged' label
  • Grants necessary permissions for contents and pull requests

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

@@ -0,0 +1,18 @@
name: Dependabot Auto Manage
on: pull_request
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

The workflow triggers on all pull_request events without restricting to specific activity types. This means it will run on opened, synchronize, reopened, and other PR events, potentially causing multiple approval/merge attempts. Consider specifying activity types like 'on: pull_request: types: [opened, synchronize]' to prevent unnecessary runs.

Suggested change
on: pull_request
on:
pull_request:
types: [opened, synchronize]

Copilot uses AI. Check for mistakes.
steps:
- uses: frequenz-floss/dependabot-auto-approve@v1.3.0
with:
dependency-type: 'all'
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

Auto-merging all dependency types including major updates could introduce breaking changes without review. Consider setting dependency-type to 'production:semver-patch' or 'production:semver-minor' to limit auto-merge to safer updates, consistent with the grouped update strategy in .github/dependabot.yml which treats major updates separately.

Suggested change
dependency-type: 'all'
dependency-type: 'production:semver-patch'

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:dispatcher part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant