From c617b5c848afaa0e77df5d615fce8cd9299092ae Mon Sep 17 00:00:00 2001 From: LoneRifle Date: Wed, 28 Apr 2021 03:21:30 +0000 Subject: [PATCH] chore(bots): automate dependency management routine - 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 --- .github/dependabot.yml | 1 + .github/mergify.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .github/mergify.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e55de9b..14e8d1a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,3 +11,4 @@ updates: interval: "daily" commit-message: prefix: "chore(deps):" + target-branch: "dependabot" diff --git a/.github/mergify.yml b/.github/mergify.yml new file mode 100644 index 0000000..d1db6a3 --- /dev/null +++ b/.github/mergify.yml @@ -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" \ No newline at end of file