Skip to content

Commit

Permalink
add request_reviews Mergify action
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Jun 30, 2022
1 parent b2cabec commit 0e2b95c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ object MergifyAction {
implicit def encoder: Encoder[MergifyAction] = Encoder.instance {
case merge: Merge => merge.asJson
case label: Label => label.asJson
case requestReviews: RequestReviews => requestReviews.asJson
case _ => sys.error("should not happen")
}

Expand Down Expand Up @@ -57,6 +58,15 @@ object MergifyAction {
}
}

final case class RequestReviews(users: List[String] = Nil) extends MergifyAction {
override private[mergify] def name = "request_reviews"
}

object RequestReviews {
implicit def encoder: Encoder[RequestReviews] =
Encoder.forProduct1("users")(_.users)
}

private[this] object Dummy extends MergifyAction

}

0 comments on commit 0e2b95c

Please sign in to comment.