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

fix: update release URL returned from publish.js #185

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

nfriend
Copy link
Contributor

@nfriend nfriend commented Dec 9, 2020

Context

I noticed this while putting together #184 and thought I'd open a separate issue to discuss.

What does this PR do?

Updates the return value of publish.js to return a web URL to the release instead of the tag. This is more consistent with semantic-release/github: https://github.com/semantic-release/github/blob/81847f1abd1c9714e28a17f712739ffebb586bec/lib/publish.js#L101

Here's an example of what a "tag" page looks like: https://gitlab.com/gitlab-org/gitlab/-/tags/v13.6.0-ee

And here's an example of its corresponding "release" page: https://gitlab.com/gitlab-org/gitlab/-/releases/v13.6.0-ee

The later is a nicer representation of the release, and we may be removing release notes from the former in the future: https://gitlab.com/gitlab-org/gitlab/-/issues/292279.

Question

I looked through the plugin authoring docs, but I wasn't able to find how this return value is actually used. As a result, I'm not exactly sure what kind of change this is (fix, feat, or maybe even BREAKING CHANGE?).

@nfriend
Copy link
Contributor Author

nfriend commented Dec 9, 2020

@gr2m One more small PR for you, when you have time 🙂

@gr2m
Copy link
Member

gr2m commented Dec 9, 2020

I looked through the plugin authoring docs, but I wasn't able to find how this return value is actually used. As a result, I'm not exactly sure what kind of change this is (fix, feat, or maybe even BREAKING CHANGE?).

Hmm, I don't think there is an obvious answer here, but I'd say it's a fix, because the intention was always to link to the release, and this change implements the intended behavior. Plus I don't think the change would be disruptive to any potential dependents

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍🏼

@gr2m gr2m merged commit b22a7f3 into semantic-release:master Dec 9, 2020
@github-actions
Copy link

github-actions bot commented Dec 9, 2020

🎉 This PR is included in version 6.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants