Skip to content
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

underscore (_) in branch name is replaced with dash (-) #62

Closed
TSMMark opened this issue Mar 30, 2021 · 6 comments · Fixed by #63
Closed

underscore (_) in branch name is replaced with dash (-) #62

TSMMark opened this issue Mar 30, 2021 · 6 comments · Fixed by #63
Labels
enhancement New feature or request good first issue Good for newcomers released on @v3.x

Comments

@TSMMark
Copy link
Contributor

TSMMark commented Mar 30, 2021

Describe the bug
see issue title

To Reproduce
print the env vars and see that the branch name has dashes instead of underscores

Expected behavior
The env var should include the actual branch name, not replace any characters.

Screenshots
Screen Shot 2021-03-30 at 11 22 07 AM

Additional context
Thanks for the really useful package!

@TSMMark TSMMark added the bug Something isn't working label Mar 30, 2021
@rlespinasse
Copy link
Owner

Make sense for _SLUG variables.
For _SLUG_URL variables, the current rules will remain the same.

@rlespinasse rlespinasse added the good first issue Good for newcomers label Mar 30, 2021
@TSMMark
Copy link
Contributor Author

TSMMark commented Mar 30, 2021

I could send a PR if you point me to which lines to update and what specs + doc updates you would need

@rlespinasse
Copy link
Owner

@TSMMark
Copy link
Contributor Author

TSMMark commented Mar 30, 2021

So I will at minimum be updating this test case:

test('slug_ref: a reference with upper case letters', () => {
test_slugref('refs/heads/New_Awesome_Product', 'new-awesome-product')
test_slugref_cs('refs/heads/New_Awesome_Product', 'New-Awesome-Product')
})

Are we concerned about changing this and possibly breaking users' workflows? Or you think if they're specifying the action version properly we could rely on semantic versioning and release a major version and be okay?

@rlespinasse
Copy link
Owner

I see this change as a new feature, not a breaking change.
That also why the _SLUG_URL is not impacted by this change.
This will act as minor version on semantic versioning level.

@rlespinasse rlespinasse added enhancement New feature or request v3.x and removed bug Something isn't working labels Mar 30, 2021
@rlespinasse
Copy link
Owner

🎉 This issue has been resolved in version 3.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers released on @v3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants