Skip to content

Commit 26c5bb1

Browse files
authored
Merge branch 'main' into vampire/version-range-support
2 parents 49d5b76 + 126a135 commit 26c5bb1

File tree

1 file changed

+0
-12
lines changed
  • action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/domain

1 file changed

+0
-12
lines changed

action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,3 @@ public val ActionCoords.subName: String get() = path?.let { "/$path" } ?: ""
3333
* action lives.
3434
*/
3535
public val ActionCoords.fullName: String get() = "$name$subName"
36-
37-
internal fun String.toActionCoords(): ActionCoords {
38-
val (coordinates, version) = this.split('@')
39-
val coordinateParts = coordinates.split('/')
40-
val (owner, name) = coordinateParts
41-
return ActionCoords(
42-
owner = owner,
43-
name = name,
44-
version = version,
45-
path = coordinateParts.drop(2).joinToString("/").takeUnless { it.isBlank() },
46-
)
47-
}

0 commit comments

Comments
 (0)