Closed cwhenderson20 closed 3 years ago
Thanks @cwhenderson20 . Looking at the changes, you may be able to use the regular conventional-changelog-angular package instead of this one for the new BitBucket spec. Are you able to:
If the "angular" preset does not work with the new repo ULR spec, I'll mark it is a breaking change (it is not backwards compatible for people using previous versions of BitBucket).
Thanks again @cwhenderson20 👍
@uglow, I did try the standard angular convention before searching for this preset. The commits actually link correctly, but the version header (compare two tags) does not. It appears that GitHub uses the ..
sequence to separate tags whereas Bitbucket uses the %0D
sequence.
I'm not sure, however, about other differences such as auto-linking ticket numbers and @ mentions.
As per documentation, this is the best I can find at the moment (since the URL structure isn't an API, it's not really documented) — with the relevant portion being:
Each username is unique throughout Bitbucket Cloud. Your username appears in the URL for your personal repositories, as in
https://bitbucket.org/<username>/<repository>
.
Thanks for following up @cwhenderson20. Given there's no way of having backwards compatibility (between the old URL schema and the new one), this is what I suggest:
Any news of this ?
@cwhenderson20 @bertho-zero Do you want to move forward with these changes? If so, this is what needs to happen:
Thanks!
@uglow Yes, I think it should be easy enough to make those changes. I'll create a new PR that just contains the reverse compare order changes and then update this one to include a breaking change for the new link formats.
Just a note: I'm quite busy, so I may not get to it until later in the week.
I was under the impression the conventional-changelog-angular-bitbucket
is setup to support Bitbucket Server. The change you are proposing would change this plugin to support Bitbucket Cloud instead. They are two different products with two different url schemes for repos.
Bitbucket Server, as far as I'm aware, still uses https://<host>/projects/<projectid>/repos/<repoid>
Bitbucket Cloud uses https://bitbucket.org/<username>/<repository>
The both also have different schemes for comparing tags.
Closing due to lack of progress/need.
This PR updates the URL scheme in the the templates to match the current Bitbucket spec. I know that Bitbucket has recently undergone a redesign and this is likely when they changed their scheme.
I didn't tag this commit as a feature because it doesn't feel like one, but if you feel it makes more sense to tag it with a major version in case the old scheme is still valid for some users, I'll be happy to update the PR.