-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(merge-versions): display link to target version #380
Conversation
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, aside from the warning about the unnecessary return.
Just a thought -- I use a bash script to hit the octobot API from the CLI. Admittedly my use is probably weird/not supported (and it wouldn't be hard for me to do the same url building) |
Share CLI please @rcorre . I'd love to not have to go into the web UI |
on building the URLs in the service or not: It makes sense to me to return the whole link, but would like to understand first if there was a hard and fast reason that the issue links were built in the client. @matthauck do you happen to remember if it matters whether the Issue links are built in the client or on the server side? |
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.
unsure about the case where the version already exists. otherwise, lgtm!
I could go either way. Constructing the whole URL in the service rather than the front-end might be nice, but since |
also: @rcorre's comment about better support for CLI support is a good reason also to move the url construction into the service. Less code in the front-end -> more extensibility? 🎉 |
Co-authored-by: Matt Hauck <[email protected]>
fixes #378 |
As a user of the octobot version page, I often want to copy a link
to the project version I have just created, in order to paste that
link into other work tracking tools.
This change adds a link to the newly-created version in the success
message, or adds a link to the previously-existing version if it already
existed.
Also: we were previously showing the "Success: ..." message even when
the merge-versions request failed. Now we do not transition to the success
message in error cases.