diff options
author | Rebecca Turner <me@re-becca.org> | 2018-08-22 22:56:01 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-23 02:12:37 +0300 |
commit | ee5066aaa25f48a15d4e7912383d10bc90654a5a (patch) | |
tree | 44e1adf15180e9430e93ee6c5e8c8a96264d6a04 /scripts | |
parent | f86570da1f223ac714509f2610ee9f185f1e19ef (diff) |
gen-changelog: match npm.community urls in addition to github ones
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/changelog.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/changelog.js b/scripts/changelog.js index a921d1ff1..7fc18a2c3 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -18,7 +18,8 @@ const log = execSync(`git log --reverse --pretty='format:%h %H%d %s (%aN)%n%b%n- main() function shortname (url) { - let matched = url.match(/https:\/\/github.com\/([^/]+\/[^/]+)\/(?:pull|issues)\/(\d+)/) + let matched = url.match(/https:\/\/github\.com\/([^/]+\/[^/]+)\/(?:pull|issues)\/(\d+)/) + || url.match(/https:\/\/(npm\.community)\/t\/(\d+)/) if (!matched) return false let repo = matched[1] let id = matched[2] |