Skip to content

Commit c6f290e

Browse files
committed
Release 0.0.6
1 parent e364432 commit c6f290e

File tree

3 files changed

+91
-1
lines changed

3 files changed

+91
-1
lines changed

bin/changelog

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#!/usr/bin/env node
2+
'use strict';
3+
4+
/*
5+
* This script generates the template a changelog by comparing a current version
6+
* with master. Run this, copy what's logged into the `CHANGELOG.md` and update
7+
* the top section based on the changes listed in "Community Contributions"
8+
*
9+
* Usage:
10+
*
11+
* bin/changelog
12+
*/
13+
14+
var EOL = require('os').EOL;
15+
var Promise = require('ember-cli/lib/ext/promise');
16+
var GitHubApi = require('github');
17+
18+
var github = new GitHubApi({version: '3.0.0'});
19+
var compareCommits = Promise.denodeify(github.repos.compareCommits);
20+
var currentVersion = 'v' + require('../package').version;
21+
22+
compareCommits({
23+
user: 'levelbossmike',
24+
repo: 'ember-deploy-redis',
25+
base: currentVersion,
26+
head: 'master'
27+
}).then(function(res) {
28+
return res.commits.map(function(commitInfo) {
29+
return commitInfo.commit.message
30+
31+
}).filter(function(message) {
32+
return message.indexOf('Merge pull request #') > -1;
33+
34+
}).map(function(message) {
35+
var numAndAuthor = message.match(/#(\d+) from (.*)\//).slice(1,3);
36+
var title = message.split('\n\n')[1];
37+
38+
return {
39+
number: +numAndAuthor[0],
40+
author: numAndAuthor[1],
41+
title: title
42+
};
43+
44+
}).sort(function(a, b) {
45+
return a.number > b.number;
46+
}).map(function(pr) {
47+
var link = '[#' + pr.number + ']' +
48+
'(https://github.com/levelbossmike/ember-deploy-redis/pull/' + pr.number + ')';
49+
var title = pr.title;
50+
var author = '[@' + pr.author + ']' +
51+
'(https://github.com/' + pr.author +')';
52+
53+
return '- ' + link + ' ' + title + ' ' + author;
54+
55+
}).join('\n');
56+
57+
}).then(function(contributions) {
58+
var changelog = generateChangelog(contributions);
59+
60+
console.log(changelog);
61+
}).catch(function(err) {
62+
console.error(err);
63+
})
64+
65+
function generateChangelog(contributions) {
66+
var header = '#### Community Contributions';
67+
var footer = 'Thank you to all who took the time to contribute!';
68+
69+
return header + EOL + EOL + contributions + EOL + EOL + footer;
70+
}

changelog.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### 0.0.6
2+
3+
This release adds an improvement for ssh-tunneling. see [#15](https://github.com/levelbossmike/ember-deploy-redis/pull/15) for details.
4+
5+
#### Community Contributions
6+
7+
- [#16](https://github.com/levelbossmike/ember-deploy-redis/pull/16) Updated docs to clarify tunnel-ssh options [@tmayr](https://github.com/tmayr)
8+
9+
### 0.0.5
10+
11+
This release brings the long awaited SSH-tunneling feature.
12+
13+
#### Community Contributions
14+
15+
- [#9](https://github.com/levelbossmike/ember-deploy-redis/pull/9) Add support for SSH tunneling [@tim-evans](https://github.com/tim-evans)
16+
- [#10](https://github.com/levelbossmike/ember-deploy-redis/pull/10) Allow camelCase auth_pass in adapter config [@jayphelps](https://github.com/jayphelps)
17+
- [#11](https://github.com/levelbossmike/ember-deploy-redis/pull/11) Fix a typo [@raw1z](https://github.com/raw1z)
18+
19+
Thank you to all who took the time to contribute!

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-deploy-redis",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "ember-cli-deploy index-adapter for redis",
55
"directories": {
66
"doc": "doc",
@@ -22,6 +22,7 @@
2222
"chai": "^2.3.0",
2323
"chai-as-promised": "^5.0.0",
2424
"ember-cli": "0.2.5",
25+
"github": "^0.2.4",
2526
"mocha": "^2.2.5"
2627
},
2728
"keywords": [

0 commit comments

Comments
 (0)