From e9138a36880a00bd2394d44e145371091f436b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Marks?= Date: Mon, 30 Oct 2023 12:53:27 +0100 Subject: [PATCH] Wrap IDs --- project/scripts/addToBackportingProject.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/scripts/addToBackportingProject.scala b/project/scripts/addToBackportingProject.scala index eeb61ab5a7b7..a703d43c2154 100644 --- a/project/scripts/addToBackportingProject.scala +++ b/project/scripts/addToBackportingProject.scala @@ -8,11 +8,11 @@ import sttp.client4.* lazy val apiToken = System.getenv("GRAPHQL_API_TOKEN") -val PROJECT_ID: String = "PVT_kwDOACj3ec4AWSoi" -val FIELD_ID: String = "PVTF_lADOACj3ec4AWSoizgO7uJ4" - case class ID(value: String) derives WrapperVariable +val PROJECT_ID = ID("PVT_kwDOACj3ec4AWSoi") +val FIELD_ID = ID("PVTF_lADOACj3ec4AWSoizgO7uJ4") + @main def run(number: Int) = val (id, date) = getPrData(number) val newId = addItem(id)