Skip to content

Commit ea88b9f

Browse files
committed
chore: remove artifacts from header
1 parent 9757397 commit ea88b9f

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ object NewPullRequestData {
6666

6767
val updateInfoUrls = artifactIdToUpdateInfoUrls.getOrElse(u.mainArtifactId, Nil)
6868

69-
s"""|## Update _${artifacts}_
70-
|📦 updates $artifacts ${fromTo(u)}${showMajorUpgradeWarning(u)}
69+
s"""|## _About this PR_
70+
|📦 Updates $artifacts ${fromTo(u)}${showMajorUpgradeWarning(u)}
7171
|${renderUpdateInfoUrls(updateInfoUrls)
7272
.map(urls => s"📜 $urls")
7373
.getOrElse("")}""".stripMargin.trim
@@ -83,7 +83,8 @@ object NewPullRequestData {
8383
}
8484
.mkString_("\n", "\n", "\n")
8585

86-
s"""|## Updates:
86+
s"""|## _About this PR_
87+
|Updates:
8788
|$artifacts""".stripMargin.trim
8889
}
8990
)

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class NewPullRequestDataTest extends FunSuite {
2828
labels = List("library-update")
2929
)
3030
val expected =
31-
s"""|## Update _ch.qos.logback:logback-classic_
32-
|📦 updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
31+
s"""|## _About this PR_
32+
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
3333
|
3434
|
3535
|I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
@@ -86,8 +86,8 @@ class NewPullRequestDataTest extends FunSuite {
8686
labels = List("library-update")
8787
)
8888
val expected =
89-
s"""|## Update _ch.qos.logback:logback-classic_
90-
|📦 updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
89+
s"""|## _About this PR_
90+
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
9191
|
9292
|
9393
|I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
@@ -142,7 +142,8 @@ class NewPullRequestDataTest extends FunSuite {
142142
labels = List("library-update")
143143
)
144144
val expected =
145-
s"""|## Updates:
145+
s"""|## _About this PR_
146+
|Updates:
146147
|
147148
|* 📦 ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
148149
|* 📦 com.example:foo from 1.0.0 to 2.0.0 ⚠
@@ -201,8 +202,8 @@ class NewPullRequestDataTest extends FunSuite {
201202
labels = List("library-update")
202203
)
203204
val expected =
204-
s"""|## Update _ch.qos.logback:logback-classic_
205-
|📦 updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
205+
s"""|## _About this PR_
206+
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
206207
|
207208
|
208209
|I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
@@ -587,8 +588,8 @@ class NewPullRequestDataTest extends FunSuite {
587588
)
588589

589590
val expectedBody =
590-
s"""|## Update _ch.qos.logback:logback-classic_
591-
|📦 updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
591+
s"""|## _About this PR_
592+
|📦 Updates ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
592593
|
593594
|
594595
|I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
@@ -661,7 +662,8 @@ class NewPullRequestDataTest extends FunSuite {
661662
)
662663

663664
val expectedBody =
664-
s"""|## Updates:
665+
s"""|## _About this PR_
666+
|Updates:
665667
|
666668
|* 📦 ch.qos.logback:logback-classic from 1.2.0 to 1.2.3
667669
|* 📦 com.example:foo from 1.0.0 to 2.0.0 ⚠

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class NurtureAlgTest extends CatsEffectSuite with Http4sDsl[MockEff] {
3838
val expected = NewPullRequestData(
3939
title = "Update cats-effect to 3.4.0",
4040
body =
41-
raw"""## Update _[org.typelevel:cats-effect](https://github.com/typelevel/cats-effect)_
42-
|📦 updates [org.typelevel:cats-effect](https://github.com/typelevel/cats-effect) from 3.3.0 to 3.4.0
41+
raw"""## _About this PR_
42+
|📦 Updates [org.typelevel:cats-effect](https://github.com/typelevel/cats-effect) from 3.3.0 to 3.4.0
4343
|📜 [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)
4444
|
4545
|

0 commit comments

Comments
 (0)