-
-
Notifications
You must be signed in to change notification settings - Fork 24
refactor: unify content of ActionCoords name #1646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
02098ce
to
37375d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot going on here - I presume that you have a certain principal idea in your mind. Could you share more context in PR description?
Done |
c1dc24a
to
6d56a0d
Compare
...main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords.kt
Outdated
Show resolved
Hide resolved
6d56a0d
to
1dc7506
Compare
1dc7506
to
c691f60
Compare
c691
8000
f60
to
37ad070
Compare
37ad070
to
52919f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for unifying stuff and also simplifying some pieces!
@@ -287,6 +287,30 @@ class GenerationTest : | |||
binding.shouldContainAndMatchFile("ActionWithNoInputs.kt") | |||
} | |||
|
|||
test("subaction") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this missing test 👍
Before these changes,
ActionCoords#name
sometimes had the actual action coordinates, so for examplesome-name__some-sub
, sometimes it had the replacedsome-name/some-sub
.This is not good, as you never know what you get and also led to certain bugs where wrong things are written to metadata files for example.
This changes unifies the situation, so that the
name
only contains the repository name and thepath
is in a separate property with slashes.All other manipulation is then done where needed.