From 187dcfb464a1836b69d70c6b4d559a037c5d694e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dragutin=20Marjanovi=C4=87?= Date: Sat, 22 Apr 2023 19:24:58 +0200 Subject: [PATCH] Configure auto-approve, mergify and renovate bots (#171) --- .github/workflows/auto-approve.yml | 13 +++++++++++++ .mergify.yml | 8 ++++++++ renovate.json | 12 +++++++++--- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/auto-approve.yml create mode 100644 .mergify.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 000000000..ee5c062a8 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,13 @@ +name: Auto approve + +on: + pull_request_target + +jobs: + auto-approve: + runs-on: ubuntu-20.04 + steps: + - uses: hmarr/auto-approve-action@v3.2.1 + if: github.actor == 'scala-steward' || github.actor == 'renovate[bot]' + with: + github-token: "${{ secrets.AUTO_APPROVE_GITHUB_ACCESS_TOKEN }}" diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 000000000..c96290ceb --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,8 @@ +pull_request_rules: + - name: Merge Scala Steward's PRs + conditions: + - "author=scala-steward" + - "status-success=ci" + actions: + merge: + method: squash diff --git a/renovate.json b/renovate.json index 39a2b6e9a..a00ec7975 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,12 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" + "automerge": true, + "rebaseWhen": "conflicted", + "packageRules": [ + { + "matchManagers": [ + "sbt" + ], + "enabled": false + } ] }