Skip to content

Commit

Permalink
feat(actions): add madhead/intellij-http-client-action@v233
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Dec 22, 2023
1 parent 43e49f4 commit b2f988c
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 4 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
395465a3297fcc764dd362db4628a193df869cbd
4 changes: 2 additions & 2 deletions docs/supported-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Click on a version to see the binding's code.
* [setup-julia](https://github.com/julia-actions/setup-julia) - v1: [`SetupJuliaV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/juliaactions/SetupJuliaV1.kt)
* madhead
* [check-gradle-version](https://github.com/madhead/check-gradle-version) - v1 ✅: [`CheckGradleVersionV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/CheckGradleVersionV1.kt)
* [intellij-http-client-action](https://github.com/madhead/intellij-http-client-action) - v0 ✅: [`IntellijHttpClientActionV0`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt), v231 ✅: [`IntellijHttpClientActionV231`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt)
* [intellij-http-client-action](https://github.com/madhead/intellij-http-client-action) - v0 ✅: [`IntellijHttpClientActionV0`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt), v231 ✅: [`IntellijHttpClientActionV231`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt), v233 ✅: [`IntellijHttpClientActionV233`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV233.kt)
* [semver-utils](https://github.com/madhead/semver-utils) - v2 ✅: [`SemverUtilsV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/SemverUtilsV2.kt), v3 ✅: [`SemverUtilsV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/SemverUtilsV3.kt)
* mi-kas
* [kover-report](https://github.com/mi-kas/kover-report) - v1 ✅: [`KoverReportV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/mikas/KoverReportV1.kt)
Expand Down Expand Up @@ -140,6 +140,6 @@ Click on a version to see the binding's code.
Number of bindings available:

* counting by actions: 84
* counting each version separately: 143
* counting each version separately: 144

Actions [providing typings](https://github.com/typesafegithub/github-actions-typing/) (marked with ✅ on the above list): 18
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import kotlin.collections.toTypedArray
* [Action on GitHub](https://github.com/madhead/intellij-http-client-action)
*/
@Deprecated(
message = "This action has a newer major version: IntellijHttpClientActionV231",
replaceWith = ReplaceWith("IntellijHttpClientActionV231"),
message = "This action has a newer major version: IntellijHttpClientActionV233",
replaceWith = ReplaceWith("IntellijHttpClientActionV233"),
)
public data class IntellijHttpClientActionV0 private constructor(
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@file:Suppress(
"DataClassPrivateConstructor",
"UNUSED_PARAMETER",
"DEPRECATION",
)

package io.github.typesafegithub.workflows.actions.madhead
Expand All @@ -12,6 +13,7 @@ import io.github.typesafegithub.workflows.domain.actions.Action
import io.github.typesafegithub.workflows.domain.actions.RegularAction
import java.util.LinkedHashMap
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
Expand All @@ -28,6 +30,10 @@ import kotlin.collections.toTypedArray
*
* [Action on GitHub](https://github.com/madhead/intellij-http-client-action)
*/
@Deprecated(
message = "This action has a newer major version: IntellijHttpClientActionV233",
replaceWith = ReplaceWith("IntellijHttpClientActionV233"),
)
public data class IntellijHttpClientActionV231 private constructor(
/**
* HTTP file paths
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
// This file was generated using action-binding-generator. Don't change it by hand, otherwise your
// changes will be overwritten with the next binding code regeneration.
// See https://github.com/typesafegithub/github-workflows-kt for more info.
@file:Suppress(
"DataClassPrivateConstructor",
"UNUSED_PARAMETER",
)

package io.github.typesafegithub.workflows.actions.madhead

import io.github.typesafegithub.workflows.domain.actions.Action
import io.github.typesafegithub.workflows.domain.actions.RegularAction
import java.util.LinkedHashMap
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.collections.toList
import kotlin.collections.toTypedArray

/**
* Action: intellij-http-client-action
*
* IntelliJ HTTP Client CLI GitHub Action – Run Requests and Tests on CI
*
* [Action on GitHub](https://github.com/madhead/intellij-http-client-action)
*/
public data class IntellijHttpClientActionV233 private constructor(
/**
* HTTP file paths
*/
public val files: List<String>,
/**
* Number of milliseconds for socket read
*/
public val socketTimeout: Int? = null,
/**
* Number of milliseconds for connection
*/
public val connectTimeout: Int? = null,
/**
* Allow insecure SSL connections
*/
public val insecure: Boolean? = null,
/**
* Name of the environment in config file
*/
public val env: String? = null,
/**
* Name of the public environment file
*/
public val envFile: String? = null,
/**
* Public environment variables ('key=value')
*/
public val envVariables: List<String>? = null,
/**
* Name of the private environment file
*/
public val privateEnvFile: String? = null,
/**
* Private environment variables ('key=value')
*/
public val privateEnvVariables: List<String>? = null,
/**
* Proxy setting in format 'scheme://login:password@host:port'
*/
public val proxy: String? = null,
/**
* Enables Docker mode. Treat 'localhost' as 'host.docker.internal'
*/
public val dockerMode: Boolean? = null,
/**
* Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE'
*/
public val logLevel: IntellijHttpClientActionV233.LogLevel? = null,
/**
* Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in the
* current directory
*/
public val report: Boolean? = null,
/**
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
*/
public val _customInputs: Map<String, String> = 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
*/
public val _customVersion: String? = null,
) : RegularAction<Action.Outputs>("madhead", "intellij-http-client-action", _customVersion ?:
"v233") {
public constructor(
vararg pleaseUseNamedArguments: Unit,
files: List<String>,
socketTimeout: Int? = null,
connectTimeout: Int? = null,
insecure: Boolean? = null,
env: String? = null,
envFile: String? = null,
envVariables: List<String>? = null,
privateEnvFile: String? = null,
privateEnvVariables: List<String>? = null,
proxy: String? = null,
dockerMode: Boolean? = null,
logLevel: IntellijHttpClientActionV233.LogLevel? = null,
report: Boolean? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(files=files, socketTimeout=socketTimeout, connectTimeout=connectTimeout,
insecure=insecure, env=env, envFile=envFile, envVariables=envVariables,
privateEnvFile=privateEnvFile, privateEnvVariables=privateEnvVariables, proxy=proxy,
dockerMode=dockerMode, logLevel=logLevel, report=report, _customInputs=_customInputs,
_customVersion=_customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
*listOfNotNull(
"files" to files.joinToString(" "),
socketTimeout?.let { "socket_timeout" to it.toString() },
connectTimeout?.let { "connect_timeout" to it.toString() },
insecure?.let { "insecure" to it.toString() },
env?.let { "env" to it },
envFile?.let { "env_file" to it },
envVariables?.let { "env_variables" to it.joinToString("\n") },
privateEnvFile?.let { "private_env_file" to it },
privateEnvVariables?.let { "private_env_variables" to it.joinToString("\n") },
proxy?.let { "proxy" to it },
dockerMode?.let { "docker_mode" to it.toString() },
logLevel?.let { "log_level" to it.stringValue },
report?.let { "report" to it.toString() },
*_customInputs.toList().toTypedArray(),
).toTypedArray()
)

override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId)

public sealed class LogLevel(
public val stringValue: String,
) {
public object Basic : IntellijHttpClientActionV233.LogLevel("BASIC")

public object Headers : IntellijHttpClientActionV233.LogLevel("HEADERS")

public object Verbose : IntellijHttpClientActionV233.LogLevel("VERBOSE")

public class Custom(
customStringValue: String,
) : IntellijHttpClientActionV233.LogLevel(customStringValue)
}
}

0 comments on commit b2f988c

Please sign in to comment.