uglow / conventional-changelog-angular-bitbucket

Angular conventional-changelog preset for BitBucket repositories
Other
12 stars 12 forks source link

fix(build): update bitbucket url schemes #7

Closed cwhenderson20 closed 3 years ago

cwhenderson20 commented 7 years ago

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.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 97.917% when pulling 1042cc5587ca08aa5c1ffc4d6799733f3b68fe08 on cwhenderson20:update-url-scheme into 1a4547b47c9924ea59d36fd448aa0c43cca11a15 on uglow:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 97.917% when pulling 1042cc5587ca08aa5c1ffc4d6799733f3b68fe08 on cwhenderson20:update-url-scheme into 1a4547b47c9924ea59d36fd448aa0c43cca11a15 on uglow:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 97.917% when pulling df7e9dbdc354b14ae76ebbfe876c4400034a456c on cwhenderson20:update-url-scheme into 1a4547b47c9924ea59d36fd448aa0c43cca11a15 on uglow:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 97.917% when pulling df7e9dbdc354b14ae76ebbfe876c4400034a456c on cwhenderson20:update-url-scheme into 1a4547b47c9924ea59d36fd448aa0c43cca11a15 on uglow:master.

uglow commented 7 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 👍

cwhenderson20 commented 7 years ago

@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>.

uglow commented 7 years ago

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:

bertho-zero commented 6 years ago

Any news of this ?

uglow commented 6 years ago

@cwhenderson20 @bertho-zero Do you want to move forward with these changes? If so, this is what needs to happen:

Thanks!

cwhenderson20 commented 6 years ago

@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.

KyleLNicholls commented 5 years ago

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.

uglow commented 3 years ago

Closing due to lack of progress/need.