Skip to content

Commit

Permalink
Configure auto-approve, mergify and renovate bots (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
drmarjanovic authored Apr 22, 2023
1 parent 6bd805d commit 187dcfb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Auto approve

on:
pull_request_target

jobs:
auto-approve:
runs-on: ubuntu-20.04
steps:
- uses: hmarr/[email protected]
if: github.actor == 'scala-steward' || github.actor == 'renovate[bot]'
with:
github-token: "${{ secrets.AUTO_APPROVE_GITHUB_ACCESS_TOKEN }}"
8 changes: 8 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pull_request_rules:
- name: Merge Scala Steward's PRs
conditions:
- "author=scala-steward"
- "status-success=ci"
actions:
merge:
method: squash
12 changes: 9 additions & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"automerge": true,
"rebaseWhen": "conflicted",
"packageRules": [
{
"matchManagers": [
"sbt"
],
"enabled": false
}
]
}

0 comments on commit 187dcfb

Please sign in to comment.