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
Hi there, I've noticed an issue with the branch_slug in the PR ApplicationSet generator that I'm hoping we can address. Since the library is using the Go slug library ("github.com/gosimple/slug") the default behavior is to have EnableSmartTruncate enabled/on. This creates a lot of problems when trying to generate unique branch names from long branches, such as:
When trying to use branch_slug to generate a container image name, this becomes a major problem especially in the second example. Here is what I expect and is more repeatable for other tools:
The simplest fix would be to disable smart truncate in the go library. I realize this may cause problems with existing params, but it's impossible to generate unique branch slugs when using smart truncate.
For instance, these all give back feature as the slug.
Hi there, I've noticed an issue with the
branch_slug
in the PR ApplicationSet generator that I'm hoping we can address. Since the library is using the Go slug library ("github.com/gosimple/slug") the default behavior is to have EnableSmartTruncate enabled/on. This creates a lot of problems when trying to generate unique branch names from long branches, such as:And a bigger issue with a branch that only contains one slash (or hyphen):
When trying to use branch_slug to generate a container image name, this becomes a major problem especially in the second example. Here is what I expect and is more repeatable for other tools:
The simplest fix would be to disable smart truncate in the go library. I realize this may cause problems with existing params, but it's impossible to generate unique branch slugs when using smart truncate.
For instance, these all give back
feature
as the slug.The text was updated successfully, but these errors were encountered: