Skip to content

Commit 1711802

Browse files
committed
chore: wrap version from x to y in backticks
1 parent 2e8e991 commit 1711802

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

modules/core/src/main/scala/org/scalasteward/core/forge/data/NewPullRequestData.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ object NewPullRequestData {
128128
}
129129

130130
def fromTo(update: Update.Single): String =
131-
s"from ${update.currentVersion} to ${update.nextVersion}"
131+
s"from `${update.currentVersion}` to `${update.nextVersion}`"
132132

133133
def showMajorUpgradeWarning(u: Update.Single): String = {
134134
val semVerVersions =

modules/core/src/test/scala/org/scalasteward/core/forge/data/NewPullRequestDataTest.scala

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class NewPullRequestDataTest extends FunSuite {
2929
)
3030
val expected =
3131
s"""|## About this PR
32-
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
32+
|📦 Updates ch.qos.logback:logback-classic from `1.2.0` to `1.2.3`
3333
|
3434
|## Usage
3535
|✅ **Please merge!**
@@ -89,7 +89,7 @@ class NewPullRequestDataTest extends FunSuite {
8989
)
9090
val expected =
9191
s"""|## About this PR
92-
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
92+
|📦 Updates ch.qos.logback:logback-classic from `1.2.0` to `1.2.3`
9393
|
9494
|## Usage
9595
|✅ **Please merge!**
@@ -149,8 +149,8 @@ class NewPullRequestDataTest extends FunSuite {
149149
s"""|## About this PR
150150
|Updates:
151151
|
152-
|* 📦 ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
153-
|* 📦 com.example:foo from 1.0.0 to 2.0.0 ⚠
152+
|* 📦 ch.qos.logback:logback-classic from `1.2.0` to `1.2.3`
153+
|* 📦 com.example:foo from `1.0.0` to `2.0.0`
154154
|
155155
|## Usage
156156
|✅ **Please merge!**
@@ -209,7 +209,7 @@ class NewPullRequestDataTest extends FunSuite {
209209
)
210210
val expected =
211211
s"""|## About this PR
212-
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
212+
|📦 Updates ch.qos.logback:logback-classic from `1.2.0` to `1.2.3`
213213
|
214214
|## Usage
215215
|✅ **Please merge!**
@@ -254,7 +254,7 @@ class NewPullRequestDataTest extends FunSuite {
254254

255255
test("fromTo") {
256256
val obtained = fromTo(("com.example".g % "foo".a % "1.2.0" %> "1.2.3").single)
257-
assertEquals(obtained, "from 1.2.0 to 1.2.3")
257+
assertEquals(obtained, "from `1.2.0` to `1.2.3`")
258258
}
259259

260260
test("links to release notes/changelog") {
@@ -598,7 +598,7 @@ class NewPullRequestDataTest extends FunSuite {
598598

599599
val expectedBody =
600600
s"""|## About this PR
601-
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
601+
|📦 Updates ch.qos.logback:logback-classic from `1.2.0` to `1.2.3`
602602
|
603603
|## Usage
604604
|✅ **Please merge!**
@@ -677,8 +677,8 @@ class NewPullRequestDataTest extends FunSuite {
677677
s"""|## About this PR
678678
|Updates:
679679
|
680-
|* 📦 ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
681-
|* 📦 com.example:foo from 1.0.0 to 2.0.0 ⚠
680+
|* 📦 ch.qos.logback:logback-classic from `1.2.0` to `1.2.3`
681+
|* 📦 com.example:foo from `1.0.0` to `2.0.0`
682682
|
683683
|## Usage
684684
|✅ **Please merge!**
@@ -759,7 +759,7 @@ class NewPullRequestDataTest extends FunSuite {
759759
)
760760
val expected =
761761
s"""|## About this PR
762-
|📦 Updates org.typelevel:cats-effect from 2.5.5 to 3.4.2 ⚠
762+
|📦 Updates org.typelevel:cats-effect from `2.5.5` to `3.4.2`
763763
|
764764
|## Usage
765765
|✅ **Please merge!**
@@ -813,7 +813,7 @@ class NewPullRequestDataTest extends FunSuite {
813813
)
814814
val expected =
815815
s"""|## About this PR
816-
|📦 Updates com.lihaoyi:os-lib from 0.7.8 to 0.9.1
816+
|📦 Updates com.lihaoyi:os-lib from `0.7.8` to `0.9.1`
817817
|
818818
|## Usage
819819
|✅ **Please merge!**

modules/core/src/test/scala/org/scalasteward/core/nurture/NurtureAlgTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class NurtureAlgTest extends CatsEffectSuite with Http4sDsl[MockEff] {
4040
title = "Update cats-effect to 3.4.0",
4141
body =
4242
raw"""## About this PR
43-
|📦 Updates [org.typelevel:cats-effect](https://github.com/typelevel/cats-effect) from 3.3.0 to 3.4.0
43+
|📦 Updates [org.typelevel:cats-effect](https://github.com/typelevel/cats-effect) from `3.3.0` to `3.4.0`
4444
|
4545
|📜 [GitHub Release Notes](https://github.com/typelevel/cats-effect/releases/tag/v3.4.0) - [Version Diff](https://github.com/typelevel/cats-effect/compare/v3.3.0...v3.4.0)
4646
|

0 commit comments

Comments
 (0)