Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCMD committed Jan 6, 2024
1 parent 2d0c34a commit 5ede9fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.1")
addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta41")
addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta41")
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import scala.scalajs.js
import typings.octokitWebhooksTypes.mod.PullRequestSynchronizeEvent
import typings.octokitWebhooksTypes.mod.PushEvent

import fs2.io.net.Network
import io.circe.generic.auto.*
import org.http4s.*
import org.http4s.ember.client.EmberClientBuilder
import org.http4s.circe.*
import fs2.io.net.Network
import org.http4s.ember.client.EmberClientBuilder

object GitHubCacheRestoration {
def createInstr[F[_]: Async]()(using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ package com.github.chencmd.datapacklinter.ciplatform.ghactions.utils
import com.github.chencmd.datapacklinter.generic.AsyncExtra

import cats.effect.kernel.Async
import cats.implicits.*

import scala.scalajs.js

private trait ActionsGitHub extends js.Object {
val context: typings.actionsGithub.libContextMod.Context
}
import typings.actionsGithub.libContextMod.Context

object ActionsGitHub {
def getContext[F[_]: Async](): F[typings.actionsGithub.libContextMod.Context] = {
AsyncExtra.fromPromise(js.`import`[ActionsGitHub]("@actions/github")).map(_.context)
def getContext[F[_]: Async](): F[Context] = AsyncExtra.fromPromise {
js.dynamicImport {
import typings.actionsGithub.mod.context
context
}
}
}

0 comments on commit 5ede9fb

Please sign in to comment.