Skip to content

feat: Add Dependabot auto-merge workflow - #287

Merged
Marenz merged 4 commits into
frequenz-floss:v1.x.xfrom
Marenz:add-dependabot-workflow
Jan 26, 2026
Merged

Marenz merged 4 commits into
frequenz-floss:v1.x.xfrom
Marenz:add-dependabot-workflow

Conversation

@Marenz

@Marenz Marenz commented Oct 20, 2025

Copy link
Copy Markdown
Contributor

This PR adds a GitHub workflow to automatically manage Dependabot pull requests.

This workflow uses the ad/dependabot-auto-approve@v1 GitHub Action, which may need to be explicitly whitelisted in the organization's settings.

@Marenz
Marenz requested review from Copilot and removed request for Copilot October 20, 2025 13:20
@Marenz
Marenz requested a review from a team as a code owner October 20, 2025 13:20
@github-actions github-actions Bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Oct 20, 2025
@Marenz
Marenz force-pushed the add-dependabot-workflow branch from 155e353 to f0ca2ac Compare October 20, 2025 13:24

@llucax llucax left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Needs changes to work with protobuf/grpc updates.

@Marenz
Marenz force-pushed the add-dependabot-workflow branch from f0ca2ac to 40d9468 Compare October 22, 2025 10:04
Copilot AI review requested due to automatic review settings October 22, 2025 10:04

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

This PR introduces automated management of Dependabot pull requests through a new GitHub Actions workflow that approves and merges dependency updates automatically.

Key changes:

  • Added a GitHub workflow that triggers on all pull requests from Dependabot
  • Configured auto-approval and auto-merge for all dependency types using the ad/dependabot-auto-approve@v1 action

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .github/workflows/auto-dependabot.yaml Outdated
Comment on lines +13 to +15
- uses: ad/dependabot-auto-approve@v1
with:
dependency-type: 'all'

Copilot AI Oct 22, 2025

Copy link

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 without validation could introduce breaking changes or security vulnerabilities. Consider restricting auto-merge to patch updates only, or implement additional checks (e.g., test suite passing) before merging.

Suggested change
- uses: ad/dependabot-auto-approve@v1
with:
dependency-type: 'all'
- name: Run tests
run: |
npm ci
npm test
- uses: ad/dependabot-auto-approve@v1
with:
dependency-type: 'production'
update-type: 'version-update:semver-patch'

Copilot uses AI. Check for mistakes.
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
Use latest commit (d60f853) with ignore-regex-pr-title feature to skip
grpc and protobuf updates that require manual intervention.

Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
@Marenz
Marenz force-pushed the add-dependabot-workflow branch from 0691fad to 99ca855 Compare January 26, 2026 11:31
@github-actions github-actions Bot added the part:docs Affects the documentation label Jan 26, 2026
@Marenz
Marenz changed the base branch from v0.x.x to v1.x.x January 26, 2026 11:33
@github-actions github-actions Bot added the part:protobuf Affects the protocol buffer definition files label Jan 26, 2026
@Marenz
Marenz force-pushed the add-dependabot-workflow branch from 9533c06 to bfc494e Compare January 26, 2026 11:39
@llucax

llucax commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

WARNING - griffe: /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/frequenz/api/dispatch/v1/dispatch_pb2_grpc.py:77: No type or annotation for parameter 'channel'

It looks like for API projects we need to add this to mkdocs.yaml:

plugins:
  # ...
  - mkdocstrings:
      default_handler: python
      handlers:
        python:
          options:
            # ...
            docstring_options:
              warn_missing_types: false

- Disable missing type warnings in docstrings (docstring_options.warn_missing_types: false)
  to suppress warnings from generated gRPC code without type annotations
- Remove unused google/protobuf/empty.proto import from dispatch.proto

This fixes the documentation generation CI failure caused by griffe
detecting missing type annotations in generated gRPC Python code.

Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
@Marenz
Marenz force-pushed the add-dependabot-workflow branch from bfc494e to a7c8523 Compare January 26, 2026 13:29
llucax
llucax previously approved these changes Jan 26, 2026
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jan 26, 2026
@Marenz
Marenz added this pull request to the merge queue Jan 26, 2026
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
Merged via the queue into frequenz-floss:v1.x.x with commit 417c8f2 Jan 26, 2026
@Marenz
Marenz deleted the add-dependabot-workflow branch January 26, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants