From 8316b03f000c5788194894a352b67a7bd99a4ae9 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 23 Oct 2024 22:28:27 +0200
Subject: [PATCH] fix(deps): update dependency com.squareup:kotlinpoet to v2
(#1690)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[com.squareup:kotlinpoet](https://redirect.github.com/square/kotlinpoet)
| `1.18.1` -> `2.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.squareup:kotlinpoet/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.squareup:kotlinpoet/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.squareup:kotlinpoet/1.18.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.squareup:kotlinpoet/1.18.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
square/kotlinpoet (com.squareup:kotlinpoet)
###
[`v2.0.0`](https://redirect.github.com/square/kotlinpoet/compare/1.18.1...2.0.0)
[Compare
Source](https://redirect.github.com/square/kotlinpoet/compare/1.18.1...2.0.0)
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
â™» **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/typesafegithub/github-workflows-kt).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Piotr Krzeminski
---
action-binding-generator/build.gradle.kts | 2 +-
.../generation/Generation.kt | 6 ++---
.../ActionWithAllTypesOfInputs.kt | 25 +++++--------------
.../ActionWithAllTypesOfInputs_Untyped.kt | 19 ++++----------
.../ActionWithDeprecatedInputAndNameClash.kt | 15 ++++-------
.../ActionWithFancyCharsInDocs.kt | 16 ++++--------
.../ActionWithInputsSharingType.kt | 16 ++++--------
.../ActionWithNoInputs.kt | 9 +++----
.../ActionWithNoTypings_Untyped.kt | 12 +++------
.../ActionWithOutputs.kt | 15 ++++-------
.../ActionWithPartlyTypings.kt | 15 ++++-------
.../ActionWithPartlyTypings_Untyped.kt | 15 ++++-------
.../ActionWithSomeOptionalInputs.kt | 17 ++++---------
.../SimpleActionWithRequiredStringInputs.kt | 15 ++++-------
automation/code-generator/build.gradle.kts | 2 +-
15 files changed, 63 insertions(+), 136 deletions(-)
diff --git a/action-binding-generator/build.gradle.kts b/action-binding-generator/build.gradle.kts
index af7a27463a..4d45d87193 100644
--- a/action-binding-generator/build.gradle.kts
+++ b/action-binding-generator/build.gradle.kts
@@ -12,7 +12,7 @@ group = rootProject.group
version = rootProject.version
dependencies {
- implementation("com.squareup:kotlinpoet:1.18.1")
+ implementation("com.squareup:kotlinpoet:2.0.0")
implementation("it.krzeminski:snakeyaml-engine-kmp:3.0.2")
implementation("com.charleskorn.kaml:kaml:0.61.0")
implementation(projects.sharedInternal)
diff --git a/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt b/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt
index e5ccbb47cc..9a0c4b344b 100644
--- a/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt
+++ b/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt
@@ -351,13 +351,13 @@ private fun Metadata.linkedMapOfInputs(
val propertyName = key.toCamelCase()
if (!untypedClass && inputTypings.containsKey(key)) {
val asStringCode = inputTypings.getInputTyping(key).asString()
- add("%N?.let { %S·to·it$asStringCode },\n", propertyName, key)
+ add("%N?.let { %S to it$asStringCode },\n", propertyName, key)
}
val asStringCode = null.getInputTyping(key).asString()
if (value.shouldBeRequiredInBinding() && !value.shouldBeNullable(untypedClass, inputTypings.containsKey(key))) {
- add("%S·to·%N$asStringCode,\n", key, "${propertyName}_Untyped")
+ add("%S to %N$asStringCode,\n", key, "${propertyName}_Untyped")
} else {
- add("%N?.let { %S·to·it$asStringCode },\n", "${propertyName}_Untyped", key)
+ add("%N?.let { %S to it$asStringCode },\n", "${propertyName}_Untyped", key)
}
}
add("*$CUSTOM_INPUTS.%M().%M(),\n", Types.mapToList, Types.listToArray)
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs.kt
index 267a846500..87c3742c40 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs.kt
@@ -54,10 +54,8 @@ import kotlin.collections.toTypedArray
* @param listEnums_Untyped List of enums
* @param listIntSpecial List of integer with special values
* @param listIntSpecial_Untyped List of integer with special values
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithAllTypesOfInputs private constructor(
@@ -162,12 +160,10 @@ public data class ActionWithAllTypesOfInputs private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith",
- "action-with-all-types-of-inputs", _customVersion ?: "v3") {
+) : RegularAction("john-smith", "action-with-all-types-of-inputs", _customVersion ?: "v3") {
init {
require(!((fooBar != null) && (fooBar_Untyped != null))) {
"Only fooBar or fooBar_Untyped must be set, but not both"
@@ -267,15 +263,7 @@ public data class ActionWithAllTypesOfInputs private constructor(
listIntSpecial_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped =
- bazGoo_Untyped, binKin = binKin, binKin_Untyped = binKin_Untyped, intPint = intPint,
- intPint_Untyped = intPint_Untyped, floPint = floPint, floPint_Untyped = floPint_Untyped,
- finBin = finBin, finBin_Untyped = finBin_Untyped, gooZen = gooZen, gooZen_Untyped =
- gooZen_Untyped, bahEnum = bahEnum, bahEnum_Untyped = bahEnum_Untyped, listStrings =
- listStrings, listStrings_Untyped = listStrings_Untyped, listInts = listInts,
- listInts_Untyped = listInts_Untyped, listEnums = listEnums, listEnums_Untyped =
- listEnums_Untyped, listIntSpecial = listIntSpecial, listIntSpecial_Untyped =
- listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
+ ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped = bazGoo_Untyped, binKin = binKin, binKin_Untyped = binKin_Untyped, intPint = intPint, intPint_Untyped = intPint_Untyped, floPint = floPint, floPint_Untyped = floPint_Untyped, finBin = finBin, finBin_Untyped = finBin_Untyped, gooZen = gooZen, gooZen_Untyped = gooZen_Untyped, bahEnum = bahEnum, bahEnum_Untyped = bahEnum_Untyped, listStrings = listStrings, listStrings_Untyped = listStrings_Untyped, listInts = listInts, listInts_Untyped = listInts_Untyped, listEnums = listEnums, listEnums_Untyped = listEnums_Untyped, listIntSpecial = listIntSpecial, listIntSpecial_Untyped = listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
@@ -302,8 +290,7 @@ public data class ActionWithAllTypesOfInputs private constructor(
listInts_Untyped?.let { "list-ints" to it },
listEnums?.let { "list-enums" to it.joinToString(",") { it.stringValue } },
listEnums_Untyped?.let { "list-enums" to it },
- listIntSpecial?.let { "list-int-special" to it.joinToString(",") {
- it.integerValue.toString() } },
+ listIntSpecial?.let { "list-int-special" to it.joinToString(",") { it.integerValue.toString() } },
listIntSpecial_Untyped?.let { "list-int-special" to it },
*_customInputs.toList().toTypedArray(),
).toTypedArray()
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs_Untyped.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs_Untyped.kt
index ebc776fbea..2bc6811da1 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs_Untyped.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithAllTypesOfInputs_Untyped.kt
@@ -59,10 +59,8 @@ import kotlin.collections.toTypedArray
* @param listInts_Untyped List of integers
* @param listEnums_Untyped List of enums
* @param listIntSpecial_Untyped List of integer with special values
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@Deprecated(
"Use the typed class instead",
@@ -123,12 +121,10 @@ public data class ActionWithAllTypesOfInputs_Untyped private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith",
- "action-with-all-types-of-inputs", _customVersion ?: "v3") {
+) : RegularAction("john-smith", "action-with-all-types-of-inputs", _customVersion ?: "v3") {
public constructor(
vararg pleaseUseNamedArguments: Unit,
fooBar_Untyped: String,
@@ -145,12 +141,7 @@ public data class ActionWithAllTypesOfInputs_Untyped private constructor(
listIntSpecial_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(fooBar_Untyped = fooBar_Untyped, bazGoo_Untyped = bazGoo_Untyped, binKin_Untyped =
- binKin_Untyped, intPint_Untyped = intPint_Untyped, floPint_Untyped = floPint_Untyped,
- finBin_Untyped = finBin_Untyped, gooZen_Untyped = gooZen_Untyped, bahEnum_Untyped =
- bahEnum_Untyped, listStrings_Untyped = listStrings_Untyped, listInts_Untyped =
- listInts_Untyped, listEnums_Untyped = listEnums_Untyped, listIntSpecial_Untyped =
- listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
+ ) : this(fooBar_Untyped = fooBar_Untyped, bazGoo_Untyped = bazGoo_Untyped, binKin_Untyped = binKin_Untyped, intPint_Untyped = intPint_Untyped, floPint_Untyped = floPint_Untyped, finBin_Untyped = finBin_Untyped, gooZen_Untyped = gooZen_Untyped, bahEnum_Untyped = bahEnum_Untyped, listStrings_Untyped = listStrings_Untyped, listInts_Untyped = listInts_Untyped, listEnums_Untyped = listEnums_Untyped, listIntSpecial_Untyped = listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithDeprecatedInputAndNameClash.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithDeprecatedInputAndNameClash.kt
index 7369881348..2bbb75c954 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithDeprecatedInputAndNameClash.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithDeprecatedInputAndNameClash.kt
@@ -28,10 +28,8 @@ import kotlin.collections.toTypedArray
*
* @param fooBar <required> Foo bar - new
* @param fooBar_Untyped <required> Foo bar - new
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithDeprecatedInputAndNameClash private constructor(
@@ -48,12 +46,10 @@ public data class ActionWithDeprecatedInputAndNameClash private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "action-with-deprecated-input-and-name-clash",
- _customVersion ?: "v2") {
+) : RegularAction("john-smith", "action-with-deprecated-input-and-name-clash", _customVersion ?: "v2") {
init {
require(!((fooBar != null) && (fooBar_Untyped != null))) {
"Only fooBar or fooBar_Untyped must be set, but not both"
@@ -69,8 +65,7 @@ public data class ActionWithDeprecatedInputAndNameClash private constructor(
fooBar_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, _customInputs = _customInputs,
- _customVersion = _customVersion)
+ ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithFancyCharsInDocs.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithFancyCharsInDocs.kt
index b9d03a046b..5467de3e5e 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithFancyCharsInDocs.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithFancyCharsInDocs.kt
@@ -30,10 +30,8 @@ import kotlin.collections.toTypedArray
* @param nestedKotlinComments_Untyped This is a /* test */
* @param percent For example "100%"
* @param percent_Untyped For example "100%"
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithFancyCharsInDocs private constructor(
@@ -58,12 +56,10 @@ public data class ActionWithFancyCharsInDocs private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "action-with-fancy-chars-in-docs", _customVersion ?:
- "v3") {
+) : RegularAction("john-smith", "action-with-fancy-chars-in-docs", _customVersion ?: "v3") {
init {
require(!((nestedKotlinComments != null) && (nestedKotlinComments_Untyped != null))) {
"Only nestedKotlinComments or nestedKotlinComments_Untyped must be set, but not both"
@@ -82,9 +78,7 @@ public data class ActionWithFancyCharsInDocs private constructor(
percent_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(nestedKotlinComments = nestedKotlinComments, nestedKotlinComments_Untyped =
- nestedKotlinComments_Untyped, percent = percent, percent_Untyped = percent_Untyped,
- _customInputs = _customInputs, _customVersion = _customVersion)
+ ) : this(nestedKotlinComments = nestedKotlinComments, nestedKotlinComments_Untyped = nestedKotlinComments_Untyped, percent = percent, percent_Untyped = percent_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithInputsSharingType.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithInputsSharingType.kt
index bd8c9612c1..f3ced46bb8 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithInputsSharingType.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithInputsSharingType.kt
@@ -31,10 +31,8 @@ import kotlin.collections.toTypedArray
* @param fooOne_Untyped <required>
* @param fooTwo <required>
* @param fooTwo_Untyped <required>
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithInputsSharingType private constructor(
@@ -61,12 +59,10 @@ public data class ActionWithInputsSharingType private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "action-with-inputs-sharing-type", _customVersion ?:
- "v3") {
+) : RegularAction("john-smith", "action-with-inputs-sharing-type", _customVersion ?: "v3") {
init {
require(!((fooOne != null) && (fooOne_Untyped != null))) {
"Only fooOne or fooOne_Untyped must be set, but not both"
@@ -97,9 +93,7 @@ public data class ActionWithInputsSharingType private constructor(
fooThree_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(fooOne = fooOne, fooOne_Untyped = fooOne_Untyped, fooTwo = fooTwo, fooTwo_Untyped =
- fooTwo_Untyped, fooThree = fooThree, fooThree_Untyped = fooThree_Untyped, _customInputs
- = _customInputs, _customVersion = _customVersion)
+ ) : this(fooOne = fooOne, fooOne_Untyped = fooOne_Untyped, fooTwo = fooTwo, fooTwo_Untyped = fooTwo_Untyped, fooThree = fooThree, fooThree_Untyped = fooThree_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoInputs.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoInputs.kt
index 09f420ec13..082a73ed0e 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoInputs.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoInputs.kt
@@ -24,10 +24,8 @@ import kotlin.collections.Map
*
* [Action on GitHub](https://github.com/john-smith/action-with-no-inputs)
*
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithNoInputs private constructor(
@@ -36,8 +34,7 @@ public data class ActionWithNoInputs private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction("john-smith", "action-with-no-inputs", _customVersion ?: "v3") {
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoTypings_Untyped.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoTypings_Untyped.kt
index 4ea05fa363..f4138edbdc 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoTypings_Untyped.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithNoTypings_Untyped.kt
@@ -46,10 +46,8 @@ import kotlin.collections.toTypedArray
*
* [Action on GitHub](https://github.com/john-smith/action-with-no-typings)
*
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithNoTypings_Untyped private constructor(
@@ -60,8 +58,7 @@ public data class ActionWithNoTypings_Untyped private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction("john-smith", "action-with-no-typings", _customVersion ?: "v3") {
@@ -71,8 +68,7 @@ public data class ActionWithNoTypings_Untyped private constructor(
bar_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, _customInputs = _customInputs,
- _customVersion = _customVersion)
+ ) : this(foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithOutputs.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithOutputs.kt
index 1e856b7092..b9553d7f0e 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithOutputs.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithOutputs.kt
@@ -28,10 +28,8 @@ import kotlin.collections.toTypedArray
*
* @param fooBar <required> Short description
* @param fooBar_Untyped <required> Short description
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithOutputs private constructor(
@@ -48,12 +46,10 @@ public data class ActionWithOutputs private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "action-with-outputs", _customVersion ?:
- "v3") {
+) : RegularAction("john-smith", "action-with-outputs", _customVersion ?: "v3") {
init {
require(!((fooBar != null) && (fooBar_Untyped != null))) {
"Only fooBar or fooBar_Untyped must be set, but not both"
@@ -69,8 +65,7 @@ public data class ActionWithOutputs private constructor(
fooBar_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, _customInputs = _customInputs,
- _customVersion = _customVersion)
+ ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings.kt
index 05346a83a4..4e0a43853a 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings.kt
@@ -29,10 +29,8 @@ import kotlin.collections.toTypedArray
*
* @param foo <required>
* @param foo_Untyped <required>
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithPartlyTypings private constructor(
@@ -51,12 +49,10 @@ public data class ActionWithPartlyTypings private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "action-with-partly-typings", _customVersion ?:
- "v3") {
+) : RegularAction("john-smith", "action-with-partly-typings", _customVersion ?: "v3") {
init {
require(!((foo != null) && (foo_Untyped != null))) {
"Only foo or foo_Untyped must be set, but not both"
@@ -74,8 +70,7 @@ public data class ActionWithPartlyTypings private constructor(
baz_Untyped: String,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(foo = foo, foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, baz_Untyped =
- baz_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
+ ) : this(foo = foo, foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, baz_Untyped = baz_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings_Untyped.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings_Untyped.kt
index b4f1fdb5ba..9c24d01d19 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings_Untyped.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithPartlyTypings_Untyped.kt
@@ -47,10 +47,8 @@ import kotlin.collections.toTypedArray
*
* [Action on GitHub](https://github.com/john-smith/action-with-partly-typings)
*
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@Deprecated(
"Use the typed class instead",
@@ -66,12 +64,10 @@ public data class ActionWithPartlyTypings_Untyped private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "action-with-partly-typings", _customVersion ?:
- "v3") {
+) : RegularAction("john-smith", "action-with-partly-typings", _customVersion ?: "v3") {
public constructor(
vararg pleaseUseNamedArguments: Unit,
foo_Untyped: String,
@@ -79,8 +75,7 @@ public data class ActionWithPartlyTypings_Untyped private constructor(
baz_Untyped: String,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, baz_Untyped = baz_Untyped,
- _customInputs = _customInputs, _customVersion = _customVersion)
+ ) : this(foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, baz_Untyped = baz_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithSomeOptionalInputs.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithSomeOptionalInputs.kt
index 575ca18e79..1e06670cfd 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithSomeOptionalInputs.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionWithSomeOptionalInputs.kt
@@ -36,10 +36,8 @@ import kotlin.collections.toTypedArray
* @param cooPoo_Untyped Required is false, default is default
* @param package <required> Required is true, default is default
* @param package_Untyped <required> Required is true, default is default
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithSomeOptionalInputs private constructor(
@@ -88,12 +86,10 @@ public data class ActionWithSomeOptionalInputs private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "action-with-some-optional-inputs", _customVersion
- ?: "v3") {
+) : RegularAction("john-smith", "action-with-some-optional-inputs", _customVersion ?: "v3") {
init {
require(!((fooBar != null) && (fooBar_Untyped != null))) {
"Only fooBar or fooBar_Untyped must be set, but not both"
@@ -133,10 +129,7 @@ public data class ActionWithSomeOptionalInputs private constructor(
package_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped =
- bazGoo_Untyped, zooDar = zooDar, zooDar_Untyped = zooDar_Untyped, cooPoo = cooPoo,
- cooPoo_Untyped = cooPoo_Untyped, `package` = `package`, package_Untyped =
- package_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
+ ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped = bazGoo_Untyped, zooDar = zooDar, zooDar_Untyped = zooDar_Untyped, cooPoo = cooPoo, cooPoo_Untyped = cooPoo_Untyped, `package` = `package`, package_Untyped = package_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/SimpleActionWithRequiredStringInputs.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/SimpleActionWithRequiredStringInputs.kt
index a45eb562e8..54aeca42e1 100644
--- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/SimpleActionWithRequiredStringInputs.kt
+++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/SimpleActionWithRequiredStringInputs.kt
@@ -35,10 +35,8 @@ import kotlin.collections.toTypedArray
* with multiline description
* @param bazGoo_Untyped <required> Just another input
* with multiline description
- * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
- * the binding
- * @param _customVersion Allows overriding action's version, for example to use a specific minor
- * version, or a newer version that the binding doesn't yet know about
+ * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
+ * @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class SimpleActionWithRequiredStringInputs private constructor(
@@ -67,12 +65,10 @@ public data class SimpleActionWithRequiredStringInputs private constructor(
*/
public val _customInputs: Map = mapOf(),
/**
- * Allows overriding action's version, for example to use a specific minor version, or a newer
- * version that the binding doesn't yet know about
+ * Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
-) : RegularAction("john-smith", "simple-action-with-required-string-inputs",
- _customVersion ?: "v3") {
+) : RegularAction("john-smith", "simple-action-with-required-string-inputs", _customVersion ?: "v3") {
init {
require(!((fooBar != null) && (fooBar_Untyped != null))) {
"Only fooBar or fooBar_Untyped must be set, but not both"
@@ -97,8 +93,7 @@ public data class SimpleActionWithRequiredStringInputs private constructor(
bazGoo_Untyped: String? = null,
_customInputs: Map = mapOf(),
_customVersion: String? = null,
- ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped =
- bazGoo_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
+ ) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped = bazGoo_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap = linkedMapOf(
diff --git a/automation/code-generator/build.gradle.kts b/automation/code-generator/build.gradle.kts
index 88cea85a03..2643ebd8f3 100644
--- a/automation/code-generator/build.gradle.kts
+++ b/automation/code-generator/build.gradle.kts
@@ -7,7 +7,7 @@ plugins {
}
dependencies {
- implementation("com.squareup:kotlinpoet:1.18.1")
+ implementation("com.squareup:kotlinpoet:2.0.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
}