Repository navigation
feat: Add Dependabot auto-merge workflow - #287
Conversation
155e353 to
f0ca2ac
Compare
llucax
left a comment
There was a problem hiding this comment.
Needs changes to work with protobuf/grpc updates.
f0ca2ac to
40d9468
Compare
There was a problem hiding this comment.
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@v1action
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| - uses: ad/dependabot-auto-approve@v1 | ||
| with: | ||
| dependency-type: 'all' |
There was a problem hiding this comment.
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.
| - 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' |
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>
0691fad to
99ca855
Compare
9533c06 to
bfc494e
Compare
It looks like for API projects we need to add this to 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>
bfc494e to
a7c8523
Compare
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
This PR adds a GitHub workflow to automatically manage Dependabot pull requests.
This workflow uses the
ad/dependabot-auto-approve@v1GitHub Action, which may need to be explicitly whitelisted in the organization's settings.