Skip to content

Commit

Permalink
chore(bots): automate dependency management routine
Browse files Browse the repository at this point in the history
- Make dependabot target its own branch, putting all dep changes there
- Have mergify manage dependabot by approving and commanding it when
  all tests pass and the change is not a major change
  • Loading branch information
LoneRifle committed Apr 28, 2021
1 parent d812641 commit c617b5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ updates:
interval: "daily"
commit-message:
prefix: "chore(deps):"
target-branch: "dependabot"
12 changes: 12 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pull_request_rules:
- name: command dependabot to squash and merge
conditions:
- 'author=dependabot[bot]'
- '#check-failure=0'
- 'title~=bump [^\s]+ from ([\d]+)\..+ to \1\.'
- 'base=dependabot'
actions:
review:
type: APPROVE
comment:
message: "@dependabot squash and merge"

0 comments on commit c617b5c

Please sign in to comment.