Skip to content

Commit

Permalink
Automatically merge PRs by the Scala Steward dev account
Browse files Browse the repository at this point in the history
  • Loading branch information
fthomas committed Jan 8, 2024
1 parent 600d2a3 commit d9c9f31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
pull_request_rules:
- name: label scala-steward's PRs
conditions:
- author=scala-steward
- or:
- author=scala-steward
- author=scala-steward-dev
actions:
label:
add:
- dependency-update
remove: []
- name: merge scala-steward's PRs
conditions:
- author=scala-steward
- or:
- author=scala-steward
- author=scala-steward-dev
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@11)
actions:
Expand Down
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ ThisBuild / githubWorkflowBuild :=
)

ThisBuild / mergifyPrRules := {
val authorCondition = MergifyCondition.Custom("author=scala-steward")
val authorCondition = MergifyCondition.Or(
List(
MergifyCondition.Custom("author=scala-steward"),
MergifyCondition.Custom("author=scala-steward-dev")
)
)
Seq(
MergifyPrRule(
"label scala-steward's PRs",
Expand Down

0 comments on commit d9c9f31

Please sign in to comment.