Skip to content

Commit 2ff5e9a

Browse files
authored
Add Dependabot auto-merge workflow (#181)
## Summary - Add GitHub workflow to automatically approve and merge Dependabot PRs - Uses `merge` method for clean commit history
2 parents 5c74270 + bba4f13 commit 2ff5e9a

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto-merge Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
auto-merge:
12+
if: github.actor == 'dependabot[bot]'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Auto-merge Dependabot PR
16+
uses: frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1 # v1.3.2
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
merge-method: 'merge'

CODEOWNERS

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Each line is a file pattern followed by one or more owners.
22
# Owners will be requested for review when someone opens a pull request.
33

4-
# Fallback owner.
5-
# These are the default owners for everything in the repo, unless a later match
6-
# takes precedence.
7-
* @frequenz-floss/python-sdk-team
4+
# Only apply to source code directories to allow dependabot PRs that only
5+
# modify pyproject.toml to be auto-merged without requiring code owner approval.
6+
/{src,tests,docs,dist}/ @frequenz-floss/python-sdk-team

0 commit comments

Comments
 (0)