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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- 25
steps:
- name: Checkout project
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand All @@ -78,7 +78,7 @@ jobs:
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v6.4.7

- name: Run Coursier Setup Action
uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9
uses: coursier/setup-action@f7be3eb3dcef84a4e16fc8cd75c87beb2e5cbcc9 # v2.0.2
with:
jvm: liberica:${{ matrix.jdk }}
apps: sbt
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

Expand All @@ -44,7 +44,7 @@ jobs:
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v6.4.7

- name: Run Coursier Setup Action
uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9
uses: coursier/setup-action@f7be3eb3dcef84a4e16fc8cd75c87beb2e5cbcc9 # v2.0.2
with:
jvm: liberica:11
apps: sbt
Expand All @@ -65,7 +65,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
ref: main
Expand All @@ -75,7 +75,7 @@ jobs:
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v6.4.7

- name: Run Coursier Setup Action
uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9
uses: coursier/setup-action@f7be3eb3dcef84a4e16fc8cd75c87beb2e5cbcc9 # v2.0.2
with:
jvm: liberica:17
apps: sbt
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ lazy val `sbt-github` = module
.enablePlugins(SbtPlugin)
.settings(scriptedLaunchOpts += s"-Dplugin.version=${version.value}")
.settings(libraryDependencies += "org.typelevel" %% "jawn-parser" % "1.6.0")
.settings(libraryDependencies += "org.scalameta" %% "munit" % "1.2.1" % Test)
.settings(libraryDependencies += "org.http4s" %% "http4s-dsl" % "0.23.33" % Test)
.settings(libraryDependencies += "org.scalameta" %% "munit" % "1.2.4" % Test)
.settings(libraryDependencies += "org.http4s" %% "http4s-dsl" % "0.23.34" % Test)
.settings(libraryDependencies += "org.http4s" %% "http4s-blaze-server" % "0.23.17" % Test)

lazy val `sbt-github-mdoc` = module
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ object SbtGithubMdocPlugin extends AutoPlugin {
Seq(
displayName := SbtGithubPlugin.info.value._2,
removeVersionTimestampInMdoc := true,
mdocVariables ++= Map(
mdocVariables ++= Map(
"ORGANIZATION" -> organization.value,
"NAME" -> displayName.value,
"REPO" -> repository.value.map(_.name).getOrElse(""),
Expand All @@ -107,7 +107,7 @@ object SbtGithubMdocPlugin extends AutoPlugin {
"COLLABORATORS" -> collaborators.value.markdownList,
"COLLABORATORS_LIST" -> collaborators.value.markdownList,
"COLLABORATORS_TABLE" -> collaborators.value.markdownTable,
"COPYRIGHT_OWNER" -> organizationHomepage.value
"COPYRIGHT_OWNER" -> organizationHomepage.value
.map(url => s"${organizationName.value} <$url>")
.getOrElse(organizationName.value)
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.8.2")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.9.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % sys.props("plugin.version"))
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.8.2")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.9.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % sys.props("plugin.version"))
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.8.2")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.9.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % sys.props("plugin.version"))
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object SbtGithubPlugin extends AutoPlugin {
excludedContributors := List("scala-steward", """.*\[bot\]""", "traviscibot", "actions-user"),
extraCollaborators := List(),
githubAuthToken := sys.env.get("GITHUB_TOKEN").map(AuthToken),
repository := onGithub(default = Option.empty[Repository])(Def.setting {
repository := onGithub(default = Option.empty[Repository])(Def.setting {
implicit val (auth, logger, url) = configuration.value
Option(Repository.get(info.value._1, info.value._2).getOrThrow)
}).value,
Expand Down Expand Up @@ -99,7 +99,7 @@ object SbtGithubPlugin extends AutoPlugin {
homepage := repository.value.map(_.url).orElse(homepage.value),
licenses := repository.value.map(_.licenses).getOrElse(licenses.value),
startYear := repository.value.map(_.startYear).orElse(startYear.value),
yearRange := startYear.value.collect {
yearRange := startYear.value.collect {
case start if start == Year.now.getValue => s"$start"
case start => s"$start-${Year.now.getValue}"
},
Expand All @@ -111,7 +111,7 @@ object SbtGithubPlugin extends AutoPlugin {

override def projectSettings: Seq[Def.Setting[_]] =
Seq(
description := repository.value.map(_.description).getOrElse(description.value),
description := repository.value.map(_.description).getOrElse(description.value),
organizationName := organizationMetadata.value
.flatMap(_.name)
.getOrElse(organizationName.value),
Expand Down Expand Up @@ -181,7 +181,7 @@ object SbtGithubPlugin extends AutoPlugin {
"github" -> ";set ThisBuild / githubEnabled := true",
"githubOn" -> ";set ThisBuild / githubEnabled := true",
"githubOff" -> ";set ThisBuild / githubEnabled := false"
).flatMap(addCommandAlias _ tupled)
).flatMap((addCommandAlias _).tupled)

private def onGithub[A](default: A)(f: Def.Initialize[A]) =
Def.settingDyn(if (githubEnabled.value) f else Def.setting(default))
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class OrganizationSuite extends munit.FunSuite {

test("Organization.get should return Organization if everything is present") {
withServer {
case r @ GET -> Root => Ok(s"""{ "organization_url": "${r.urlTo("{org}")}" } """)
case r @ GET -> Root => Ok(s"""{ "organization_url": "${r.urlTo("{org}")}" } """)
case GET -> Root / "org" =>
Ok("""{
"name": "My Organization",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RepositorySuite extends munit.FunSuite {

test("Repository.get should return Repository if everything is present") {
withServer {
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case GET -> Root / "user" / "repo" =>
Ok("""{
"full_name": "user/repo",
Expand Down Expand Up @@ -76,7 +76,7 @@ class RepositorySuite extends munit.FunSuite {

test("Repository.get should return None organization if it is not present") {
withServer {
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case GET -> Root / "user" / "repo" =>
Ok("""{
"full_name": "user/repo",
Expand Down Expand Up @@ -120,7 +120,7 @@ class RepositorySuite extends munit.FunSuite {

test("Repository.get should return error if description is not present") {
withServer {
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case GET -> Root / "user" / "repo" =>
Ok("""{
"full_name": "user/repo",
Expand Down Expand Up @@ -155,7 +155,7 @@ class RepositorySuite extends munit.FunSuite {

test("Repository.get should return error if license is not present") {
withServer {
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case GET -> Root / "user" / "repo" =>
Ok("""{
"full_name": "user/repo",
Expand Down Expand Up @@ -187,7 +187,7 @@ class RepositorySuite extends munit.FunSuite {

test("Repository.get should return error if license's `spdx_id` is not present") {
withServer {
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case GET -> Root / "user" / "repo" =>
Ok("""{
"full_name": "user/repo",
Expand Down Expand Up @@ -222,7 +222,7 @@ class RepositorySuite extends munit.FunSuite {

test("Repository.get should return error if license's `url` is not present") {
withServer {
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case GET -> Root / "user" / "repo" =>
Ok("""{
"full_name": "user/repo",
Expand Down Expand Up @@ -257,7 +257,7 @@ class RepositorySuite extends munit.FunSuite {

test("Repository.get should return generic error in other cases") {
withServer {
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case r @ GET -> Root => Ok(s"""{ "repository_url": "${r.urlTo("{owner}/{repo}")}" } """)
case GET -> Root / "user" / "repo" =>
Ok("""{
"full_name": "user/repo",
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.1
sbt.version=1.12.9
18 changes: 9 additions & 9 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.5")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.6")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")
addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "2.22.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.7.2")
addSbtPlugin("com.alejandrohdezma" % "sbt-modules" % "0.3.2")
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafix-defaults" % "0.14.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % "0.9.1")
addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "3.0.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.8.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-modules" % "0.4.1")
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafix-defaults" % "0.15.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % "0.9.2")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")
addSbtPlugin("com.github.sbt" % "sbt-header" % "5.11.0")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.8.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.6")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.9.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.0")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.3")
Loading