You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action-binding-generator/api/action-binding-generator.api
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,24 @@
1
1
public final class io/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords {
2
-
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
2
+
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
3
+
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
3
4
public final fun component1 ()Ljava/lang/String;
4
5
public final fun component2 ()Ljava/lang/String;
5
6
public final fun component3 ()Ljava/lang/String;
6
-
public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;
7
-
public static synthetic fun copy$default (Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;
7
+
public final fun component4 ()Ljava/lang/String;
8
+
public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;
9
+
public static synthetic fun copy$default (Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;
8
10
public fun equals (Ljava/lang/Object;)Z
9
11
public final fun getName ()Ljava/lang/String;
10
12
public final fun getOwner ()Ljava/lang/String;
13
+
public final fun getPath ()Ljava/lang/String;
11
14
public final fun getVersion ()Ljava/lang/String;
12
15
public fun hashCode ()I
13
16
public fun toString ()Ljava/lang/String;
14
17
}
15
18
16
19
public final class io/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoordsKt {
20
+
public static final fun getFullName (Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;)Ljava/lang/String;
17
21
public static final fun getPrettyPrint (Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;)Ljava/lang/String;
18
-
public static final fun getRepoName (Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;)Ljava/lang/String;
19
22
public static final fun getSubName (Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;)Ljava/lang/String;
20
23
public static final fun isTopLevel (Lio/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords;)Z
Copy file name to clipboardExpand all lines: action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords.kt
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4,37 +4,39 @@ public data class ActionCoords(
4
4
valowner:String,
5
5
valname:String,
6
6
valversion:String,
7
+
valpath:String? = null,
7
8
)
8
9
9
10
/**
10
11
* A top-level action is an action with its `action.y(a)ml` file in the repository root, as opposed to actions stored
11
12
* in subdirectories.
12
13
*/
13
-
publicvalActionCoords.isTopLevel:Boolean get() ="/"!in name
Copy file name to clipboardExpand all lines: action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt
Copy file name to clipboardExpand all lines: action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/metadata/MetadataReading.kt
Copy file name to clipboardExpand all lines: action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/typing/TypesProviding.kt
Copy file name to clipboardExpand all lines: action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/ClassNamingTest.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ class ClassNamingTest :
9
9
context("buildActionClassName") {
10
10
listOf(
11
11
ActionCoords("irrelevant", "some-action-name", "v2") to "SomeActionName",
12
-
ActionCoords("irrelevant", "some-action-name/subaction", "v2") to "SomeActionNameSubaction",
13
-
ActionCoords("irrelevant", "some-action-name/foo/bar/baz", "v2") to "SomeActionNameFooBarBaz",
12
+
ActionCoords("irrelevant", "some-action-name", "v2", "subaction") to "SomeActionNameSubaction",
13
+
ActionCoords("irrelevant", "some-action-name", "v2", "foo/bar/baz") to "SomeActionNameFooBarBaz",
14
14
).forEach { (input, output) ->
15
15
test("should get '$input' and produce '$output'") {
Copy file name to clipboardExpand all lines: action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/GenerationTest.kt
Copy file name to clipboardExpand all lines: action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/typing/TypesProvidingTest.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ class TypesProvidingTest :
129
129
else->throwIOException()
130
130
}
131
131
}
132
-
val actionCoord =ActionCoords("some-owner", "some-name/some-sub", "v3")
132
+
val actionCoord =ActionCoords("some-owner", "some-name", "v3", "some-sub")
133
133
134
134
// When
135
135
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), fetchUri = fetchUri)
@@ -166,7 +166,7 @@ class TypesProvidingTest :
166
166
else->throwIOException()
167
167
}
168
168
}
169
-
val actionCoord =ActionCoords("some-owner", "some-name/some-sub", "v3")
169
+
val actionCoord =ActionCoords("some-owner", "some-name", "v3", "some-sub")
170
170
171
171
// When
172
172
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), fetchUri = fetchUri)
@@ -208,7 +208,7 @@ class TypesProvidingTest :
208
208
else->throwIOException()
209
209
}
210
210
}
211
-
val actionCoord =ActionCoords("some-owner", "some-name/some-sub", "v3")
211
+
val actionCoord =ActionCoords("some-owner", "some-name", "v3", "some-sub")
212
212
213
213
// When
214
214
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), fetchUri = fetchUri)
@@ -250,7 +250,7 @@ class TypesProvidingTest :
250
250
else->throwIOException()
251
251
}
252
252
}
253
-
val actionCoord =ActionCoords("some-owner", "some-name/some-sub", "v3")
253
+
val actionCoord =ActionCoords("some-owner", "some-name", "v3", "some-sub")
254
254
255
255
// When
256
256
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), fetchUri = fetchUri)
@@ -302,7 +302,7 @@ class TypesProvidingTest :
302
302
else->throwIOException()
303
303
}
304
304
}
305
-
val actionCoord =ActionCoords("some-owner", "some-name/some-sub", "v3")
305
+
val actionCoord =ActionCoords("some-owner", "some-name", "v3", "some-sub")
306
306
307
307
// When
308
308
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), fetchUri = fetchUri)
@@ -354,7 +354,7 @@ class TypesProvidingTest :
354
354
else->throwIOException()
355
355
}
356
356
}
357
-
val actionCoord =ActionCoords("some-owner", "some-name/some-sub", "v6")
357
+
val actionCoord =ActionCoords("some-owner", "some-name", "v6", "some-sub")
358
358
359
359
// When
360
360
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), fetchUri = fetchUri)
0 commit comments