Skip to content

Commit 1a48e7d

Browse files
committed
Copy readme notes from ionide#5
1 parent 20a51ea commit 1a48e7d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,25 @@ If your changelog has multiple versions, the latest one will be used.
7171

7272
There's really only one property that matters for these targets, and that's `ChangelogFile`. This needs to point to the Changelog file you want to read, but it defaults to `CHANGELOG.md` in the root of a given project in case you want to adhere to defaults.
7373

74+
75+
| Property | Type | Default Value | Description |
76+
| - | - | - | - |
77+
| ChangelogFile | string | CHANGELOG.md | Points to the changelog file to parse. Note that the default value is set to the _project_ root by default, so a repository-wide changelog would require this property be set to a different value, for example in a Directory.Build.props file |
78+
| GenerateVersionForUnreleasedChanges | boolean | true | If set, the assembly/package version and release notes will be set from Unreleased changes, if any are present. |
79+
7480
## API
7581

7682
When the task runs, it writes several output items and properties:
7783

7884
|Name|Type|Description|
7985
|----|----|-----------|
80-
| UnreleasedChangelog | UnreleasedChangelogData option | If present, there was an 'Unreleased' section in the Changelog. This structure will contain the sections present. |
86+
| UnreleasedChangelog | ReleaseChangelogData option | If present, there was an 'Unreleased' section in the Changelog. This structure will contain the sections present, as well as an auto-incremented version number for this release. |
87+
| UnreleasedReleaseNotes | string option | If present, contains the concatenated list of all Changelog sections for the Unreleased section of the Changelog. This is a convenience property so that you don't have to String.Join all the lines in the `ReleaseChangelogData` structure yourself! |
8188
| CurrentReleaseChangelog | ReleaseChangelogData option | If present, there was at least one released logged in the Changelog. This structure will contain the details of each one. |
8289
| AllReleasedChangelogs | ReleaseChangelogData list | Contains the ordered list of all released in the ChangelogFile, descending. |
8390
| LatestReleaseNotes | string option | If present, contains the concatenated list of all Changelog sections for the latest release. This is a convenience property so that you don't have to String.Join all the lines in the `ReleaseChangelogData` yourself! |
8491

85-
### ChangelogData
92+
### ReleaseChangelogData
8693

8794
This TaskItem has metadata for each of the known sections of a Changelog:
8895

@@ -95,14 +102,7 @@ This TaskItem has metadata for each of the known sections of a Changelog:
95102

96103
In each case, the value of the metadata is the newline-concatenated list of all of the Changelog Entries for that section.
97104

98-
### UnreleasedChangelogData
99-
100-
This structure is a `ChangelogData` with an `Identity` of `"Unreleased"`.
101-
102-
### ReleaseChangelogData
103-
104-
This structure is the same as `ChangelogData`, but it contains two more items of metadata:
105-
105+
In addition,
106106
* the `Identity` of the `TaskItem` is the Semantic Version of the release
107107
* the `Date` of the `TaskItem` is the `YYYY-MM-DD`-formatted date of the release
108108

0 commit comments

Comments
 (0)