-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Enhance status check label for promotions #3263
Enhance status check label for promotions #3263
Conversation
hi @bradrydzewski, we would like to use this change asap, could you drop a review? 🙏 |
I had a look at the change, and this seems to be additive so it shouldnt affect any existing functionality. I will defer to Brad, as i have not looked at the lifecycle of statuses in depth |
hi @tphoney, any feedback from @bradrydzewski? 🙏 |
@tphoney @bradrydzewski bump |
The import (
"fmt"
"github.com/drone/drone/core"
"github.com/drone/go-scm/scm"
+ github.com/gosimple/slug
) case core.EventPromote:
- return fmt.Sprintf("%s/promote/%s", name, deployTo)
+ return fmt.Sprintf("%s/promote/%s", name, slug.Make(deployTo)) |
hey @bradrydzewski, I think your suggestion is reasonable even if may there are no special character, better safe than sorry 😄 |
Any update on this? |
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.
LGTM - thanks for the change @michelangelomo - apologies for the delay
This PR introduces a change for labels applied to status checks related to promotions, actually a generic one is used.