Skip to content

Commit

Permalink
fix(changelog): revert swapping order of tags in diff link
Browse files Browse the repository at this point in the history
Changing the order doesn't work in BitBucket v4.4.2

master
  • Loading branch information
uglow committed Sep 6, 2017
1 parent e92dde8 commit e94594e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{~else}}
{{~@root.repoUrl}}/
{{~/if~}}
compare/diff?targetBranch=refs%2Ftags%2F{{currentTag}}&sourceBranch=refs%2Ftags%2F{{previousTag}})
compare/diff?targetBranch=refs%2Ftags%2F{{previousTag}}&sourceBranch=refs%2Ftags%2F{{currentTag}})
{{~else}}
{{~version}}
{{~/if}}
Expand Down
2 changes: 1 addition & 1 deletion test/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe('angular preset', function() {
expect(chunk).to.not.include('BREAKING');

expect(chunk).to.include('http://any.bbucket.host:7999/projects/proj/repos/repo-name/compare/diff?targetBranch' +
'=refs%2Ftags%2Fv2.0.0&sourceBranch=refs%2Ftags%2Fv1.0.0');
'=refs%2Ftags%2Fv1.0.0&sourceBranch=refs%2Ftags%2Fv2.0.0');

i++;
cb();
Expand Down

0 comments on commit e94594e

Please sign in to comment.