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
Copy file name to clipboardExpand all lines: README.md
+32-17Lines changed: 32 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,18 +59,35 @@ The module will look for the last tag, get all the issues closed in the time bet
59
59
60
60
Following the options for the module:
61
61
62
-
-`--action=release|changelog` The **gren** action to run. Default: `release`_(see details below for changelog generator)_
63
-
-`--tags=0.1.0|0.2.0,0.1.0|all` A specific tag or the range of tags to build the release notes from. You can also specify `all` to write all releases. _(To override existing releases use the --override flag)_
64
-
-`--ignore-labels=wont_fix|wont_fix,duplicate` One or more labels to ignore in the output. Default: `false`_(it will still output the issue, just without the specified labels)_
65
-
-`--ignore-issues-with=wont_fix|wont_fix,duplicate` Ignore issues that contains one of the specified labels. Default: `false`
66
-
-`--time-wrap=latest|history` The release notes you want to include in the changelog. Default: `latest`_Only applicable to the `changelog` action_
67
-
-`--changelog-filename=CHANGELOG.md` The name of the changelog file. Default: `CHANGELOG.md`
68
-
-`--data-source=issues|commits` The informations you want to use to build release notes. Default: `issues`
69
-
-`--draft=true|false` To set the release as a draft. Default: `false`
70
-
-`--prerelease=true|false` To set the release as a prerelease. Default: `false`
71
-
-`--prefix=v` Add a prefix to the tag version `e.g. v1.0.1`. Default: `null`
72
-
-`--include-messages=merges|commits|all` used to filter the messages added to the release notes. Default: `commits`
73
-
-`--override=true|false` Override the release notes if existing. Default: `false`
62
+
### Global options
63
+
64
+
| Command | Options | Description | Default |
65
+
| ------- | ------- | ----------- | ------- |
66
+
|`--username`|**Required**| The username of the repo _e.g. `github-tools`_|`null`|
67
+
|`--repo`|**Required**| The repository name _e.g. `github-release-notes`_|`null`|
68
+
|`--action`|`release``changelog`| The **gren** action to run. _(see details below for changelog generator)_|`release`|
69
+
|`--ignore-labels`|`wont_fix``wont_fix,duplicate`| Ignore issues that contains one of the specified labels. |`false`|
70
+
|`--ignore-issues-with`|`wont_fix``wont_fix,duplicate`| Ignore issues that contains one of the specified labels. |`false`|
71
+
|`--data-source`|`issues``commits`| The informations you want to use to build release notes. |`issues`|
72
+
|`--prefix`|**String**`e.g. v1.0.1`| Add a prefix to the tag version. |`null`|
73
+
|`--override`|**Flag**| Override the release notes if existing. |`false`|
74
+
|`--include-messages`|`merge``commits``all`| Filter the messages added to the release notes. _Only used when `data-source` used is `commits`|`commits`|
75
+
76
+
### Release options
77
+
78
+
| Command | Options | Description | Default |
79
+
| ------- | ------- | ----------- | ------- |
80
+
|`--draft`|**Flag**| Set the release as a draft. |`false`|
81
+
|`--prerelease`|**Flag**| To set the release as a prerelease. |`false`|
82
+
|`--tags`|`0.1.0``0.2.0,0.1.0``all`| A specific tag or the range of tags to build the release notes from. You can also specify `all` to write all releases. _(To override existing releases use the --override flag)_|`false`|
83
+
84
+
### Changelog options
85
+
86
+
| Command | Options | Description | Default |
87
+
| ------- | ------- | ----------- | ------- |
88
+
|`--time-wrap`|`latest``history`| The release notes you want to include in the changelog. |`latest`|
89
+
|`--changelog-filename`|**String**, like `changelog.md`| The name of the changelog file. |`CHANGELOG.md`|
90
+
74
91
75
92
### Config file
76
93
@@ -173,7 +190,7 @@ gren --override --tags=all
173
190
174
191
**gren** can also update generate the changelog.
175
192
176
-
The following command, will generate the release notes for the latest release, and add it to an existing file or create it in the same directory where you run the command.
193
+
The following command, will get the latest release notes, and add it to an existing file or create it in the same directory where you run the command.
177
194
178
195
```shell
179
196
gren --action=changelog
@@ -187,9 +204,9 @@ The generated release notes will be added at the top of the file, and will look
187
204
188
205
### Generate a full changelog
189
206
190
-
If tou want to generate the whole changelog, you need to use the `--time-wrap=history`. This will generate a changelog based on issues (or on commit messages if the `--data-source=commits` is present).
207
+
If tou want to generate the whole changelog, you need to use the `--time-wrap=history`. This will generate the changelog based on all release notes.
191
208
192
-
If you want to override the existing changelog, use `--override`.
209
+
If you want to override the existing changelog, use `--override`. This will also generate the release notes from scratch.
193
210
194
211
The usage would then be:
195
212
@@ -204,5 +221,3 @@ To see a full example of the changelog here [CHANGELOG.md](https://github.com/gi
204
221
## JavaScript documentation
205
222
206
223
Find the full documentation for JavaScript function here: [http://github-tools.github.io/github-release-notes/](http://github-tools.github.io/github-release-notes/)
0 commit comments