Skip to content

Commit

Permalink
add update Mergify action
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Jun 30, 2022
1 parent 8bb7409 commit c27cd43
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package org.typelevel.sbt.mergify

import io.circe.Encoder
import io.circe._
import io.circe.syntax._

import scala.annotation.nowarn
Expand All @@ -31,6 +31,7 @@ object MergifyAction {
case merge: Merge => merge.asJson
case label: Label => label.asJson
case requestReviews: RequestReviews => requestReviews.asJson
case update: Update => update.asJson
case _ => sys.error("should not happen")
}

Expand Down Expand Up @@ -69,6 +70,12 @@ object MergifyAction {
Encoder.forProduct1("users")(_.users)
}

final case class Update() extends MergifyAction

object Update {
implicit def encoder: Encoder[Update] = Encoder[JsonObject].contramap(_ => JsonObject.empty)
}

@nowarn("cat=unused")
private[this] object Dummy extends MergifyAction
}

0 comments on commit c27cd43

Please sign in to comment.