Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.9.3
36961cb4effdf367c0930fa540f01e14711ec84e
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.0.8"
version = "3.9.3"

runner.dialect = scala3

Expand Down
20 changes: 10 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Global / onChangedBuildSource := ReloadOnSourceChanges

lazy val root = (project in file("."))
.settings(
libraryDependencies += "dev.zio" %% "zio" % "2.0.15",
libraryDependencies += "dev.zio" %% "zio-test-sbt" % "2.0.15" % Test,
libraryDependencies += "dev.zio" %% "zio-test" % "2.0.15" % Test,
libraryDependencies += "dev.zio" %% "zio-config" % "3.0.7",
libraryDependencies += "dev.zio" %% "zio-config-magnolia" % "3.0.7",
libraryDependencies += "dev.zio" %% "zio-config-typesafe" % "3.0.7",
libraryDependencies += "dev.zio" %% "zio-logging" % "2.1.17",
libraryDependencies += "io.d11" %% "zhttp" % "2.0.0-RC11",
libraryDependencies += "dev.zio" %% "zio-json" % "0.5.0",
libraryDependencies += ("com.evolutiongaming" %% "crypto" % "2.0.1").cross(CrossVersion.for3Use2_13),
libraryDependencies += "dev.zio" %% "zio" % "2.0.15",
libraryDependencies += "dev.zio" %% "zio-test-sbt" % "2.0.15" % Test,
libraryDependencies += "dev.zio" %% "zio-test" % "2.0.15" % Test,
libraryDependencies += "dev.zio" %% "zio-config" % "3.0.7",
libraryDependencies += "dev.zio" %% "zio-config-magnolia" % "3.0.7",
libraryDependencies += "dev.zio" %% "zio-config-typesafe" % "3.0.7",
libraryDependencies += "dev.zio" %% "zio-logging" % "2.1.17",
libraryDependencies += "io.d11" %% "zhttp" % "2.0.0-RC11",
libraryDependencies += "dev.zio" %% "zio-json" % "0.5.0",
libraryDependencies += ("com.evolutiongaming" %% "crypto" % "2.0.1").cross(CrossVersion.for3Use2_13),
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ enum BlockType:
case section, divider

enum TextType:
case mrkdwn extends TextType
case mrkdwn extends TextType
case plain_text extends TextType

sealed abstract class Text(val `type`: TextType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ trait JobController {
}

case class JobControllerLiveControllerLive(job: Job) extends JobController {
val server: HttpApp[Any, Nothing] = Http.collectZIO[Request] {
case Method.POST -> !! / "gitlab-bot" / "job" / "run-apply-assignees" =>
for
_ <- ZIO.logDebug("run-apply-assignees was started through API...")
_ <- job.assignFreeMrs.forkDaemon
yield Response.status(Status.Ok)
val server: HttpApp[Any, Nothing] = Http.collectZIO[Request] { case Method.POST -> !! / "gitlab-bot" / "job" / "run-apply-assignees" =>
for
_ <- ZIO.logDebug("run-apply-assignees was started through API...")
_ <- job.assignFreeMrs.forkDaemon
yield Response.status(Status.Ok)
}

override def build(): HttpApp[Any, Nothing] = server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ trait MessageBuilder {
}

case class MessageBuilderLive(appConfig: AppConfig) extends MessageBuilder {
override def buildMrAssignmentMessage(assignees: List[(MRInfo, List[Teammate])]): Task[SlackMessage] = for
blocks <- ZIO.succeed(
override def buildMrAssignmentMessage(assignees: List[(MRInfo, List[Teammate])]): Task[SlackMessage] = for blocks <- ZIO.succeed(
assignees.flatMap { case (mrInfo, teammates) =>
List(
SectionBlock(
Expand Down