Skip to content

Commit 00a65ee

Browse files
authored
feat(actions): add madhead/intellij-http-client-action@v241 (#1549)
Closes #1545.
1 parent 4dc8219 commit 00a65ee

File tree

7 files changed

+186
-6
lines changed

7 files changed

+186
-6
lines changed

actions/madhead/intellij-http-client-action/v241/action

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
65b65577bbbb7d278122f4b2f6efb412ea4f16bf

docs/supported-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Click on a version to see the binding's code.
9797
* [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), v2: [`SetupJuliaV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/juliaactions/SetupJuliaV2.kt)
9898
* madhead
9999
* [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)
100-
* [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)
100+
* [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), v241 ✅: [`IntellijHttpClientActionV241`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV241.kt)
101101
* [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), v4 ✅: [`SemverUtilsV4`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/SemverUtilsV4.kt)
102102
* mi-kas
103103
* [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)
@@ -141,6 +141,6 @@ Click on a version to see the binding's code.
141141
Number of bindings available:
142142

143143
* counting by actions: 85
144-
* counting each version separately: 168
144+
* counting each version separately: 169
145145

146146
Actions [providing typings](https://github.com/typesafegithub/github-actions-typing/) (marked with ✅ on the above list): 18

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ import kotlin.collections.toTypedArray
4949
* version, or a newer version that the binding doesn't yet know about
5050
*/
5151
@Deprecated(
52-
message = "This action has a newer major version: IntellijHttpClientActionV233",
53-
replaceWith = ReplaceWith("IntellijHttpClientActionV233"),
52+
message = "This action has a newer major version: IntellijHttpClientActionV241",
53+
replaceWith = ReplaceWith("IntellijHttpClientActionV241"),
5454
)
5555
public data class IntellijHttpClientActionV0 private constructor(
5656
/**

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ import kotlin.collections.toTypedArray
4949
* version, or a newer version that the binding doesn't yet know about
5050
*/
5151
@Deprecated(
52-
message = "This action has a newer major version: IntellijHttpClientActionV233",
53-
replaceWith = ReplaceWith("IntellijHttpClientActionV233"),
52+
message = "This action has a newer major version: IntellijHttpClientActionV241",
53+
replaceWith = ReplaceWith("IntellijHttpClientActionV241"),
5454
)
5555
public data class IntellijHttpClientActionV231 private constructor(
5656
/**

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV233.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@file:Suppress(
55
"DataClassPrivateConstructor",
66
"UNUSED_PARAMETER",
7+
"DEPRECATION",
78
)
89

910
package io.github.typesafegithub.workflows.actions.madhead
@@ -12,6 +13,7 @@ import io.github.typesafegithub.workflows.domain.actions.Action
1213
import io.github.typesafegithub.workflows.domain.actions.RegularAction
1314
import java.util.LinkedHashMap
1415
import kotlin.Boolean
16+
import kotlin.Deprecated
1517
import kotlin.Int
1618
import kotlin.String
1719
import kotlin.Suppress
@@ -47,6 +49,10 @@ import kotlin.collections.toTypedArray
4749
* @param _customVersion Allows overriding action's version, for example to use a specific minor
4850
* version, or a newer version that the binding doesn't yet know about
4951
*/
52+
@Deprecated(
53+
message = "This action has a newer major version: IntellijHttpClientActionV241",
54+
replaceWith = ReplaceWith("IntellijHttpClientActionV241"),
55+
)
5056
public data class IntellijHttpClientActionV233 private constructor(
5157
/**
5258
* HTTP file paths
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
// This file was generated using action-binding-generator. Don't change it by hand, otherwise your
2+
// changes will be overwritten with the next binding code regeneration.
3+
// See https://github.com/typesafegithub/github-workflows-kt for more info.
4+
@file:Suppress(
5+
"DataClassPrivateConstructor",
6+
"UNUSED_PARAMETER",
7+
)
8+
9+
package io.github.typesafegithub.workflows.actions.madhead
10+
11+
import io.github.typesafegithub.workflows.domain.actions.Action
12+
import io.github.typesafegithub.workflows.domain.actions.RegularAction
13+
import java.util.LinkedHashMap
14+
import kotlin.Boolean
15+
import kotlin.Int
16+
import kotlin.String
17+
import kotlin.Suppress
18+
import kotlin.Unit
19+
import kotlin.collections.List
20+
import kotlin.collections.Map
21+
import kotlin.collections.toList
22+
import kotlin.collections.toTypedArray
23+
24+
/**
25+
* Action: intellij-http-client-action
26+
*
27+
* IntelliJ HTTP Client CLI GitHub Action – Run Requests and Tests on CI
28+
*
29+
* [Action on GitHub](https://github.com/madhead/intellij-http-client-action)
30+
*
31+
* @param files HTTP file paths
32+
* @param socketTimeout Number of milliseconds for socket read
33+
* @param connectTimeout Number of milliseconds for connection
34+
* @param insecure Allow insecure SSL connections
35+
* @param env Name of the environment in config file
36+
* @param envFile Name of the public environment file
37+
* @param envVariables Public environment variables ('key=value')
38+
* @param privateEnvFile Name of the private environment file
39+
* @param privateEnvVariables Private environment variables ('key=value')
40+
* @param proxy Proxy setting in format 'scheme://login:password@host:port'
41+
* @param dockerMode Enables Docker mode. Treat 'localhost' as 'host.docker.internal'
42+
* @param logLevel Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE'
43+
* @param report Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in
44+
* the current directory
45+
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
46+
* the binding
47+
* @param _customVersion Allows overriding action's version, for example to use a specific minor
48+
* version, or a newer version that the binding doesn't yet know about
49+
*/
50+
public data class IntellijHttpClientActionV241 private constructor(
51+
/**
52+
* HTTP file paths
53+
*/
54+
public val files: List<String>,
55+
/**
56+
* Number of milliseconds for socket read
57+
*/
58+
public val socketTimeout: Int? = null,
59+
/**
60+
* Number of milliseconds for connection
61+
*/
62+
public val connectTimeout: Int? = null,
63+
/**
64+
* Allow insecure SSL connections
65+
*/
66+
public val insecure: Boolean? = null,
67+
/**
68+
* Name of the environment in config file
69+
*/
70+
public val env: String? = null,
71+
/**
72+
* Name of the public environment file
73+
*/
74+
public val envFile: String? = null,
75+
/**
76+
* Public environment variables ('key=value')
77+
*/
78+
public val envVariables: List<String>? = null,
79+
/**
80+
* Name of the private environment file
81+
*/
82+
public val privateEnvFile: String? = null,
83+
/**
84+
* Private environment variables ('key=value')
85+
*/
86+
public val privateEnvVariables: List<String>? = null,
87+
/**
88+
* Proxy setting in format 'scheme://login:password@host:port'
89+
*/
90+
public val proxy: String? = null,
91+
/**
92+
* Enables Docker mode. Treat 'localhost' as 'host.docker.internal'
93+
*/
94+
public val dockerMode: Boolean? = null,
95+
/**
96+
* Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE'
97+
*/
98+
public val logLevel: IntellijHttpClientActionV241.LogLevel? = null,
99+
/**
100+
* Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in the
101+
* current directory
102+
*/
103+
public val report: Boolean? = null,
104+
/**
105+
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
106+
*/
107+
public val _customInputs: Map<String, String> = mapOf(),
108+
/**
109+
* Allows overriding action's version, for example to use a specific minor version, or a newer
110+
* version that the binding doesn't yet know about
111+
*/
112+
public val _customVersion: String? = null,
113+
) : RegularAction<Action.Outputs>("madhead", "intellij-http-client-action", _customVersion ?:
114+
"v241") {
115+
public constructor(
116+
vararg pleaseUseNamedArguments: Unit,
117+
files: List<String>,
118+
socketTimeout: Int? = null,
119+
connectTimeout: Int? = null,
120+
insecure: Boolean? = null,
121+
env: String? = null,
122+
envFile: String? = null,
123+
envVariables: List<String>? = null,
124+
privateEnvFile: String? = null,
125+
privateEnvVariables: List<String>? = null,
126+
proxy: String? = null,
127+
dockerMode: Boolean? = null,
128+
logLevel: IntellijHttpClientActionV241.LogLevel? = null,
129+
report: Boolean? = null,
130+
_customInputs: Map<String, String> = mapOf(),
131+
_customVersion: String? = null,
132+
) : this(files=files, socketTimeout=socketTimeout, connectTimeout=connectTimeout,
133+
insecure=insecure, env=env, envFile=envFile, envVariables=envVariables,
134+
privateEnvFile=privateEnvFile, privateEnvVariables=privateEnvVariables, proxy=proxy,
135+
dockerMode=dockerMode, logLevel=logLevel, report=report, _customInputs=_customInputs,
136+
_customVersion=_customVersion)
137+
138+
@Suppress("SpreadOperator")
139+
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
140+
*listOfNotNull(
141+
"files" to files.joinToString(" "),
142+
socketTimeout?.let { "socket_timeout" to it.toString() },
143+
connectTimeout?.let { "connect_timeout" to it.toString() },
144+
insecure?.let { "insecure" to it.toString() },
145+
env?.let { "env" to it },
146+
envFile?.let { "env_file" to it },
147+
envVariables?.let { "env_variables" to it.joinToString("\n") },
148+
privateEnvFile?.let { "private_env_file" to it },
149+
privateEnvVariables?.let { "private_env_variables" to it.joinToString("\n") },
150+
proxy?.let { "proxy" to it },
151+
dockerMode?.let { "docker_mode" to it.toString() },
152+
logLevel?.let { "log_level" to it.stringValue },
153+
report?.let { "report" to it.toString() },
154+
*_customInputs.toList().toTypedArray(),
155+
).toTypedArray()
156+
)
157+
158+
override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId)
159+
160+
public sealed class LogLevel(
161+
public val stringValue: String,
162+
) {
163+
public object Basic : IntellijHttpClientActionV241.LogLevel("BASIC")
164+
165+
public object Headers : IntellijHttpClientActionV241.LogLevel("HEADERS")
166+
167+
public object Verbose : IntellijHttpClientActionV241.LogLevel("VERBOSE")
168+
169+
public class Custom(
170+
customStringValue: String,
171+
) : IntellijHttpClientActionV241.LogLevel(customStringValue)
172+
}
173+
}

0 commit comments

Comments
 (0)