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
: Optional: Hide private links by commenting them out in markdown output.
38
+
: Optional: Hide private links by commenting them out in the markdown output.
39
39
: This option is useful when rendering changelog bundles in private repositories.
40
40
: Defaults to false.
41
+
42
+
`--hide-features <string[]?>`
43
+
: Optional: Filter by feature IDs (comma-separated), or a path to a newline-delimited file containing feature IDs. Can be specified multiple times.
44
+
: Each occurrence can be either comma-separated feature IDs (e.g., `--hide-features "feature:new-search-api,feature:enhanced-analytics"`) or a file path (e.g., `--hide-features /path/to/file.txt`).
45
+
: When specifying feature IDs directly, provide comma-separated values.
46
+
: When specifying a file path, provide a single value that points to a newline-delimited file. The file should contain one feature ID per line.
47
+
: Entries with matching `feature-id` values will be commented out in the markdown output and a warning will be emitted.
Copy file name to clipboardExpand all lines: docs/contribute/changelog.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,7 +259,8 @@ Options:
259
259
--output <string?> Optional: Output directory for rendered markdown files. Defaults to current directory [Default: null]
260
260
--title <string?> Optional: Title to use for section headers in output markdown files. Defaults to version from first bundle [Default: null]
261
261
--subsections Optional: Group entries by area/component in subsections. Defaults to false
262
-
--hide-private-links Optional: Hide private links by commenting them out in markdown output. Defaults to false
262
+
--hide-private-links Optional: Hide private links by commenting them out in the markdown output. Defaults to false
263
+
--hide-features <string[]?> Filter by feature IDs (comma-separated), or a path to a newline-delimited file containing feature IDs. Can be specified multiple times. Entries with matching feature-id values will be commented out in the markdown output. [Default: null]
263
264
```
264
265
265
266
Before you can use this command you must create changelog files and collect them into bundles.
@@ -314,3 +315,6 @@ For example, the `index.md` output file contains information derived from the ch
314
315
```
315
316
316
317
To comment out the pull request and issue links, for example if they relate to a private repository, use the `--hide-private-links` option.
318
+
319
+
If you have changelogs with `feature-id` values and you want them to be omitted from the output, use the `--hide-features` option.
320
+
For more information, refer to [](/cli/release/changelog-render.md).
sb.AppendLine(entry.Description??"% Describe the functionality that was deprecated");
1726
1859
sb.AppendLine();
@@ -1780,6 +1913,10 @@ Cancel ctx
1780
1913
}
1781
1914
1782
1915
sb.AppendLine("::::");
1916
+
if(shouldHide)
1917
+
{
1918
+
sb.AppendLine("-->");
1919
+
}
1783
1920
}
1784
1921
}
1785
1922
}
@@ -1799,7 +1936,7 @@ Cancel ctx
1799
1936
}
1800
1937
1801
1938
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style","IDE0058:Expression value is never used",Justification="StringBuilder methods return builder for chaining")]
/// <param name="output">Optional: Output directory for rendered markdown files. Defaults to current directory</param>
182
182
/// <param name="title">Optional: Title to use for section headers in output markdown files. Defaults to version from first bundle</param>
183
183
/// <param name="subsections">Optional: Group entries by area/component in subsections. Defaults to false</param>
184
-
/// <param name="hidePrivateLinks">Optional: Hide private links by commenting them out in markdown output. Defaults to false</param>
184
+
/// <param name="hidePrivateLinks">Optional: Hide private links by commenting them out in the markdown output. Defaults to false</param>
185
+
/// <param name="hideFeatures">Filter by feature IDs (comma-separated), or a path to a newline-delimited file containing feature IDs. Can be specified multiple times. Entries with matching feature-id values will be commented out in the markdown output.</param>
185
186
/// <param name="ctx"></param>
186
187
[Command("render")]
187
188
publicasyncTask<int>Render(
@@ -190,20 +191,47 @@ public async Task<int> Render(
0 commit comments