-
Notifications
You must be signed in to change notification settings - Fork 329
Fix for empty deployUrl check in deployment_create #2755
Conversation
app.UI.Output(" Release URL: %s", releaseUrl, terminal.WithSuccessStyle()) | ||
app.UI.Output("Deployment URL: https://%s", deployUrl, terminal.WithSuccessStyle()) | ||
|
||
if deployUrl != "" { |
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 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.
Oh! Do you mean a new case
like this?
case releaseUrl != "" && deployUrl == "":
app.UI.Output(strings.TrimSpace(deployNoURL)+"\n", terminal.WithSuccessStyle())
app.UI.Output(" Release URL: %s", releaseUrl, terminal.WithSuccessStyle())
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.
I meant a case deployUrl == ""
that wouldn't print out the release URL, but thinking more about it we do want the release URL too, so an if statement inside the releaseUrl
case was the proper approach, I'd do something like
case releaseUrl != "":
printInplaceInfo(inplace,app)
app.UI.Output(" Release URL: %s", releaseUrl, terminal.WithSuccessStyle())
if deployUrl != "" {
app.UI.Output("Deployment URL: https://%s", deployUrl
} else {
app.UI.Output(strings.TrimSpace(deployNoURL)+"\n", terminal.WithSuccessStyle())
}
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!
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.
Hey there @gunadhya - could you please add a changelog? Our guide on how to do this is here: https://github.com/hashicorp/waypoint/blob/main/.github/CHANGELOG_GUIDE.md
This is a bug
fix type
I've added a changelog. If there are any other beginner/Intermediate issues in this project, I'd be happy to work on them. |
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.
Hey @gunadhya - The changelog file name should match this pull request, so it should be updated to
.changelog/2755.txt
Thanks!
Otherwise I think we're good to merge.
Oh I'll get right on it. Does the documentation needed to be updated https://github.com/hashicorp/waypoint/blob/main/.github/CHANGELOG_GUIDE.md#changelog-entry-examples |
Oops, yep, that should be updated! Sorry about that ❤️ |
Hmm, will have to get back to you on that one! If you see something interesting in our backlog of issues, please feel free to drop a comment on it to discuss and we can figure something out before you get started on an issue 😄 |
Fixes #2645
I'm new to this project so please let me know if any updates are needed.