You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add feature to set limit in options for tags. Fixes#144 (#148)
* Add feature to set limit in options for tags. Fixes#144
* Add limit to options file
* Revert quotes
* Add an eslint ignore for camelcase, since the properties from github is not camelcased
description: 'Override the GitHub API URL, allows gren to connect to a private GHE installation'
54
+
description:
55
+
'Override the GitHub API URL, allows gren to connect to a private GHE installation'
52
56
},
53
57
{
54
58
short: '-o',
@@ -64,37 +68,49 @@ module.exports = {
64
68
short: '-t',
65
69
name: 'tags',
66
70
valueType: '<new-tag>..<old-tag>',
67
-
description: 'Write release notes for <new-tag> using data collected until <old-tag>. If only one tag is specified, will use data until the previous tag. To run gren for all the tags, use --tags=all',
71
+
description:
72
+
'Write release notes for <new-tag> using data collected until <old-tag>. If only one tag is specified, will use data until the previous tag. To run gren for all the tags, use --tags=all',
68
73
action: value=>value.split('..')
69
74
},
75
+
{
76
+
short: '-l',
77
+
name: 'limit',
78
+
valueType: '<number>',
79
+
description:
80
+
'Just produce release notes for the <number> last releases.'
81
+
},
70
82
{
71
83
short: '-D',
72
84
name: 'data-source',
73
85
valueType: '<issues|commits|milestones|prs>',
74
-
description: 'The informations you want to use to build release notes. [issues]',
86
+
description:
87
+
'The informations you want to use to build release notes. [issues]',
75
88
action: /^(issues|commits|milestones|prs)$/i,
76
89
defaultValue: 'issues'
77
90
},
78
91
{
79
92
short: '-N',
80
93
name: 'include-messages',
81
94
valueType: '<merge|commits|all>',
82
-
description: 'Filter the messages added to the release notes. Only used when --data-source used is commits [commits]',
95
+
description:
96
+
'Filter the messages added to the release notes. Only used when --data-source used is commits [commits]',
83
97
action: /^(merge|commits|all)$/i,
84
98
defaultValue: 'commits'
85
99
},
86
100
{
87
101
short: '-i',
88
102
name: 'ignore-tags-with',
89
103
valueType: '<string1>,<string2>',
90
-
description: 'Ignore tags that contain one of the specified strings.',
104
+
description:
105
+
'Ignore tags that contain one of the specified strings.',
91
106
action: value=>value.split(',')
92
107
},
93
108
{
94
109
short: '-C',
95
110
name: 'ignore-commits-with',
96
111
valueType: '<string1>,<string2>',
97
-
description: 'Ignore commits that contain one of the specified strings.',
112
+
description:
113
+
'Ignore commits that contain one of the specified strings.',
98
114
action: value=>value.split(',')
99
115
},
100
116
{
@@ -107,7 +123,8 @@ module.exports = {
107
123
short: '-g',
108
124
name: 'group-by',
109
125
valueType: '<label>',
110
-
description: 'Group the issues using the labels as group headings. You can set custom headings for groups of labels from a configuration file.'
126
+
description:
127
+
'Group the issues using the labels as group headings. You can set custom headings for groups of labels from a configuration file.'
111
128
},
112
129
{
113
130
short: '-L',
@@ -120,20 +137,23 @@ module.exports = {
120
137
short: '-I',
121
138
name: 'ignore-issues-with',
122
139
valueType: '<label1>,<label2>',
123
-
description: 'Ignore issues that contains one of the specified labels.',
140
+
description:
141
+
'Ignore issues that contains one of the specified labels.',
124
142
action: value=>value.split(',')
125
143
},
126
144
{
127
145
short: '-M',
128
146
name: 'milestone-match',
129
147
valueType: '<prefix>',
130
-
description: 'The title that the script needs to match to link the release to the milestone. e.g. v will match v0.1.0 [Release {{tag_name}}]',
148
+
description:
149
+
'The title that the script needs to match to link the release to the milestone. e.g. v will match v0.1.0 [Release {{tag_name}}]',
131
150
defaultValue: 'Release {{tag_name}}'
132
151
},
133
152
{
134
153
short: '-m',
135
154
name: 'only-milestones',
136
-
description: 'Add to the release bodies only the issues that have a milestone'
155
+
description:
156
+
'Add to the release bodies only the issues that have a milestone'
0 commit comments