From ae4ba3554e68df9580b167375cc04ec95b7cdf27 Mon Sep 17 00:00:00 2001 From: hwigaro Date: Mon, 5 Nov 2018 21:37:04 -0300 Subject: [PATCH 1/7] Add support for azure devops and visualstudio --- src/commits.js | 6 ++++++ src/releases.js | 8 ++++++++ src/remote.js | 15 ++++++++++++++- test/data/remotes.js | 8 ++++++++ test/remote.js | 8 ++++++++ 5 files changed, 44 insertions(+), 1 deletion(-) diff --git a/src/commits.js b/src/commits.js index 88eefc33..1c211f76 100644 --- a/src/commits.js +++ b/src/commits.js @@ -172,6 +172,9 @@ function getIssueLink (match, id, remote, issueUrl) { if (issueUrl) { return issueUrl.replace('{id}', id) } + if (/dev.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { + return `${remote.project}/_workitems/edit/${id}` + } return `${remote.url}/issues/${id}` } @@ -185,5 +188,8 @@ function getMergeLink (id, remote) { if (/gitlab/.test(remote.hostname)) { return `${remote.url}/merge_requests/${id}` } + if (/dev.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { + return `${remote.url}/pullrequest/${id}` + } return `${remote.url}/pull/${id}` } diff --git a/src/releases.js b/src/releases.js index 1e0444bb..60a98552 100644 --- a/src/releases.js +++ b/src/releases.js @@ -87,6 +87,14 @@ function getCompareLink (from, to, remote) { if (/bitbucket/.test(remote.hostname)) { return `${remote.url}/compare/${to}..${from}` } + if (/dev.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { + // Azure prefixes branches with 'GB' and tags with 'GT', this is not the best way to handle it, but its something + // If string starts with 'v' or number, then is a Tag, else, is a branch + to = to.substring(0, 1) === 'v' || Number(to) ? `GT${to}` : `GB${to}` + from = from.substring(0, 1) === 'v' ? `GT${from}` : `GB${from}` + + return `${remote.url}/branches?baseVersion=${to}&targetVersion=${from}&_a=commits` + } return `${remote.url}/compare/${from}...${to}` } diff --git a/src/remote.js b/src/remote.js index f3146780..c8dcfbc4 100644 --- a/src/remote.js +++ b/src/remote.js @@ -12,14 +12,27 @@ export async function fetchRemote (name) { const protocol = remote.protocol === 'http:' ? 'http:' : 'https:' const hostname = remote.hostname || remote.host let repo = remote.repo + let project = remote.repo if (/gitlab/.test(hostname) && /\.git$/.test(remote.branch)) { // Support gitlab subgroups repo = `${remote.repo}/${remote.branch.replace(/\.git$/, '')}` + project = `${remote.repo}/${remote.branch.replace(/\.git$/, '')}` + } + + if (/dev.azure/.test(hostname)) { + repo = `${remote.path}` + project = remote.repo + } + + if (/visualstudio/.test(hostname)) { + repo = `${remote.repo}/${remote.branch}` + project = remote.owner } return { hostname, - url: `${protocol}//${hostname}/${repo}` + url: `${protocol}//${hostname}/${repo}`, + project: `${protocol}//${hostname}/${project}` } } diff --git a/test/data/remotes.js b/test/data/remotes.js index 0c2200ae..7fdbff29 100644 --- a/test/data/remotes.js +++ b/test/data/remotes.js @@ -10,5 +10,13 @@ export default { bitbucket: { hostname: 'bitbucket.org', url: 'https://bitbucket.org/user/repo' + }, + azure: { + hostname: 'dev.azure.com', + url: 'https://dev.azure.com/organization/project/_git/repo' + }, + visualstudio: { + hostname: 'organization.visualstudio.com', + url: 'https://organization.visualstudio.com/project/_git/repo' } } diff --git a/test/remote.js b/test/remote.js index 9e697753..f57f6414 100644 --- a/test/remote.js +++ b/test/remote.js @@ -49,6 +49,14 @@ const TEST_DATA = [ { remote: 'git@bitbucket.org:user/repo.git', expected: remotes.bitbucket + }, + { + remote: 'https://dev.azure.com/organization/project/_git/repo', + expected: remotes.azure + }, + { + remote: 'https://organization.visualstudio.com/project/_git/repo', + expected: remotes.visualstudio } ] From 1d8598c99c3b6a006d4c9155fec8c2e18e06517c Mon Sep 17 00:00:00 2001 From: hwigaro Date: Mon, 5 Nov 2018 21:39:07 -0300 Subject: [PATCH 2/7] Updated: changelog --- CHANGELOG.md | 227 ++++++++++++++++++++++++--------------------------- 1 file changed, 108 insertions(+), 119 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01ebcc41..8cba823d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,287 +4,276 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -#### [v1.8.1](https://github.com/CookPete/auto-changelog/compare/v1.8.0...v1.8.1) +#### [v1.8.1](https://github.com/Hwigaro/auto-changelog/compare/v1.8.1...v1.8.1) -> 8 October 2018 +> 6 November 2018 -- Fix Bitbucket compare links. [`#65`](https://github.com/CookPete/auto-changelog/pull/65) -- Update markdownlint-cli to the latest version 🚀 [`#54`](https://github.com/CookPete/auto-changelog/pull/54) -- Update markdownlint-cli to the latest version 🚀 [`#51`](https://github.com/CookPete/auto-changelog/pull/51) -- Add author to fixes and merges [`#58`](https://github.com/CookPete/auto-changelog/issues/58) -- Remove unsupported node versions from travis builds [`df63917`](https://github.com/CookPete/auto-changelog/commit/df63917391f3b30ceaa13a774b05889e659e4dd4) -- Add timeout to URL fetching test [`d635a06`](https://github.com/CookPete/auto-changelog/commit/d635a06cf9e544fd4b11a9f6eed0fbdc597d41ea) -- Add node 6.0 to travis builds [`088077e`](https://github.com/CookPete/auto-changelog/commit/088077e51fe581d41dfeb56b009845be9d9e3c65) +- Add support for azure devops and visualstudio [`ae4ba35`](https://github.com/Hwigaro/auto-changelog/commit/ae4ba3554e68df9580b167375cc04ec95b7cdf27) -#### [v1.8.0](https://github.com/CookPete/auto-changelog/compare/v1.7.2...v1.8.0) +#### [v1.8.0](https://github.com/Hwigaro/auto-changelog/compare/v1.7.2...v1.8.0) > 23 July 2018 - Add support for external templates [`#49`](https://github.com/CookPete/auto-changelog/issues/49) [`#50`](https://github.com/CookPete/auto-changelog/pull/50) - Bump nyc [`#46`](https://github.com/CookPete/auto-changelog/pull/46) -- Add README.md to lint checks [`5aab29f`](https://github.com/CookPete/auto-changelog/commit/5aab29f18d4187fa2480cd7754eba8e579ea0534) -- Tweak readme headings [`9f08899`](https://github.com/CookPete/auto-changelog/commit/9f08899466ccc515609456192e15d60c60db411b) -- Remove git from engines [`bac0248`](https://github.com/CookPete/auto-changelog/commit/bac024828c93587ea4603865e5946382f9e88070) +- Add README.md to lint checks [`5aab29f`](https://github.com/Hwigaro/auto-changelog/commit/5aab29f18d4187fa2480cd7754eba8e579ea0534) +- Tweak readme headings [`9f08899`](https://github.com/Hwigaro/auto-changelog/commit/9f08899466ccc515609456192e15d60c60db411b) +- Remove git from engines [`bac0248`](https://github.com/Hwigaro/auto-changelog/commit/bac024828c93587ea4603865e5946382f9e88070) -#### [v1.7.2](https://github.com/CookPete/auto-changelog/compare/v1.7.1...v1.7.2) +#### [v1.7.2](https://github.com/Hwigaro/auto-changelog/compare/v1.7.0...v1.7.2) > 28 June 2018 +- Fix releases sorting when unreleased enabled [`#45`](https://github.com/Hwigaro/auto-changelog/pull/45) - Fix unreleased section sorting [`#48`](https://github.com/CookPete/auto-changelog/issues/48) - Add markdown linting [`#47`](https://github.com/CookPete/auto-changelog/issues/47) -- Fix changelog spacing [`5e8ffe5`](https://github.com/CookPete/auto-changelog/commit/5e8ffe564b2752f4f1828d64174cc784f6168fdf) -- Use %B for supported git versions [`1b9c3d7`](https://github.com/CookPete/auto-changelog/commit/1b9c3d71732244b6a2c265dae9aae879bd5f33b2) -- Add engines to package.json [`ffbe439`](https://github.com/CookPete/auto-changelog/commit/ffbe4392317f5262078751bde3d6d2d6c9a745a2) - -#### [v1.7.1](https://github.com/CookPete/auto-changelog/compare/v1.7.0...v1.7.1) - -> 31 May 2018 - -- Fix releases sorting when unreleased enabled [`#45`](https://github.com/CookPete/auto-changelog/pull/45) - Use async fs utils instead of fs-extra [`#42`](https://github.com/CookPete/auto-changelog/pull/42) - Update git log format to support earlier git versions [`#43`](https://github.com/CookPete/auto-changelog/issues/43) +- Fix changelog spacing [`5e8ffe5`](https://github.com/Hwigaro/auto-changelog/commit/5e8ffe564b2752f4f1828d64174cc784f6168fdf) +- Use %B for supported git versions [`1b9c3d7`](https://github.com/Hwigaro/auto-changelog/commit/1b9c3d71732244b6a2c265dae9aae879bd5f33b2) +- Add engines to package.json [`ffbe439`](https://github.com/Hwigaro/auto-changelog/commit/ffbe4392317f5262078751bde3d6d2d6c9a745a2) -#### [v1.7.0](https://github.com/CookPete/auto-changelog/compare/v1.6.0...v1.7.0) +#### [v1.7.0](https://github.com/Hwigaro/auto-changelog/compare/v1.6.0...v1.7.0) > 23 May 2018 -- Add replaceText package option [`77d73ee`](https://github.com/CookPete/auto-changelog/commit/77d73ee4a44d5d207ba0982bf1e27812739d542a) +- Add replaceText package option [`77d73ee`](https://github.com/Hwigaro/auto-changelog/commit/77d73ee4a44d5d207ba0982bf1e27812739d542a) -#### [v1.6.0](https://github.com/CookPete/auto-changelog/compare/v1.5.0...v1.6.0) +#### [v1.6.0](https://github.com/Hwigaro/auto-changelog/compare/v1.5.0...v1.6.0) > 17 May 2018 - Add --breaking-pattern option [`#41`](https://github.com/CookPete/auto-changelog/issues/41) - Add --include-branch option [`#38`](https://github.com/CookPete/auto-changelog/issues/38) -- Fix duplicate test data commit hashes [`7f448ce`](https://github.com/CookPete/auto-changelog/commit/7f448ce7154e7da4d677aa4c96a2721499436edb) +- Fix duplicate test data commit hashes [`7f448ce`](https://github.com/Hwigaro/auto-changelog/commit/7f448ce7154e7da4d677aa4c96a2721499436edb) -#### [v1.5.0](https://github.com/CookPete/auto-changelog/compare/v1.4.6...v1.5.0) +#### [v1.5.0](https://github.com/Hwigaro/auto-changelog/compare/v1.4.6...v1.5.0) > 16 May 2018 -- Feat: match template helper [`#40`](https://github.com/CookPete/auto-changelog/pull/40) -- Add commit-list template helper [`#36`](https://github.com/CookPete/auto-changelog/issues/36) [`#39`](https://github.com/CookPete/auto-changelog/issues/39) +- Feat: match template helper [`#40`](https://github.com/Hwigaro/auto-changelog/pull/40) +- Add commit-list template helper [`#36`](https://github.com/Hwigaro/auto-changelog/issues/36) [`#39`](https://github.com/Hwigaro/auto-changelog/issues/39) - Use UTC dates by default [`#37`](https://github.com/CookPete/auto-changelog/issues/37) -- Move helper tests to separate files [`71388c2`](https://github.com/CookPete/auto-changelog/commit/71388c2dca9d9d50df540f904de5b3c0c0fea86a) -- Remove unused imports from template tests [`5ca7c61`](https://github.com/CookPete/auto-changelog/commit/5ca7c619dd9f8ca02cdcb67469025f71ab10cc2f) +- Move helper tests to separate files [`71388c2`](https://github.com/Hwigaro/auto-changelog/commit/71388c2dca9d9d50df540f904de5b3c0c0fea86a) +- Remove unused imports from template tests [`5ca7c61`](https://github.com/Hwigaro/auto-changelog/commit/5ca7c619dd9f8ca02cdcb67469025f71ab10cc2f) -#### [v1.4.6](https://github.com/CookPete/auto-changelog/compare/v1.4.5...v1.4.6) +#### [v1.4.6](https://github.com/Hwigaro/auto-changelog/compare/v1.4.5...v1.4.6) > 15 March 2018 -- Added support for old git versions [`#35`](https://github.com/CookPete/auto-changelog/pull/35) +- Added support for old git versions [`#35`](https://github.com/Hwigaro/auto-changelog/pull/35) -#### [v1.4.5](https://github.com/CookPete/auto-changelog/compare/v1.4.4...v1.4.5) +#### [v1.4.5](https://github.com/Hwigaro/auto-changelog/compare/v1.4.4...v1.4.5) > 27 February 2018 - Correctly prefix package version [`#33`](https://github.com/CookPete/auto-changelog/issues/33) -#### [v1.4.4](https://github.com/CookPete/auto-changelog/compare/v1.4.3...v1.4.4) +#### [v1.4.4](https://github.com/Hwigaro/auto-changelog/compare/v1.4.3...v1.4.4) > 22 February 2018 - Do not show date for unreleased section [`#31`](https://github.com/CookPete/auto-changelog/issues/31) -- Fix unreleased compare URL [`24fbc63`](https://github.com/CookPete/auto-changelog/commit/24fbc63adfad6df630d496d7cf1c488d97189dfe) +- Fix unreleased compare URL [`24fbc63`](https://github.com/Hwigaro/auto-changelog/commit/24fbc63adfad6df630d496d7cf1c488d97189dfe) -#### [v1.4.3](https://github.com/CookPete/auto-changelog/compare/v1.4.2...v1.4.3) +#### [v1.4.3](https://github.com/Hwigaro/auto-changelog/compare/v1.4.2...v1.4.3) > 21 February 2018 - Add tag prefix to compare URLs [`#30`](https://github.com/CookPete/auto-changelog/issues/30) -#### [v1.4.2](https://github.com/CookPete/auto-changelog/compare/v1.4.1...v1.4.2) +#### [v1.4.2](https://github.com/Hwigaro/auto-changelog/compare/v1.4.1...v1.4.2) > 20 February 2018 -- Support for gitlab subgroups and self-hosted instances [`#28`](https://github.com/CookPete/auto-changelog/pull/28) -- Update standard to the latest version 🚀 [`#29`](https://github.com/CookPete/auto-changelog/pull/29) +- Support for gitlab subgroups and self-hosted instances [`#28`](https://github.com/Hwigaro/auto-changelog/pull/28) +- Update standard to the latest version 🚀 [`#29`](https://github.com/Hwigaro/auto-changelog/pull/29) -#### [v1.4.1](https://github.com/CookPete/auto-changelog/compare/v1.4.0...v1.4.1) +#### [v1.4.1](https://github.com/Hwigaro/auto-changelog/compare/v1.4.0...v1.4.1) > 30 January 2018 - Support commits with no message [`#27`](https://github.com/CookPete/auto-changelog/issues/27) -#### [v1.4.0](https://github.com/CookPete/auto-changelog/compare/v1.3.0...v1.4.0) +#### [v1.4.0](https://github.com/Hwigaro/auto-changelog/compare/v1.3.0...v1.4.0) > 18 January 2018 -- Update mocha to the latest version 🚀 [`#26`](https://github.com/CookPete/auto-changelog/pull/26) +- Update mocha to the latest version 🚀 [`#26`](https://github.com/Hwigaro/auto-changelog/pull/26) - Add support for generating logs without a git remote [`#23`](https://github.com/CookPete/auto-changelog/issues/23) - Update niceDate tests to avoid timezone issues [`#24`](https://github.com/CookPete/auto-changelog/issues/24) [`#25`](https://github.com/CookPete/auto-changelog/pull/25) - Add --tag-prefix option [`#22`](https://github.com/CookPete/auto-changelog/issues/22) -- Change use of "origin" to "remote" [`7c9c175`](https://github.com/CookPete/auto-changelog/commit/7c9c1757257be10e3beae072941d119d195becd7) -- Add --ignore-commit-pattern option [`8cbe121`](https://github.com/CookPete/auto-changelog/commit/8cbe121e857b8d99361e65fa462d035610f741c9) -- Fix tag prefix logic [`40e40fe`](https://github.com/CookPete/auto-changelog/commit/40e40fe303f00f28f6118c933c9a93913d46c7ad) +- Change use of "origin" to "remote" [`7c9c175`](https://github.com/Hwigaro/auto-changelog/commit/7c9c1757257be10e3beae072941d119d195becd7) +- Add --ignore-commit-pattern option [`8cbe121`](https://github.com/Hwigaro/auto-changelog/commit/8cbe121e857b8d99361e65fa462d035610f741c9) +- Fix tag prefix logic [`40e40fe`](https://github.com/Hwigaro/auto-changelog/commit/40e40fe303f00f28f6118c933c9a93913d46c7ad) -#### [v1.3.0](https://github.com/CookPete/auto-changelog/compare/v1.2.2...v1.3.0) +#### [v1.3.0](https://github.com/Hwigaro/auto-changelog/compare/v1.2.2...v1.3.0) > 21 December 2017 -- Update fs-extra to the latest version 🚀 [`#19`](https://github.com/CookPete/auto-changelog/pull/19) +- Update fs-extra to the latest version 🚀 [`#19`](https://github.com/Hwigaro/auto-changelog/pull/19) - Add --starting-commit option [`#21`](https://github.com/CookPete/auto-changelog/issues/21) - Add --issue-pattern option [`#18`](https://github.com/CookPete/auto-changelog/issues/18) - Add --latest-version option [`#17`](https://github.com/CookPete/auto-changelog/issues/17) -- Override package options with command line options [`20e3962`](https://github.com/CookPete/auto-changelog/commit/20e3962175c8168ec5494d1527b16e996e113777) -- Update tests [`2a74da4`](https://github.com/CookPete/auto-changelog/commit/2a74da474c3366f740cedb1c31a9c2539a1c9261) +- Override package options with command line options [`20e3962`](https://github.com/Hwigaro/auto-changelog/commit/20e3962175c8168ec5494d1527b16e996e113777) +- Update tests [`2a74da4`](https://github.com/Hwigaro/auto-changelog/commit/2a74da474c3366f740cedb1c31a9c2539a1c9261) -#### [v1.2.2](https://github.com/CookPete/auto-changelog/compare/v1.2.1...v1.2.2) +#### [v1.2.2](https://github.com/Hwigaro/auto-changelog/compare/v1.2.1...v1.2.2) > 5 December 2017 - Fix error when using --unreleased flag [`#16`](https://github.com/CookPete/auto-changelog/issues/16) -#### [v1.2.1](https://github.com/CookPete/auto-changelog/compare/v1.2.0...v1.2.1) +#### [v1.2.1](https://github.com/Hwigaro/auto-changelog/compare/v1.2.0...v1.2.1) > 4 December 2017 - Filter out merge commits [`#14`](https://github.com/CookPete/auto-changelog/pull/14) -- Add tests [`02613a3`](https://github.com/CookPete/auto-changelog/commit/02613a36e1071fb64a9d1251e4dae6d683a5b845) -- Parse commits that close pull requests [`cd7cd23`](https://github.com/CookPete/auto-changelog/commit/cd7cd23a39f28016bb3bab4e57b19c23042185a2) -- Remove support for broken message squash merge [`4616182`](https://github.com/CookPete/auto-changelog/commit/46161820fea1d778163e8af585e3876022eb5eef) +- Add tests [`02613a3`](https://github.com/Hwigaro/auto-changelog/commit/02613a36e1071fb64a9d1251e4dae6d683a5b845) +- Parse commits that close pull requests [`cd7cd23`](https://github.com/Hwigaro/auto-changelog/commit/cd7cd23a39f28016bb3bab4e57b19c23042185a2) +- Remove support for broken message squash merge [`4616182`](https://github.com/Hwigaro/auto-changelog/commit/46161820fea1d778163e8af585e3876022eb5eef) -#### [v1.2.0](https://github.com/CookPete/auto-changelog/compare/v1.1.0...v1.2.0) +#### [v1.2.0](https://github.com/Hwigaro/auto-changelog/compare/v1.1.0...v1.2.0) > 1 December 2017 - Add issue-url option to override issue URLs [`#13`](https://github.com/CookPete/auto-changelog/issues/13) -- Add major release to test data [`e14f753`](https://github.com/CookPete/auto-changelog/commit/e14f753fc39fb94f3a3ffc3ab9a41015a9b97f2f) -- Slightly larger heading for major releases [`d618f01`](https://github.com/CookPete/auto-changelog/commit/d618f019abc59da903cbafaa49ac9731e815b95a) -- Add basic requirements to readme [`835b77a`](https://github.com/CookPete/auto-changelog/commit/835b77a453c937bda0afa5a1697f702980c77dae) +- Add major release to test data [`e14f753`](https://github.com/Hwigaro/auto-changelog/commit/e14f753fc39fb94f3a3ffc3ab9a41015a9b97f2f) +- Slightly larger heading for major releases [`d618f01`](https://github.com/Hwigaro/auto-changelog/commit/d618f019abc59da903cbafaa49ac9731e815b95a) +- Add basic requirements to readme [`835b77a`](https://github.com/Hwigaro/auto-changelog/commit/835b77a453c937bda0afa5a1697f702980c77dae) -#### [v1.1.0](https://github.com/CookPete/auto-changelog/compare/v1.0.3...v1.1.0) +#### [v1.1.0](https://github.com/Hwigaro/auto-changelog/compare/v1.0.3...v1.1.0) > 9 November 2017 -- Support modifying commit limit with --commit-limit [`#12`](https://github.com/CookPete/auto-changelog/pull/12) -- Add util tests [`0c5a093`](https://github.com/CookPete/auto-changelog/commit/0c5a0936b9b84d2d417710ab82d282ebde598f97) -- Fix multiple issue URL parsing [`ddcffe0`](https://github.com/CookPete/auto-changelog/commit/ddcffe08fa2133547f37e9e896982531591cd852) -- Tweak removeIndentation util [`cb08984`](https://github.com/CookPete/auto-changelog/commit/cb08984453989ab0307020475525e114100d968f) +- Support modifying commit limit with --commit-limit [`#12`](https://github.com/Hwigaro/auto-changelog/pull/12) +- Add util tests [`0c5a093`](https://github.com/Hwigaro/auto-changelog/commit/0c5a0936b9b84d2d417710ab82d282ebde598f97) +- Fix multiple issue URL parsing [`ddcffe0`](https://github.com/Hwigaro/auto-changelog/commit/ddcffe08fa2133547f37e9e896982531591cd852) +- Tweak removeIndentation util [`cb08984`](https://github.com/Hwigaro/auto-changelog/commit/cb08984453989ab0307020475525e114100d968f) -#### [v1.0.3](https://github.com/CookPete/auto-changelog/compare/v1.0.2...v1.0.3) +#### [v1.0.3](https://github.com/Hwigaro/auto-changelog/compare/v1.0.2...v1.0.3) > 7 November 2017 -- Bump packages [`510c798`](https://github.com/CookPete/auto-changelog/commit/510c798fe6bb688234bb8b4eb3885055a47ee2bb) -- Fix version script [`f849dac`](https://github.com/CookPete/auto-changelog/commit/f849dac557b2c24512c553d9fccb93e1455a8c2e) -- Limit origin protocol to http or https [`51d3832`](https://github.com/CookPete/auto-changelog/commit/51d3832f02209b56499f209f822b442e601ef1a5) +- Bump packages [`510c798`](https://github.com/Hwigaro/auto-changelog/commit/510c798fe6bb688234bb8b4eb3885055a47ee2bb) +- Fix version script [`f849dac`](https://github.com/Hwigaro/auto-changelog/commit/f849dac557b2c24512c553d9fccb93e1455a8c2e) +- Limit origin protocol to http or https [`51d3832`](https://github.com/Hwigaro/auto-changelog/commit/51d3832f02209b56499f209f822b442e601ef1a5) -#### [v1.0.2](https://github.com/CookPete/auto-changelog/compare/v1.0.1...v1.0.2) +#### [v1.0.2](https://github.com/Hwigaro/auto-changelog/compare/v1.0.1...v1.0.2) > 31 October 2017 -- Tweak package read logic [`5ca75a2`](https://github.com/CookPete/auto-changelog/commit/5ca75a2a051a496fe7899185d486dc6447a44d7a) -- Fall back to https origin protocol [`74e29b4`](https://github.com/CookPete/auto-changelog/commit/74e29b4c40a8522a8aa33b6b66e845859dbcde1d) +- Tweak package read logic [`5ca75a2`](https://github.com/Hwigaro/auto-changelog/commit/5ca75a2a051a496fe7899185d486dc6447a44d7a) +- Fall back to https origin protocol [`74e29b4`](https://github.com/Hwigaro/auto-changelog/commit/74e29b4c40a8522a8aa33b6b66e845859dbcde1d) -#### [v1.0.1](https://github.com/CookPete/auto-changelog/compare/v1.0.0...v1.0.1) +#### [v1.0.1](https://github.com/Hwigaro/auto-changelog/compare/v1.0.0...v1.0.1) > 27 October 2017 -- Filter out commits with the same message as an existing merge [`2a420f7`](https://github.com/CookPete/auto-changelog/commit/2a420f793ac3b761291cfd5499676a80953cbee7) -- Update readme [`54fc665`](https://github.com/CookPete/auto-changelog/commit/54fc6659e9283b6d6afc95486893aa56df13111c) +- Filter out commits with the same message as an existing merge [`2a420f7`](https://github.com/Hwigaro/auto-changelog/commit/2a420f793ac3b761291cfd5499676a80953cbee7) +- Update readme [`54fc665`](https://github.com/Hwigaro/auto-changelog/commit/54fc6659e9283b6d6afc95486893aa56df13111c) -### [v1.0.0](https://github.com/CookPete/auto-changelog/compare/v0.3.6...v1.0.0) +### [v1.0.0](https://github.com/Hwigaro/auto-changelog/compare/v0.3.6...v1.0.0) > 27 October 2017 -- Update dependencies to enable Greenkeeper 🌴 [`#10`](https://github.com/CookPete/auto-changelog/pull/10) -- Refactor codebase [`dab29fb`](https://github.com/CookPete/auto-changelog/commit/dab29fb3a030ffe2799075ef46c70c734d8d2b89) -- Add greenkeeper-lockfile support [`126c6fb`](https://github.com/CookPete/auto-changelog/commit/126c6fbd054c16624ab39cbb51a2eab99bc832c6) -- Remove dependency status badges [`bd072be`](https://github.com/CookPete/auto-changelog/commit/bd072bef982f4fe0d309c4f24a028b9e8db1513d) +- Update dependencies to enable Greenkeeper 🌴 [`#10`](https://github.com/Hwigaro/auto-changelog/pull/10) +- Refactor codebase [`dab29fb`](https://github.com/Hwigaro/auto-changelog/commit/dab29fb3a030ffe2799075ef46c70c734d8d2b89) +- Add greenkeeper-lockfile support [`126c6fb`](https://github.com/Hwigaro/auto-changelog/commit/126c6fbd054c16624ab39cbb51a2eab99bc832c6) +- Remove dependency status badges [`bd072be`](https://github.com/Hwigaro/auto-changelog/commit/bd072bef982f4fe0d309c4f24a028b9e8db1513d) -#### [v0.3.6](https://github.com/CookPete/auto-changelog/compare/v0.3.5...v0.3.6) +#### [v0.3.6](https://github.com/Hwigaro/auto-changelog/compare/v0.3.5...v0.3.6) > 23 October 2017 - Use origin hostname instead of host [`#9`](https://github.com/CookPete/auto-changelog/issues/9) -- Correct bitbucket compare URLs [`9d34452`](https://github.com/CookPete/auto-changelog/commit/9d344527171c158e1d56fdfde5cce870c5ba84bf) +- Correct bitbucket compare URLs [`9d34452`](https://github.com/Hwigaro/auto-changelog/commit/9d344527171c158e1d56fdfde5cce870c5ba84bf) -#### [v0.3.5](https://github.com/CookPete/auto-changelog/compare/v0.3.4...v0.3.5) +#### [v0.3.5](https://github.com/Hwigaro/auto-changelog/compare/v0.3.4...v0.3.5) > 6 October 2017 - Add babel-polyfill [`#8`](https://github.com/CookPete/auto-changelog/issues/8) -#### [v0.3.4](https://github.com/CookPete/auto-changelog/compare/v0.3.3...v0.3.4) +#### [v0.3.4](https://github.com/Hwigaro/auto-changelog/compare/v0.3.3...v0.3.4) > 5 October 2017 -- Use async/await instead of promises [`dff4653`](https://github.com/CookPete/auto-changelog/commit/dff465371252ce6ab4cd05e49d4c41fd8d3bb37a) -- Remove need for array.find polyfill [`78a1cb8`](https://github.com/CookPete/auto-changelog/commit/78a1cb8ac9327ecb0efadffed037f90191bdce5a) -- Tweak version script [`152b85f`](https://github.com/CookPete/auto-changelog/commit/152b85f967d74a0f81cccac8ce6f5d5831f4d91b) +- Use async/await instead of promises [`dff4653`](https://github.com/Hwigaro/auto-changelog/commit/dff465371252ce6ab4cd05e49d4c41fd8d3bb37a) +- Remove need for array.find polyfill [`78a1cb8`](https://github.com/Hwigaro/auto-changelog/commit/78a1cb8ac9327ecb0efadffed037f90191bdce5a) +- Tweak version script [`152b85f`](https://github.com/Hwigaro/auto-changelog/commit/152b85f967d74a0f81cccac8ce6f5d5831f4d91b) -#### [v0.3.3](https://github.com/CookPete/auto-changelog/compare/v0.3.2...v0.3.3) +#### [v0.3.3](https://github.com/Hwigaro/auto-changelog/compare/v0.3.2...v0.3.3) > 24 September 2017 - Bump packages [`#7`](https://github.com/CookPete/auto-changelog/issues/7) -- Use babel-preset-env [`3eb90ce`](https://github.com/CookPete/auto-changelog/commit/3eb90ce74791fa803e3013aab12d0ff3cecc403b) -- Lint fix [`67c38dd`](https://github.com/CookPete/auto-changelog/commit/67c38ddf70b7420de0a9bae061efe858e879e0b7) +- Use babel-preset-env [`3eb90ce`](https://github.com/Hwigaro/auto-changelog/commit/3eb90ce74791fa803e3013aab12d0ff3cecc403b) +- Lint fix [`67c38dd`](https://github.com/Hwigaro/auto-changelog/commit/67c38ddf70b7420de0a9bae061efe858e879e0b7) -#### [v0.3.2](https://github.com/CookPete/auto-changelog/compare/v0.3.1...v0.3.2) +#### [v0.3.2](https://github.com/Hwigaro/auto-changelog/compare/v0.3.1...v0.3.2) > 14 September 2017 - Prevent duplicate commits being listed [`#3`](https://github.com/CookPete/auto-changelog/issues/3) -#### [v0.3.1](https://github.com/CookPete/auto-changelog/compare/v0.3.0...v0.3.1) +#### [v0.3.1](https://github.com/Hwigaro/auto-changelog/compare/v0.3.0...v0.3.1) > 9 September 2016 -- Improve origin URL parsing [`#2`](https://github.com/CookPete/auto-changelog/issues/2) [`#5`](https://github.com/CookPete/auto-changelog/issues/5) -- Remove semicolons [`2ff61e2`](https://github.com/CookPete/auto-changelog/commit/2ff61e2f6b415bd24cfdf1788a3a4239138e6aa2) -- Bump packages [`c6b1b18`](https://github.com/CookPete/auto-changelog/commit/c6b1b18fdef492a382732b173487c1cf3d42915c) -- Use template literal for success string [`017f884`](https://github.com/CookPete/auto-changelog/commit/017f884bea2bdca22f8b07ac36e0968efdaf18c0) +- Improve origin URL parsing [`#2`](https://github.com/Hwigaro/auto-changelog/issues/2) [`#5`](https://github.com/Hwigaro/auto-changelog/issues/5) +- Remove semicolons [`2ff61e2`](https://github.com/Hwigaro/auto-changelog/commit/2ff61e2f6b415bd24cfdf1788a3a4239138e6aa2) +- Bump packages [`c6b1b18`](https://github.com/Hwigaro/auto-changelog/commit/c6b1b18fdef492a382732b173487c1cf3d42915c) +- Use template literal for success string [`017f884`](https://github.com/Hwigaro/auto-changelog/commit/017f884bea2bdca22f8b07ac36e0968efdaf18c0) -#### [v0.3.0](https://github.com/CookPete/auto-changelog/compare/v0.2.2...v0.3.0) +#### [v0.3.0](https://github.com/Hwigaro/auto-changelog/compare/v0.2.2...v0.3.0) > 11 January 2016 -- Add semicolons after class properties [`07b2de5`](https://github.com/CookPete/auto-changelog/commit/07b2de5131f4354565b2ba94a5fc181a1448b5c2) -- Remove unique issue filter [`11acb7e`](https://github.com/CookPete/auto-changelog/commit/11acb7e4a9f2782a95e0932917828646103bd85a) -- Case insensitive issue URL parsing [`d152cf6`](https://github.com/CookPete/auto-changelog/commit/d152cf6fed739f956d9abae0bd67fee907577d8c) +- Add semicolons after class properties [`07b2de5`](https://github.com/Hwigaro/auto-changelog/commit/07b2de5131f4354565b2ba94a5fc181a1448b5c2) +- Remove unique issue filter [`11acb7e`](https://github.com/Hwigaro/auto-changelog/commit/11acb7e4a9f2782a95e0932917828646103bd85a) +- Case insensitive issue URL parsing [`d152cf6`](https://github.com/Hwigaro/auto-changelog/commit/d152cf6fed739f956d9abae0bd67fee907577d8c) -#### [v0.2.2](https://github.com/CookPete/auto-changelog/compare/v0.2.1...v0.2.2) +#### [v0.2.2](https://github.com/Hwigaro/auto-changelog/compare/v0.2.1...v0.2.2) > 2 January 2016 -- Add a commit-only release to test data [`99927a9`](https://github.com/CookPete/auto-changelog/commit/99927a9b2126e656f70964f303a477aa4a5f811b) -- Update templating logic [`12c0624`](https://github.com/CookPete/auto-changelog/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617) -- More sensible formatDate [`db92947`](https://github.com/CookPete/auto-changelog/commit/db92947e6129cc20cd7777b7ed90b2bd547918c0) +- Add a commit-only release to test data [`99927a9`](https://github.com/Hwigaro/auto-changelog/commit/99927a9b2126e656f70964f303a477aa4a5f811b) +- Update templating logic [`12c0624`](https://github.com/Hwigaro/auto-changelog/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617) +- More sensible formatDate [`db92947`](https://github.com/Hwigaro/auto-changelog/commit/db92947e6129cc20cd7777b7ed90b2bd547918c0) -#### [v0.2.1](https://github.com/CookPete/auto-changelog/compare/v0.2.0...v0.2.1) +#### [v0.2.1](https://github.com/Hwigaro/auto-changelog/compare/v0.2.0...v0.2.1) > 2 January 2016 -- Replace toLocaleString usage with months array [`0008264`](https://github.com/CookPete/auto-changelog/commit/0008264bcabddf8d2b6b19fde7aa41b0de7a5b77) +- Replace toLocaleString usage with months array [`0008264`](https://github.com/Hwigaro/auto-changelog/commit/0008264bcabddf8d2b6b19fde7aa41b0de7a5b77) -#### [v0.2.0](https://github.com/CookPete/auto-changelog/compare/v0.1.1...v0.2.0) +#### [v0.2.0](https://github.com/Hwigaro/auto-changelog/compare/v0.1.1...v0.2.0) > 2 January 2016 -- Add support for specifying templates [`369b51e`](https://github.com/CookPete/auto-changelog/commit/369b51e9ff05bccba19cd09d9d519bca579bf972) -- Start using compact changelog [`8cbac18`](https://github.com/CookPete/auto-changelog/commit/8cbac1857fb9c61a9227d01ba48bbd7a74b39697) -- Lint and test before versioning [`9df54b4`](https://github.com/CookPete/auto-changelog/commit/9df54b4bf898a7efdee3f702af71307f28dc7cec) +- Add support for specifying templates [`369b51e`](https://github.com/Hwigaro/auto-changelog/commit/369b51e9ff05bccba19cd09d9d519bca579bf972) +- Start using compact changelog [`8cbac18`](https://github.com/Hwigaro/auto-changelog/commit/8cbac1857fb9c61a9227d01ba48bbd7a74b39697) +- Lint and test before versioning [`9df54b4`](https://github.com/Hwigaro/auto-changelog/commit/9df54b4bf898a7efdee3f702af71307f28dc7cec) -#### [v0.1.1](https://github.com/CookPete/auto-changelog/compare/v0.1.0...v0.1.1) +#### [v0.1.1](https://github.com/Hwigaro/auto-changelog/compare/v0.1.0...v0.1.1) > 31 December 2015 -- Explicitly render links for PRs and issues [`0a384cd`](https://github.com/CookPete/auto-changelog/commit/0a384cdeb3e9c3641fc3f655b0d9aeff58f8ebd3) -- Fix --package bug [`7f12f81`](https://github.com/CookPete/auto-changelog/commit/7f12f81f06441af4c74508ccc673e7052dec8d18) +- Explicitly render links for PRs and issues [`0a384cd`](https://github.com/Hwigaro/auto-changelog/commit/0a384cdeb3e9c3641fc3f655b0d9aeff58f8ebd3) +- Fix --package bug [`7f12f81`](https://github.com/Hwigaro/auto-changelog/commit/7f12f81f06441af4c74508ccc673e7052dec8d18) -#### [v0.1.0](https://github.com/CookPete/auto-changelog/compare/v0.0.1...v0.1.0) +#### [v0.1.0](https://github.com/Hwigaro/auto-changelog/compare/v0.0.1...v0.1.0) > 31 December 2015 -- Add option for specifying output file [`#1`](https://github.com/CookPete/auto-changelog/issues/1) -- Add support for --package [`772fbb9`](https://github.com/CookPete/auto-changelog/commit/772fbb988f41d893bccd88417a2b5992543bc936) -- Add newline at end of generated logs [`837d088`](https://github.com/CookPete/auto-changelog/commit/837d0883f71dea332a46d1ae49749e1bfdc5b8b1) -- Generate changelog on version [`fd6f230`](https://github.com/CookPete/auto-changelog/commit/fd6f2300433d7cb5f9434b2fe64e1f2d9823fc93) +- Add option for specifying output file [`#1`](https://github.com/Hwigaro/auto-changelog/issues/1) +- Add support for --package [`772fbb9`](https://github.com/Hwigaro/auto-changelog/commit/772fbb988f41d893bccd88417a2b5992543bc936) +- Add newline at end of generated logs [`837d088`](https://github.com/Hwigaro/auto-changelog/commit/837d0883f71dea332a46d1ae49749e1bfdc5b8b1) +- Generate changelog on version [`fd6f230`](https://github.com/Hwigaro/auto-changelog/commit/fd6f2300433d7cb5f9434b2fe64e1f2d9823fc93) #### v0.0.1 > 31 December 2015 -- First commit [`436b409`](https://github.com/CookPete/auto-changelog/commit/436b409bb6b3f853d14e2eda6ca1d87f78d00a14) +- First commit [`436b409`](https://github.com/Hwigaro/auto-changelog/commit/436b409bb6b3f853d14e2eda6ca1d87f78d00a14) From 4f38d329e39cec9c3fc62063627ccc98fbbffa6d Mon Sep 17 00:00:00 2001 From: hwigaro Date: Wed, 7 Nov 2018 20:54:24 -0300 Subject: [PATCH 3/7] Removed unnecessary validation --- src/releases.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/releases.js b/src/releases.js index 60a98552..7f9cd4f9 100644 --- a/src/releases.js +++ b/src/releases.js @@ -88,12 +88,7 @@ function getCompareLink (from, to, remote) { return `${remote.url}/compare/${to}..${from}` } if (/dev.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { - // Azure prefixes branches with 'GB' and tags with 'GT', this is not the best way to handle it, but its something - // If string starts with 'v' or number, then is a Tag, else, is a branch - to = to.substring(0, 1) === 'v' || Number(to) ? `GT${to}` : `GB${to}` - from = from.substring(0, 1) === 'v' ? `GT${from}` : `GB${from}` - - return `${remote.url}/branches?baseVersion=${to}&targetVersion=${from}&_a=commits` + return `${remote.url}/branches?baseVersion=GT${to}&targetVersion=GT${from}&_a=commits` } return `${remote.url}/compare/${from}...${to}` } From a02465d79ce9d6c03ce205af991d4be2eb4cf05d Mon Sep 17 00:00:00 2001 From: Pete Cook Date: Wed, 7 Nov 2018 21:10:38 -0300 Subject: [PATCH 4/7] Removed unnecessary template string Co-Authored-By: Hwigaro --- src/remote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote.js b/src/remote.js index c8dcfbc4..a3882986 100644 --- a/src/remote.js +++ b/src/remote.js @@ -21,7 +21,7 @@ export async function fetchRemote (name) { } if (/dev.azure/.test(hostname)) { - repo = `${remote.path}` + repo = remote.path project = remote.repo } From 974433c632736cebb80bacbf3ae820bb1fd5603a Mon Sep 17 00:00:00 2001 From: hwigaro Date: Wed, 7 Nov 2018 21:20:39 -0300 Subject: [PATCH 5/7] Removed unused 'project' variable --- src/remote.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/remote.js b/src/remote.js index c8dcfbc4..c84200c7 100644 --- a/src/remote.js +++ b/src/remote.js @@ -17,7 +17,6 @@ export async function fetchRemote (name) { if (/gitlab/.test(hostname) && /\.git$/.test(remote.branch)) { // Support gitlab subgroups repo = `${remote.repo}/${remote.branch.replace(/\.git$/, '')}` - project = `${remote.repo}/${remote.branch.replace(/\.git$/, '')}` } if (/dev.azure/.test(hostname)) { From ffd9d3cac778694be237385c6effcf9540aba022 Mon Sep 17 00:00:00 2001 From: hwigaro Date: Wed, 7 Nov 2018 21:37:54 -0300 Subject: [PATCH 6/7] Added project url --- test/data/remotes.js | 8 +++++--- test/remote.js | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test/data/remotes.js b/test/data/remotes.js index 7fdbff29..170922cb 100644 --- a/test/data/remotes.js +++ b/test/data/remotes.js @@ -13,10 +13,12 @@ export default { }, azure: { hostname: 'dev.azure.com', - url: 'https://dev.azure.com/organization/project/_git/repo' + url: 'https://dev.azure.com/user/project/_git/repo', + project: 'https://dev.azure.com/user/project' }, visualstudio: { - hostname: 'organization.visualstudio.com', - url: 'https://organization.visualstudio.com/project/_git/repo' + hostname: 'user.visualstudio.com', + url: 'https://user.visualstudio.com/project/_git/repo', + project: 'https://user.visualstudio.com/project' } } diff --git a/test/remote.js b/test/remote.js index f57f6414..b25d5a50 100644 --- a/test/remote.js +++ b/test/remote.js @@ -51,11 +51,11 @@ const TEST_DATA = [ expected: remotes.bitbucket }, { - remote: 'https://dev.azure.com/organization/project/_git/repo', + remote: 'https://dev.azure.com/user/project/_git/repo', expected: remotes.azure }, { - remote: 'https://organization.visualstudio.com/project/_git/repo', + remote: 'https://user.visualstudio.com/project/_git/repo', expected: remotes.visualstudio } ] From 18fc44b37a0e93db94f6dae5d03650f8f287255d Mon Sep 17 00:00:00 2001 From: Pete Cook Date: Thu, 8 Nov 2018 08:31:11 +0000 Subject: [PATCH 7/7] Tweaks to Azure support PR --- CHANGELOG.md | 227 +++++++++++++++++++++++-------------------- README.md | 2 +- src/commits.js | 6 +- src/releases.js | 2 +- src/remote.js | 26 +++-- test/data/remotes.js | 4 +- test/remote.js | 2 +- 7 files changed, 143 insertions(+), 126 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cba823d..01ebcc41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,276 +4,287 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -#### [v1.8.1](https://github.com/Hwigaro/auto-changelog/compare/v1.8.1...v1.8.1) +#### [v1.8.1](https://github.com/CookPete/auto-changelog/compare/v1.8.0...v1.8.1) -> 6 November 2018 +> 8 October 2018 -- Add support for azure devops and visualstudio [`ae4ba35`](https://github.com/Hwigaro/auto-changelog/commit/ae4ba3554e68df9580b167375cc04ec95b7cdf27) +- Fix Bitbucket compare links. [`#65`](https://github.com/CookPete/auto-changelog/pull/65) +- Update markdownlint-cli to the latest version 🚀 [`#54`](https://github.com/CookPete/auto-changelog/pull/54) +- Update markdownlint-cli to the latest version 🚀 [`#51`](https://github.com/CookPete/auto-changelog/pull/51) +- Add author to fixes and merges [`#58`](https://github.com/CookPete/auto-changelog/issues/58) +- Remove unsupported node versions from travis builds [`df63917`](https://github.com/CookPete/auto-changelog/commit/df63917391f3b30ceaa13a774b05889e659e4dd4) +- Add timeout to URL fetching test [`d635a06`](https://github.com/CookPete/auto-changelog/commit/d635a06cf9e544fd4b11a9f6eed0fbdc597d41ea) +- Add node 6.0 to travis builds [`088077e`](https://github.com/CookPete/auto-changelog/commit/088077e51fe581d41dfeb56b009845be9d9e3c65) -#### [v1.8.0](https://github.com/Hwigaro/auto-changelog/compare/v1.7.2...v1.8.0) +#### [v1.8.0](https://github.com/CookPete/auto-changelog/compare/v1.7.2...v1.8.0) > 23 July 2018 - Add support for external templates [`#49`](https://github.com/CookPete/auto-changelog/issues/49) [`#50`](https://github.com/CookPete/auto-changelog/pull/50) - Bump nyc [`#46`](https://github.com/CookPete/auto-changelog/pull/46) -- Add README.md to lint checks [`5aab29f`](https://github.com/Hwigaro/auto-changelog/commit/5aab29f18d4187fa2480cd7754eba8e579ea0534) -- Tweak readme headings [`9f08899`](https://github.com/Hwigaro/auto-changelog/commit/9f08899466ccc515609456192e15d60c60db411b) -- Remove git from engines [`bac0248`](https://github.com/Hwigaro/auto-changelog/commit/bac024828c93587ea4603865e5946382f9e88070) +- Add README.md to lint checks [`5aab29f`](https://github.com/CookPete/auto-changelog/commit/5aab29f18d4187fa2480cd7754eba8e579ea0534) +- Tweak readme headings [`9f08899`](https://github.com/CookPete/auto-changelog/commit/9f08899466ccc515609456192e15d60c60db411b) +- Remove git from engines [`bac0248`](https://github.com/CookPete/auto-changelog/commit/bac024828c93587ea4603865e5946382f9e88070) -#### [v1.7.2](https://github.com/Hwigaro/auto-changelog/compare/v1.7.0...v1.7.2) +#### [v1.7.2](https://github.com/CookPete/auto-changelog/compare/v1.7.1...v1.7.2) > 28 June 2018 -- Fix releases sorting when unreleased enabled [`#45`](https://github.com/Hwigaro/auto-changelog/pull/45) - Fix unreleased section sorting [`#48`](https://github.com/CookPete/auto-changelog/issues/48) - Add markdown linting [`#47`](https://github.com/CookPete/auto-changelog/issues/47) +- Fix changelog spacing [`5e8ffe5`](https://github.com/CookPete/auto-changelog/commit/5e8ffe564b2752f4f1828d64174cc784f6168fdf) +- Use %B for supported git versions [`1b9c3d7`](https://github.com/CookPete/auto-changelog/commit/1b9c3d71732244b6a2c265dae9aae879bd5f33b2) +- Add engines to package.json [`ffbe439`](https://github.com/CookPete/auto-changelog/commit/ffbe4392317f5262078751bde3d6d2d6c9a745a2) + +#### [v1.7.1](https://github.com/CookPete/auto-changelog/compare/v1.7.0...v1.7.1) + +> 31 May 2018 + +- Fix releases sorting when unreleased enabled [`#45`](https://github.com/CookPete/auto-changelog/pull/45) - Use async fs utils instead of fs-extra [`#42`](https://github.com/CookPete/auto-changelog/pull/42) - Update git log format to support earlier git versions [`#43`](https://github.com/CookPete/auto-changelog/issues/43) -- Fix changelog spacing [`5e8ffe5`](https://github.com/Hwigaro/auto-changelog/commit/5e8ffe564b2752f4f1828d64174cc784f6168fdf) -- Use %B for supported git versions [`1b9c3d7`](https://github.com/Hwigaro/auto-changelog/commit/1b9c3d71732244b6a2c265dae9aae879bd5f33b2) -- Add engines to package.json [`ffbe439`](https://github.com/Hwigaro/auto-changelog/commit/ffbe4392317f5262078751bde3d6d2d6c9a745a2) -#### [v1.7.0](https://github.com/Hwigaro/auto-changelog/compare/v1.6.0...v1.7.0) +#### [v1.7.0](https://github.com/CookPete/auto-changelog/compare/v1.6.0...v1.7.0) > 23 May 2018 -- Add replaceText package option [`77d73ee`](https://github.com/Hwigaro/auto-changelog/commit/77d73ee4a44d5d207ba0982bf1e27812739d542a) +- Add replaceText package option [`77d73ee`](https://github.com/CookPete/auto-changelog/commit/77d73ee4a44d5d207ba0982bf1e27812739d542a) -#### [v1.6.0](https://github.com/Hwigaro/auto-changelog/compare/v1.5.0...v1.6.0) +#### [v1.6.0](https://github.com/CookPete/auto-changelog/compare/v1.5.0...v1.6.0) > 17 May 2018 - Add --breaking-pattern option [`#41`](https://github.com/CookPete/auto-changelog/issues/41) - Add --include-branch option [`#38`](https://github.com/CookPete/auto-changelog/issues/38) -- Fix duplicate test data commit hashes [`7f448ce`](https://github.com/Hwigaro/auto-changelog/commit/7f448ce7154e7da4d677aa4c96a2721499436edb) +- Fix duplicate test data commit hashes [`7f448ce`](https://github.com/CookPete/auto-changelog/commit/7f448ce7154e7da4d677aa4c96a2721499436edb) -#### [v1.5.0](https://github.com/Hwigaro/auto-changelog/compare/v1.4.6...v1.5.0) +#### [v1.5.0](https://github.com/CookPete/auto-changelog/compare/v1.4.6...v1.5.0) > 16 May 2018 -- Feat: match template helper [`#40`](https://github.com/Hwigaro/auto-changelog/pull/40) -- Add commit-list template helper [`#36`](https://github.com/Hwigaro/auto-changelog/issues/36) [`#39`](https://github.com/Hwigaro/auto-changelog/issues/39) +- Feat: match template helper [`#40`](https://github.com/CookPete/auto-changelog/pull/40) +- Add commit-list template helper [`#36`](https://github.com/CookPete/auto-changelog/issues/36) [`#39`](https://github.com/CookPete/auto-changelog/issues/39) - Use UTC dates by default [`#37`](https://github.com/CookPete/auto-changelog/issues/37) -- Move helper tests to separate files [`71388c2`](https://github.com/Hwigaro/auto-changelog/commit/71388c2dca9d9d50df540f904de5b3c0c0fea86a) -- Remove unused imports from template tests [`5ca7c61`](https://github.com/Hwigaro/auto-changelog/commit/5ca7c619dd9f8ca02cdcb67469025f71ab10cc2f) +- Move helper tests to separate files [`71388c2`](https://github.com/CookPete/auto-changelog/commit/71388c2dca9d9d50df540f904de5b3c0c0fea86a) +- Remove unused imports from template tests [`5ca7c61`](https://github.com/CookPete/auto-changelog/commit/5ca7c619dd9f8ca02cdcb67469025f71ab10cc2f) -#### [v1.4.6](https://github.com/Hwigaro/auto-changelog/compare/v1.4.5...v1.4.6) +#### [v1.4.6](https://github.com/CookPete/auto-changelog/compare/v1.4.5...v1.4.6) > 15 March 2018 -- Added support for old git versions [`#35`](https://github.com/Hwigaro/auto-changelog/pull/35) +- Added support for old git versions [`#35`](https://github.com/CookPete/auto-changelog/pull/35) -#### [v1.4.5](https://github.com/Hwigaro/auto-changelog/compare/v1.4.4...v1.4.5) +#### [v1.4.5](https://github.com/CookPete/auto-changelog/compare/v1.4.4...v1.4.5) > 27 February 2018 - Correctly prefix package version [`#33`](https://github.com/CookPete/auto-changelog/issues/33) -#### [v1.4.4](https://github.com/Hwigaro/auto-changelog/compare/v1.4.3...v1.4.4) +#### [v1.4.4](https://github.com/CookPete/auto-changelog/compare/v1.4.3...v1.4.4) > 22 February 2018 - Do not show date for unreleased section [`#31`](https://github.com/CookPete/auto-changelog/issues/31) -- Fix unreleased compare URL [`24fbc63`](https://github.com/Hwigaro/auto-changelog/commit/24fbc63adfad6df630d496d7cf1c488d97189dfe) +- Fix unreleased compare URL [`24fbc63`](https://github.com/CookPete/auto-changelog/commit/24fbc63adfad6df630d496d7cf1c488d97189dfe) -#### [v1.4.3](https://github.com/Hwigaro/auto-changelog/compare/v1.4.2...v1.4.3) +#### [v1.4.3](https://github.com/CookPete/auto-changelog/compare/v1.4.2...v1.4.3) > 21 February 2018 - Add tag prefix to compare URLs [`#30`](https://github.com/CookPete/auto-changelog/issues/30) -#### [v1.4.2](https://github.com/Hwigaro/auto-changelog/compare/v1.4.1...v1.4.2) +#### [v1.4.2](https://github.com/CookPete/auto-changelog/compare/v1.4.1...v1.4.2) > 20 February 2018 -- Support for gitlab subgroups and self-hosted instances [`#28`](https://github.com/Hwigaro/auto-changelog/pull/28) -- Update standard to the latest version 🚀 [`#29`](https://github.com/Hwigaro/auto-changelog/pull/29) +- Support for gitlab subgroups and self-hosted instances [`#28`](https://github.com/CookPete/auto-changelog/pull/28) +- Update standard to the latest version 🚀 [`#29`](https://github.com/CookPete/auto-changelog/pull/29) -#### [v1.4.1](https://github.com/Hwigaro/auto-changelog/compare/v1.4.0...v1.4.1) +#### [v1.4.1](https://github.com/CookPete/auto-changelog/compare/v1.4.0...v1.4.1) > 30 January 2018 - Support commits with no message [`#27`](https://github.com/CookPete/auto-changelog/issues/27) -#### [v1.4.0](https://github.com/Hwigaro/auto-changelog/compare/v1.3.0...v1.4.0) +#### [v1.4.0](https://github.com/CookPete/auto-changelog/compare/v1.3.0...v1.4.0) > 18 January 2018 -- Update mocha to the latest version 🚀 [`#26`](https://github.com/Hwigaro/auto-changelog/pull/26) +- Update mocha to the latest version 🚀 [`#26`](https://github.com/CookPete/auto-changelog/pull/26) - Add support for generating logs without a git remote [`#23`](https://github.com/CookPete/auto-changelog/issues/23) - Update niceDate tests to avoid timezone issues [`#24`](https://github.com/CookPete/auto-changelog/issues/24) [`#25`](https://github.com/CookPete/auto-changelog/pull/25) - Add --tag-prefix option [`#22`](https://github.com/CookPete/auto-changelog/issues/22) -- Change use of "origin" to "remote" [`7c9c175`](https://github.com/Hwigaro/auto-changelog/commit/7c9c1757257be10e3beae072941d119d195becd7) -- Add --ignore-commit-pattern option [`8cbe121`](https://github.com/Hwigaro/auto-changelog/commit/8cbe121e857b8d99361e65fa462d035610f741c9) -- Fix tag prefix logic [`40e40fe`](https://github.com/Hwigaro/auto-changelog/commit/40e40fe303f00f28f6118c933c9a93913d46c7ad) +- Change use of "origin" to "remote" [`7c9c175`](https://github.com/CookPete/auto-changelog/commit/7c9c1757257be10e3beae072941d119d195becd7) +- Add --ignore-commit-pattern option [`8cbe121`](https://github.com/CookPete/auto-changelog/commit/8cbe121e857b8d99361e65fa462d035610f741c9) +- Fix tag prefix logic [`40e40fe`](https://github.com/CookPete/auto-changelog/commit/40e40fe303f00f28f6118c933c9a93913d46c7ad) -#### [v1.3.0](https://github.com/Hwigaro/auto-changelog/compare/v1.2.2...v1.3.0) +#### [v1.3.0](https://github.com/CookPete/auto-changelog/compare/v1.2.2...v1.3.0) > 21 December 2017 -- Update fs-extra to the latest version 🚀 [`#19`](https://github.com/Hwigaro/auto-changelog/pull/19) +- Update fs-extra to the latest version 🚀 [`#19`](https://github.com/CookPete/auto-changelog/pull/19) - Add --starting-commit option [`#21`](https://github.com/CookPete/auto-changelog/issues/21) - Add --issue-pattern option [`#18`](https://github.com/CookPete/auto-changelog/issues/18) - Add --latest-version option [`#17`](https://github.com/CookPete/auto-changelog/issues/17) -- Override package options with command line options [`20e3962`](https://github.com/Hwigaro/auto-changelog/commit/20e3962175c8168ec5494d1527b16e996e113777) -- Update tests [`2a74da4`](https://github.com/Hwigaro/auto-changelog/commit/2a74da474c3366f740cedb1c31a9c2539a1c9261) +- Override package options with command line options [`20e3962`](https://github.com/CookPete/auto-changelog/commit/20e3962175c8168ec5494d1527b16e996e113777) +- Update tests [`2a74da4`](https://github.com/CookPete/auto-changelog/commit/2a74da474c3366f740cedb1c31a9c2539a1c9261) -#### [v1.2.2](https://github.com/Hwigaro/auto-changelog/compare/v1.2.1...v1.2.2) +#### [v1.2.2](https://github.com/CookPete/auto-changelog/compare/v1.2.1...v1.2.2) > 5 December 2017 - Fix error when using --unreleased flag [`#16`](https://github.com/CookPete/auto-changelog/issues/16) -#### [v1.2.1](https://github.com/Hwigaro/auto-changelog/compare/v1.2.0...v1.2.1) +#### [v1.2.1](https://github.com/CookPete/auto-changelog/compare/v1.2.0...v1.2.1) > 4 December 2017 - Filter out merge commits [`#14`](https://github.com/CookPete/auto-changelog/pull/14) -- Add tests [`02613a3`](https://github.com/Hwigaro/auto-changelog/commit/02613a36e1071fb64a9d1251e4dae6d683a5b845) -- Parse commits that close pull requests [`cd7cd23`](https://github.com/Hwigaro/auto-changelog/commit/cd7cd23a39f28016bb3bab4e57b19c23042185a2) -- Remove support for broken message squash merge [`4616182`](https://github.com/Hwigaro/auto-changelog/commit/46161820fea1d778163e8af585e3876022eb5eef) +- Add tests [`02613a3`](https://github.com/CookPete/auto-changelog/commit/02613a36e1071fb64a9d1251e4dae6d683a5b845) +- Parse commits that close pull requests [`cd7cd23`](https://github.com/CookPete/auto-changelog/commit/cd7cd23a39f28016bb3bab4e57b19c23042185a2) +- Remove support for broken message squash merge [`4616182`](https://github.com/CookPete/auto-changelog/commit/46161820fea1d778163e8af585e3876022eb5eef) -#### [v1.2.0](https://github.com/Hwigaro/auto-changelog/compare/v1.1.0...v1.2.0) +#### [v1.2.0](https://github.com/CookPete/auto-changelog/compare/v1.1.0...v1.2.0) > 1 December 2017 - Add issue-url option to override issue URLs [`#13`](https://github.com/CookPete/auto-changelog/issues/13) -- Add major release to test data [`e14f753`](https://github.com/Hwigaro/auto-changelog/commit/e14f753fc39fb94f3a3ffc3ab9a41015a9b97f2f) -- Slightly larger heading for major releases [`d618f01`](https://github.com/Hwigaro/auto-changelog/commit/d618f019abc59da903cbafaa49ac9731e815b95a) -- Add basic requirements to readme [`835b77a`](https://github.com/Hwigaro/auto-changelog/commit/835b77a453c937bda0afa5a1697f702980c77dae) +- Add major release to test data [`e14f753`](https://github.com/CookPete/auto-changelog/commit/e14f753fc39fb94f3a3ffc3ab9a41015a9b97f2f) +- Slightly larger heading for major releases [`d618f01`](https://github.com/CookPete/auto-changelog/commit/d618f019abc59da903cbafaa49ac9731e815b95a) +- Add basic requirements to readme [`835b77a`](https://github.com/CookPete/auto-changelog/commit/835b77a453c937bda0afa5a1697f702980c77dae) -#### [v1.1.0](https://github.com/Hwigaro/auto-changelog/compare/v1.0.3...v1.1.0) +#### [v1.1.0](https://github.com/CookPete/auto-changelog/compare/v1.0.3...v1.1.0) > 9 November 2017 -- Support modifying commit limit with --commit-limit [`#12`](https://github.com/Hwigaro/auto-changelog/pull/12) -- Add util tests [`0c5a093`](https://github.com/Hwigaro/auto-changelog/commit/0c5a0936b9b84d2d417710ab82d282ebde598f97) -- Fix multiple issue URL parsing [`ddcffe0`](https://github.com/Hwigaro/auto-changelog/commit/ddcffe08fa2133547f37e9e896982531591cd852) -- Tweak removeIndentation util [`cb08984`](https://github.com/Hwigaro/auto-changelog/commit/cb08984453989ab0307020475525e114100d968f) +- Support modifying commit limit with --commit-limit [`#12`](https://github.com/CookPete/auto-changelog/pull/12) +- Add util tests [`0c5a093`](https://github.com/CookPete/auto-changelog/commit/0c5a0936b9b84d2d417710ab82d282ebde598f97) +- Fix multiple issue URL parsing [`ddcffe0`](https://github.com/CookPete/auto-changelog/commit/ddcffe08fa2133547f37e9e896982531591cd852) +- Tweak removeIndentation util [`cb08984`](https://github.com/CookPete/auto-changelog/commit/cb08984453989ab0307020475525e114100d968f) -#### [v1.0.3](https://github.com/Hwigaro/auto-changelog/compare/v1.0.2...v1.0.3) +#### [v1.0.3](https://github.com/CookPete/auto-changelog/compare/v1.0.2...v1.0.3) > 7 November 2017 -- Bump packages [`510c798`](https://github.com/Hwigaro/auto-changelog/commit/510c798fe6bb688234bb8b4eb3885055a47ee2bb) -- Fix version script [`f849dac`](https://github.com/Hwigaro/auto-changelog/commit/f849dac557b2c24512c553d9fccb93e1455a8c2e) -- Limit origin protocol to http or https [`51d3832`](https://github.com/Hwigaro/auto-changelog/commit/51d3832f02209b56499f209f822b442e601ef1a5) +- Bump packages [`510c798`](https://github.com/CookPete/auto-changelog/commit/510c798fe6bb688234bb8b4eb3885055a47ee2bb) +- Fix version script [`f849dac`](https://github.com/CookPete/auto-changelog/commit/f849dac557b2c24512c553d9fccb93e1455a8c2e) +- Limit origin protocol to http or https [`51d3832`](https://github.com/CookPete/auto-changelog/commit/51d3832f02209b56499f209f822b442e601ef1a5) -#### [v1.0.2](https://github.com/Hwigaro/auto-changelog/compare/v1.0.1...v1.0.2) +#### [v1.0.2](https://github.com/CookPete/auto-changelog/compare/v1.0.1...v1.0.2) > 31 October 2017 -- Tweak package read logic [`5ca75a2`](https://github.com/Hwigaro/auto-changelog/commit/5ca75a2a051a496fe7899185d486dc6447a44d7a) -- Fall back to https origin protocol [`74e29b4`](https://github.com/Hwigaro/auto-changelog/commit/74e29b4c40a8522a8aa33b6b66e845859dbcde1d) +- Tweak package read logic [`5ca75a2`](https://github.com/CookPete/auto-changelog/commit/5ca75a2a051a496fe7899185d486dc6447a44d7a) +- Fall back to https origin protocol [`74e29b4`](https://github.com/CookPete/auto-changelog/commit/74e29b4c40a8522a8aa33b6b66e845859dbcde1d) -#### [v1.0.1](https://github.com/Hwigaro/auto-changelog/compare/v1.0.0...v1.0.1) +#### [v1.0.1](https://github.com/CookPete/auto-changelog/compare/v1.0.0...v1.0.1) > 27 October 2017 -- Filter out commits with the same message as an existing merge [`2a420f7`](https://github.com/Hwigaro/auto-changelog/commit/2a420f793ac3b761291cfd5499676a80953cbee7) -- Update readme [`54fc665`](https://github.com/Hwigaro/auto-changelog/commit/54fc6659e9283b6d6afc95486893aa56df13111c) +- Filter out commits with the same message as an existing merge [`2a420f7`](https://github.com/CookPete/auto-changelog/commit/2a420f793ac3b761291cfd5499676a80953cbee7) +- Update readme [`54fc665`](https://github.com/CookPete/auto-changelog/commit/54fc6659e9283b6d6afc95486893aa56df13111c) -### [v1.0.0](https://github.com/Hwigaro/auto-changelog/compare/v0.3.6...v1.0.0) +### [v1.0.0](https://github.com/CookPete/auto-changelog/compare/v0.3.6...v1.0.0) > 27 October 2017 -- Update dependencies to enable Greenkeeper 🌴 [`#10`](https://github.com/Hwigaro/auto-changelog/pull/10) -- Refactor codebase [`dab29fb`](https://github.com/Hwigaro/auto-changelog/commit/dab29fb3a030ffe2799075ef46c70c734d8d2b89) -- Add greenkeeper-lockfile support [`126c6fb`](https://github.com/Hwigaro/auto-changelog/commit/126c6fbd054c16624ab39cbb51a2eab99bc832c6) -- Remove dependency status badges [`bd072be`](https://github.com/Hwigaro/auto-changelog/commit/bd072bef982f4fe0d309c4f24a028b9e8db1513d) +- Update dependencies to enable Greenkeeper 🌴 [`#10`](https://github.com/CookPete/auto-changelog/pull/10) +- Refactor codebase [`dab29fb`](https://github.com/CookPete/auto-changelog/commit/dab29fb3a030ffe2799075ef46c70c734d8d2b89) +- Add greenkeeper-lockfile support [`126c6fb`](https://github.com/CookPete/auto-changelog/commit/126c6fbd054c16624ab39cbb51a2eab99bc832c6) +- Remove dependency status badges [`bd072be`](https://github.com/CookPete/auto-changelog/commit/bd072bef982f4fe0d309c4f24a028b9e8db1513d) -#### [v0.3.6](https://github.com/Hwigaro/auto-changelog/compare/v0.3.5...v0.3.6) +#### [v0.3.6](https://github.com/CookPete/auto-changelog/compare/v0.3.5...v0.3.6) > 23 October 2017 - Use origin hostname instead of host [`#9`](https://github.com/CookPete/auto-changelog/issues/9) -- Correct bitbucket compare URLs [`9d34452`](https://github.com/Hwigaro/auto-changelog/commit/9d344527171c158e1d56fdfde5cce870c5ba84bf) +- Correct bitbucket compare URLs [`9d34452`](https://github.com/CookPete/auto-changelog/commit/9d344527171c158e1d56fdfde5cce870c5ba84bf) -#### [v0.3.5](https://github.com/Hwigaro/auto-changelog/compare/v0.3.4...v0.3.5) +#### [v0.3.5](https://github.com/CookPete/auto-changelog/compare/v0.3.4...v0.3.5) > 6 October 2017 - Add babel-polyfill [`#8`](https://github.com/CookPete/auto-changelog/issues/8) -#### [v0.3.4](https://github.com/Hwigaro/auto-changelog/compare/v0.3.3...v0.3.4) +#### [v0.3.4](https://github.com/CookPete/auto-changelog/compare/v0.3.3...v0.3.4) > 5 October 2017 -- Use async/await instead of promises [`dff4653`](https://github.com/Hwigaro/auto-changelog/commit/dff465371252ce6ab4cd05e49d4c41fd8d3bb37a) -- Remove need for array.find polyfill [`78a1cb8`](https://github.com/Hwigaro/auto-changelog/commit/78a1cb8ac9327ecb0efadffed037f90191bdce5a) -- Tweak version script [`152b85f`](https://github.com/Hwigaro/auto-changelog/commit/152b85f967d74a0f81cccac8ce6f5d5831f4d91b) +- Use async/await instead of promises [`dff4653`](https://github.com/CookPete/auto-changelog/commit/dff465371252ce6ab4cd05e49d4c41fd8d3bb37a) +- Remove need for array.find polyfill [`78a1cb8`](https://github.com/CookPete/auto-changelog/commit/78a1cb8ac9327ecb0efadffed037f90191bdce5a) +- Tweak version script [`152b85f`](https://github.com/CookPete/auto-changelog/commit/152b85f967d74a0f81cccac8ce6f5d5831f4d91b) -#### [v0.3.3](https://github.com/Hwigaro/auto-changelog/compare/v0.3.2...v0.3.3) +#### [v0.3.3](https://github.com/CookPete/auto-changelog/compare/v0.3.2...v0.3.3) > 24 September 2017 - Bump packages [`#7`](https://github.com/CookPete/auto-changelog/issues/7) -- Use babel-preset-env [`3eb90ce`](https://github.com/Hwigaro/auto-changelog/commit/3eb90ce74791fa803e3013aab12d0ff3cecc403b) -- Lint fix [`67c38dd`](https://github.com/Hwigaro/auto-changelog/commit/67c38ddf70b7420de0a9bae061efe858e879e0b7) +- Use babel-preset-env [`3eb90ce`](https://github.com/CookPete/auto-changelog/commit/3eb90ce74791fa803e3013aab12d0ff3cecc403b) +- Lint fix [`67c38dd`](https://github.com/CookPete/auto-changelog/commit/67c38ddf70b7420de0a9bae061efe858e879e0b7) -#### [v0.3.2](https://github.com/Hwigaro/auto-changelog/compare/v0.3.1...v0.3.2) +#### [v0.3.2](https://github.com/CookPete/auto-changelog/compare/v0.3.1...v0.3.2) > 14 September 2017 - Prevent duplicate commits being listed [`#3`](https://github.com/CookPete/auto-changelog/issues/3) -#### [v0.3.1](https://github.com/Hwigaro/auto-changelog/compare/v0.3.0...v0.3.1) +#### [v0.3.1](https://github.com/CookPete/auto-changelog/compare/v0.3.0...v0.3.1) > 9 September 2016 -- Improve origin URL parsing [`#2`](https://github.com/Hwigaro/auto-changelog/issues/2) [`#5`](https://github.com/Hwigaro/auto-changelog/issues/5) -- Remove semicolons [`2ff61e2`](https://github.com/Hwigaro/auto-changelog/commit/2ff61e2f6b415bd24cfdf1788a3a4239138e6aa2) -- Bump packages [`c6b1b18`](https://github.com/Hwigaro/auto-changelog/commit/c6b1b18fdef492a382732b173487c1cf3d42915c) -- Use template literal for success string [`017f884`](https://github.com/Hwigaro/auto-changelog/commit/017f884bea2bdca22f8b07ac36e0968efdaf18c0) +- Improve origin URL parsing [`#2`](https://github.com/CookPete/auto-changelog/issues/2) [`#5`](https://github.com/CookPete/auto-changelog/issues/5) +- Remove semicolons [`2ff61e2`](https://github.com/CookPete/auto-changelog/commit/2ff61e2f6b415bd24cfdf1788a3a4239138e6aa2) +- Bump packages [`c6b1b18`](https://github.com/CookPete/auto-changelog/commit/c6b1b18fdef492a382732b173487c1cf3d42915c) +- Use template literal for success string [`017f884`](https://github.com/CookPete/auto-changelog/commit/017f884bea2bdca22f8b07ac36e0968efdaf18c0) -#### [v0.3.0](https://github.com/Hwigaro/auto-changelog/compare/v0.2.2...v0.3.0) +#### [v0.3.0](https://github.com/CookPete/auto-changelog/compare/v0.2.2...v0.3.0) > 11 January 2016 -- Add semicolons after class properties [`07b2de5`](https://github.com/Hwigaro/auto-changelog/commit/07b2de5131f4354565b2ba94a5fc181a1448b5c2) -- Remove unique issue filter [`11acb7e`](https://github.com/Hwigaro/auto-changelog/commit/11acb7e4a9f2782a95e0932917828646103bd85a) -- Case insensitive issue URL parsing [`d152cf6`](https://github.com/Hwigaro/auto-changelog/commit/d152cf6fed739f956d9abae0bd67fee907577d8c) +- Add semicolons after class properties [`07b2de5`](https://github.com/CookPete/auto-changelog/commit/07b2de5131f4354565b2ba94a5fc181a1448b5c2) +- Remove unique issue filter [`11acb7e`](https://github.com/CookPete/auto-changelog/commit/11acb7e4a9f2782a95e0932917828646103bd85a) +- Case insensitive issue URL parsing [`d152cf6`](https://github.com/CookPete/auto-changelog/commit/d152cf6fed739f956d9abae0bd67fee907577d8c) -#### [v0.2.2](https://github.com/Hwigaro/auto-changelog/compare/v0.2.1...v0.2.2) +#### [v0.2.2](https://github.com/CookPete/auto-changelog/compare/v0.2.1...v0.2.2) > 2 January 2016 -- Add a commit-only release to test data [`99927a9`](https://github.com/Hwigaro/auto-changelog/commit/99927a9b2126e656f70964f303a477aa4a5f811b) -- Update templating logic [`12c0624`](https://github.com/Hwigaro/auto-changelog/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617) -- More sensible formatDate [`db92947`](https://github.com/Hwigaro/auto-changelog/commit/db92947e6129cc20cd7777b7ed90b2bd547918c0) +- Add a commit-only release to test data [`99927a9`](https://github.com/CookPete/auto-changelog/commit/99927a9b2126e656f70964f303a477aa4a5f811b) +- Update templating logic [`12c0624`](https://github.com/CookPete/auto-changelog/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617) +- More sensible formatDate [`db92947`](https://github.com/CookPete/auto-changelog/commit/db92947e6129cc20cd7777b7ed90b2bd547918c0) -#### [v0.2.1](https://github.com/Hwigaro/auto-changelog/compare/v0.2.0...v0.2.1) +#### [v0.2.1](https://github.com/CookPete/auto-changelog/compare/v0.2.0...v0.2.1) > 2 January 2016 -- Replace toLocaleString usage with months array [`0008264`](https://github.com/Hwigaro/auto-changelog/commit/0008264bcabddf8d2b6b19fde7aa41b0de7a5b77) +- Replace toLocaleString usage with months array [`0008264`](https://github.com/CookPete/auto-changelog/commit/0008264bcabddf8d2b6b19fde7aa41b0de7a5b77) -#### [v0.2.0](https://github.com/Hwigaro/auto-changelog/compare/v0.1.1...v0.2.0) +#### [v0.2.0](https://github.com/CookPete/auto-changelog/compare/v0.1.1...v0.2.0) > 2 January 2016 -- Add support for specifying templates [`369b51e`](https://github.com/Hwigaro/auto-changelog/commit/369b51e9ff05bccba19cd09d9d519bca579bf972) -- Start using compact changelog [`8cbac18`](https://github.com/Hwigaro/auto-changelog/commit/8cbac1857fb9c61a9227d01ba48bbd7a74b39697) -- Lint and test before versioning [`9df54b4`](https://github.com/Hwigaro/auto-changelog/commit/9df54b4bf898a7efdee3f702af71307f28dc7cec) +- Add support for specifying templates [`369b51e`](https://github.com/CookPete/auto-changelog/commit/369b51e9ff05bccba19cd09d9d519bca579bf972) +- Start using compact changelog [`8cbac18`](https://github.com/CookPete/auto-changelog/commit/8cbac1857fb9c61a9227d01ba48bbd7a74b39697) +- Lint and test before versioning [`9df54b4`](https://github.com/CookPete/auto-changelog/commit/9df54b4bf898a7efdee3f702af71307f28dc7cec) -#### [v0.1.1](https://github.com/Hwigaro/auto-changelog/compare/v0.1.0...v0.1.1) +#### [v0.1.1](https://github.com/CookPete/auto-changelog/compare/v0.1.0...v0.1.1) > 31 December 2015 -- Explicitly render links for PRs and issues [`0a384cd`](https://github.com/Hwigaro/auto-changelog/commit/0a384cdeb3e9c3641fc3f655b0d9aeff58f8ebd3) -- Fix --package bug [`7f12f81`](https://github.com/Hwigaro/auto-changelog/commit/7f12f81f06441af4c74508ccc673e7052dec8d18) +- Explicitly render links for PRs and issues [`0a384cd`](https://github.com/CookPete/auto-changelog/commit/0a384cdeb3e9c3641fc3f655b0d9aeff58f8ebd3) +- Fix --package bug [`7f12f81`](https://github.com/CookPete/auto-changelog/commit/7f12f81f06441af4c74508ccc673e7052dec8d18) -#### [v0.1.0](https://github.com/Hwigaro/auto-changelog/compare/v0.0.1...v0.1.0) +#### [v0.1.0](https://github.com/CookPete/auto-changelog/compare/v0.0.1...v0.1.0) > 31 December 2015 -- Add option for specifying output file [`#1`](https://github.com/Hwigaro/auto-changelog/issues/1) -- Add support for --package [`772fbb9`](https://github.com/Hwigaro/auto-changelog/commit/772fbb988f41d893bccd88417a2b5992543bc936) -- Add newline at end of generated logs [`837d088`](https://github.com/Hwigaro/auto-changelog/commit/837d0883f71dea332a46d1ae49749e1bfdc5b8b1) -- Generate changelog on version [`fd6f230`](https://github.com/Hwigaro/auto-changelog/commit/fd6f2300433d7cb5f9434b2fe64e1f2d9823fc93) +- Add option for specifying output file [`#1`](https://github.com/CookPete/auto-changelog/issues/1) +- Add support for --package [`772fbb9`](https://github.com/CookPete/auto-changelog/commit/772fbb988f41d893bccd88417a2b5992543bc936) +- Add newline at end of generated logs [`837d088`](https://github.com/CookPete/auto-changelog/commit/837d0883f71dea332a46d1ae49749e1bfdc5b8b1) +- Generate changelog on version [`fd6f230`](https://github.com/CookPete/auto-changelog/commit/fd6f2300433d7cb5f9434b2fe64e1f2d9823fc93) #### v0.0.1 > 31 December 2015 -- First commit [`436b409`](https://github.com/Hwigaro/auto-changelog/commit/436b409bb6b3f853d14e2eda6ca1d87f78d00a14) +- First commit [`436b409`](https://github.com/CookPete/auto-changelog/commit/436b409bb6b3f853d14e2eda6ca1d87f78d00a14) diff --git a/README.md b/README.md index 3c8ad980..1fd30357 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ auto-changelog --commit-limit 5 auto-changelog --commit-limit false ``` -By default, changelogs will link to the appropriate pages for commits, issues and merge requests based on the `origin` remote of your repo. GitHub, BitBucket and GitLab are all supported. If you [close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords) but refer to issues outside of your repository, you can use `--issue-url` to link somewhere else: +By default, changelogs will link to the appropriate pages for commits, issues and merge requests based on the `origin` remote of your repo. GitHub, GitLab, BitBucket and Azure DevOps are all supported. If you [close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords) but refer to issues outside of your repository, you can use `--issue-url` to link somewhere else: ```bash # Link all issues to redmine diff --git a/src/commits.js b/src/commits.js index 1c211f76..616cb780 100644 --- a/src/commits.js +++ b/src/commits.js @@ -172,8 +172,8 @@ function getIssueLink (match, id, remote, issueUrl) { if (issueUrl) { return issueUrl.replace('{id}', id) } - if (/dev.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { - return `${remote.project}/_workitems/edit/${id}` + if (/dev\.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { + return `${remote.projectUrl}/_workitems/edit/${id}` } return `${remote.url}/issues/${id}` } @@ -188,7 +188,7 @@ function getMergeLink (id, remote) { if (/gitlab/.test(remote.hostname)) { return `${remote.url}/merge_requests/${id}` } - if (/dev.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { + if (/dev\.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { return `${remote.url}/pullrequest/${id}` } return `${remote.url}/pull/${id}` diff --git a/src/releases.js b/src/releases.js index 7f9cd4f9..c3552eea 100644 --- a/src/releases.js +++ b/src/releases.js @@ -87,7 +87,7 @@ function getCompareLink (from, to, remote) { if (/bitbucket/.test(remote.hostname)) { return `${remote.url}/compare/${to}..${from}` } - if (/dev.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { + if (/dev\.azure/.test(remote.hostname) || /visualstudio/.test(remote.hostname)) { return `${remote.url}/branches?baseVersion=GT${to}&targetVersion=GT${from}&_a=commits` } return `${remote.url}/compare/${from}...${to}` diff --git a/src/remote.js b/src/remote.js index a0b3db77..30c61a42 100644 --- a/src/remote.js +++ b/src/remote.js @@ -11,27 +11,33 @@ export async function fetchRemote (name) { const remote = parseRepoURL(remoteURL) const protocol = remote.protocol === 'http:' ? 'http:' : 'https:' const hostname = remote.hostname || remote.host - let repo = remote.repo - let project = remote.repo if (/gitlab/.test(hostname) && /\.git$/.test(remote.branch)) { // Support gitlab subgroups - repo = `${remote.repo}/${remote.branch.replace(/\.git$/, '')}` + return { + hostname, + url: `${protocol}//${hostname}/${remote.repo}/${remote.branch.replace(/\.git$/, '')}` + } } - if (/dev.azure/.test(hostname)) { - repo = remote.path - project = remote.repo + if (/dev\.azure/.test(hostname)) { + return { + hostname, + url: `${protocol}//${hostname}/${remote.path}`, + projectUrl: `${protocol}//${hostname}/${remote.repo}` + } } if (/visualstudio/.test(hostname)) { - repo = `${remote.repo}/${remote.branch}` - project = remote.owner + return { + hostname, + url: `${protocol}//${hostname}/${remote.repo}/${remote.branch}`, + projectUrl: `${protocol}//${hostname}/${remote.owner}` + } } return { hostname, - url: `${protocol}//${hostname}/${repo}`, - project: `${protocol}//${hostname}/${project}` + url: `${protocol}//${hostname}/${remote.repo}` } } diff --git a/test/data/remotes.js b/test/data/remotes.js index 170922cb..9ab47b62 100644 --- a/test/data/remotes.js +++ b/test/data/remotes.js @@ -14,11 +14,11 @@ export default { azure: { hostname: 'dev.azure.com', url: 'https://dev.azure.com/user/project/_git/repo', - project: 'https://dev.azure.com/user/project' + projectUrl: 'https://dev.azure.com/user/project' }, visualstudio: { hostname: 'user.visualstudio.com', url: 'https://user.visualstudio.com/project/_git/repo', - project: 'https://user.visualstudio.com/project' + projectUrl: 'https://user.visualstudio.com/project' } } diff --git a/test/remote.js b/test/remote.js index b25d5a50..e5602117 100644 --- a/test/remote.js +++ b/test/remote.js @@ -64,7 +64,7 @@ describe('fetchRemote', () => { for (let test of TEST_DATA) { it(`parses ${test.remote}`, async () => { mock('cmd', () => test.remote) - expect(await fetchRemote('origin')).to.include(test.expected) + expect(await fetchRemote('origin')).to.deep.equal(test.expected) unmock('cmd') }) }