-
Notifications
You must be signed in to change notification settings - Fork 10
/
Gruntfile.js
46 lines (38 loc) · 975 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* grunt-github-release-notes
* https://github.com/alexcanessa/grunt-github-release-notes
*
* Copyright (c) 2015 Alex Canessa
* Licensed under the MIT license.
*/
'use strict';
var gren_options = {
ignoreIssuesWith: [
"duplicate",
"wontfix",
"invalid",
"help wanted"
],
template: {
issue: ({ text, name, url, labels }) => {
labels = labels.slice(0, -1);
return `- [${text}](${url}) ${name} - ${labels}`;
},
label: "_{{label}}_,"
}
}
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
gren: {
release: {},
changelog: {}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// plugin's task(s), then test the result.
grunt.registerTask('release', ['gren']);
// By default, lint and run all tests.
grunt.registerTask('default', ['gren']);
};