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 0a5e373988..5fecb329c0 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 @@ -307,9 +307,9 @@ private fun Metadata.linkedMapOfInputs(inputTypings: Map): CodeB inputs.forEach { (key, value) -> val asStringCode = inputTypings.getInputTyping(key).asString() if (!value.shouldBeNonNullInBinding()) { - add("%N?.let { %S.to(it$asStringCode) },\n", key.toCamelCase(), key) + add("%N?.let { %S·to·it$asStringCode },\n", key.toCamelCase(), key) } else { - add("%S.to(%N$asStringCode),\n", key, key.toCamelCase()) + add("%S·to·%N$asStringCode,\n", key, key.toCamelCase()) } } 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 2ed0096e95..534b01aba3 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 @@ -130,19 +130,19 @@ public data class ActionWithAllTypesOfInputs private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - "foo-bar".to(fooBar), - "baz-goo".to(bazGoo.toString()), - binKin?.let { "bin-kin".to(it.toString()) }, - "int-pint".to(intPint.toString()), - "flo-pint".to(floPint.toString()), - "fin-bin".to(finBin.stringValue), - "goo-zen".to(gooZen.integerValue.toString()), - "bah-enum".to(bahEnum.stringValue), - listStrings?.let { "list-strings".to(it.joinToString(",")) }, - listInts?.let { "list-ints".to(it.joinToString(",") { it.toString() }) }, - listEnums?.let { "list-enums".to(it.joinToString(",") { it.stringValue }) }, - listIntSpecial?.let { "list-int-special".to(it.joinToString(",") { - it.integerValue.toString() }) }, + "foo-bar" to fooBar, + "baz-goo" to bazGoo.toString(), + binKin?.let { "bin-kin" to it.toString() }, + "int-pint" to intPint.toString(), + "flo-pint" to floPint.toString(), + "fin-bin" to finBin.stringValue, + "goo-zen" to gooZen.integerValue.toString(), + "bah-enum" to bahEnum.stringValue, + listStrings?.let { "list-strings" to it.joinToString(",") }, + listInts?.let { "list-ints" to it.joinToString(",") { it.toString() } }, + listEnums?.let { "list-enums" to it.joinToString(",") { it.stringValue } }, + listIntSpecial?.let { "list-int-special" to it.joinToString(",") { + it.integerValue.toString() } }, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) 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 d91fe3c5a8..eaee489740 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 @@ -57,7 +57,7 @@ public data class ActionWithDeprecatedInputAndNameClash private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - "fooBar".to(fooBar), + "fooBar" to fooBar, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) 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 0a92c99c06..373d952812 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 @@ -64,8 +64,8 @@ public data class ActionWithFancyCharsInDocs private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - nestedKotlinComments?.let { "nested-kotlin-comments".to(it) }, - percent?.let { "percent".to(it) }, + nestedKotlinComments?.let { "nested-kotlin-comments" to it }, + percent?.let { "percent" to it }, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) 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 9d484fa141..032de99e1c 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 @@ -59,9 +59,9 @@ public data class ActionWithInputsSharingType private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - "foo-one".to(fooOne.integerValue.toString()), - "foo-two".to(fooTwo.integerValue.toString()), - fooThree?.let { "foo-three".to(it.integerValue.toString()) }, + "foo-one" to fooOne.integerValue.toString(), + "foo-two" to fooTwo.integerValue.toString(), + fooThree?.let { "foo-three" to it.integerValue.toString() }, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) 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 b1ee741610..9fe30ca92c 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 @@ -74,8 +74,8 @@ public data class ActionWithNoTypings_Untyped private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - "foo".to(foo), - bar?.let { "bar".to(it) }, + "foo" to foo, + bar?.let { "bar" to it }, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) 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 3de4aa892c..a928288b04 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 @@ -57,7 +57,7 @@ public data class ActionWithOutputs private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - "foo-bar".to(fooBar), + "foo-bar" to fooBar, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) 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 0dbd11d3e1..48ac216cad 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 @@ -82,11 +82,11 @@ public data class ActionWithSomeOptionalInputs private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - fooBar?.let { "foo-bar".to(it) }, - bazGoo?.let { "baz-goo".to(it) }, - zooDar?.let { "zoo-dar".to(it) }, - cooPoo?.let { "coo-poo".to(it) }, - "package".to(`package`), + fooBar?.let { "foo-bar" to it }, + bazGoo?.let { "baz-goo" to it }, + zooDar?.let { "zoo-dar" to it }, + cooPoo?.let { "coo-poo" to it }, + "package" to `package`, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) 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 865b2027b8..bc2daa899d 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 @@ -70,8 +70,8 @@ public data class SimpleActionWithRequiredStringInputs private constructor( @Suppress("SpreadOperator") override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( - "foo-bar".to(fooBar), - "baz-goo".to(bazGoo), + "foo-bar" to fooBar, + "baz-goo" to bazGoo, *_customInputs.toList().toTypedArray(), ).toTypedArray() )