Skip to content

Commit

Permalink
Update addToBackportingProject.scala (#20461)
Browse files Browse the repository at this point in the history
Updates the project with new project coordinates. Also bumps
dependencies an sets Scala version to the latest LTS.
  • Loading branch information
Kordyjan authored May 23, 2024
2 parents e0c030c + dabbd8b commit cdb640a
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions project/scripts/addToBackportingProject.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//> using scala 3.3.1
//> using toolkit 0.2.1
//> using lib pro.kordyjan::pytanie:0.1.7
//> using scala 3.lts
//> using toolkit 0.4.0
//> using lib pro.kordyjan::pytanie:0.1.9

import pytanie.*
import sttp.client4.*
Expand All @@ -10,8 +10,29 @@ lazy val apiToken =

case class ID(value: String) derives WrapperVariable

val PROJECT_ID = ID("PVT_kwDOACj3ec4AWSoi")
val FIELD_ID = ID("PVTF_lADOACj3ec4AWSoizgO7uJ4")
// Obtained with:
// query {
// organization(login: "scala") {
// projectV2(number: 2) {
// id
// }
// }
// }
val PROJECT_ID = ID("PVT_kwDN3uPOAHewkg")

// Obtained with:
// query {
// organization(login: "scala") {
// projectV2(number: 2) {
// field(name: "Merged at") {
// ... on ProjectV2FieldCommon {
// id
// }
// }
// }
// }
// }
val FIELD_ID = ID("PVTF_lADN3uPOAHewks4E3B1I")

@main def run(commitSha: String) =
val (id, date) = getPrData(commitSha)
Expand Down

0 comments on commit cdb640a

Please sign in to comment.