Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Commit

Permalink
ci(repo): automerge patch based updates
Browse files Browse the repository at this point in the history
Configure dependabot to auto merge patch based dependencies

Auto merge patch based dependendabot updates, add auto approve step to pull request check workflow to auto approve dependabot based PR's.

This requires; adding `dependabot-preview` bot to allow pushing to matching protected branches.

[dependabot-preview settings](https://user-images.githubusercontent.com/605483/71324055-8caf7180-24da-11ea-94b5-d93f029b3e1a.png)

[gh-34]
  • Loading branch information
Michael Olukoya authored and MikeyBeLike committed Mar 27, 2020
1 parent 8ffbfba commit 7f6dc42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ update_configs:
directory: '/'
update_schedule: 'weekly'
version_requirement_updates: increase_versions
automerged_updates:
- match:
dependency_type: 'all'
update_type: 'semver:patch'
default_labels:
- '🤖 Dependency update'
commit_message:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ jobs:
path: ./annotations.json
title: Annotation Test
token: ${{ secrets.GITHUB_TOKEN }}
- uses: hmarr/auto-approve-action@v2.0.0
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 7f6dc42

Please sign in to comment.