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
The `docs-builder changelog add` command creates a new changelog file from command-line input.
4
-
The `docs-builder changelog bundle` command creates a consolidated list of changelogs.
5
-
6
3
By adding a file for each notable change and grouping them into bundles, you can ultimately generate release documention with a consistent layout for all your products.
7
4
5
+
1. Create changelogs with the `docs-builder changelog add` command.
6
+
2.[Create changelog bundles](#changelog-bundle) with the `docs-builder changelog bundle` command. For example, create a bundle for the pull requests that are included in a product release.
7
+
8
+
For more information about running `docs-builder`, go to [Contribute locally](https://www.elastic.co/docs/contribute-docs/locally).
9
+
8
10
:::{note}
9
11
This command is associated with an ongoing release docs initiative.
10
12
Additional workflows are still to come for updating and generating documentation from changelogs.
@@ -45,24 +47,6 @@ Options:
45
47
--config <string?> Optional: Path to the changelog.yml configuration file. Defaults to 'docs/changelog.yml' [Default: null]
46
48
```
47
49
48
-
The `changelog bundle` command creates a single YAML bundle file and supports all of the following options:
49
-
50
-
```sh
51
-
Bundle changelogs
52
-
53
-
Options:
54
-
--directory <string?> Optional: Directory containing changelog YAML files. Defaults to current directory [Default: null]
55
-
--output <string?> Optional: Output file path for the bundled changelog. Defaults to 'changelog-bundle.yaml' in the input directory [Default: null]
56
-
--all Include all changelogs in the directory
57
-
--input-products <List<ProductInfo>?> Filter by products in format "product target lifecycle, ..." (e.g., "cloud-serverless 2025-12-02, cloud-serverless 2025-12-06") [Default: null]
58
-
--output-products <List<ProductInfo>?> Explicitly set the products array in the output file in format "product target lifecycle, ...". Overrides any values from changelogs. [Default: null]
59
-
--resolve Copy the contents of each changelog file into the entries array
60
-
--prs <string[]?> Filter by pull request URLs or numbers (can specify multiple times) [Default: null]
61
-
--prs-file <string?> Path to a newline-delimited file containing PR URLs or numbers [Default: null]
62
-
--owner <string?> Optional: GitHub repository owner (used when PRs are specified as numbers) [Default: null]
63
-
--repo <string?> Optional: GitHub repository name (used when PRs are specified as numbers) [Default: null]
64
-
```
65
-
66
50
### Product format
67
51
68
52
The `docs-builder changelog add` has a `--products` option and the `docs-builder changelog bundle` has `--input-products` and `--output-products` options that all use the same format.
@@ -107,43 +91,28 @@ When you run the command with the `--pr` option, it can use these mappings to fi
107
91
108
92
Refer to [changelog.yml.example](https://github.com/elastic/docs-builder/blob/main/config/changelog.yml.example).
109
93
110
-
## Bundle creation
94
+
## Create bundles [changelog-bundle]
111
95
112
96
You can use the `docs-builder changelog bundle` command to create a YAML file that lists multiple changelogs.
113
-
By default, the file contains only the changelog file names and checksums.
--directory <string?> Optional: Directory containing changelog YAML files. Defaults to current directory [Default: null]
104
+
--output <string?> Optional: Output file path for the bundled changelog. Defaults to 'changelog-bundle.yaml' in the input directory [Default: null]
105
+
--all Include all changelogs in the directory
106
+
--input-products <List<ProductInfo>?> Filter by products in format "product target lifecycle, ..." (e.g., "cloud-serverless 2025-12-02, cloud-serverless 2025-12-06") [Default: null]
107
+
--output-products <List<ProductInfo>?> Explicitly set the products array in the output file in format "product target lifecycle, ...". Overrides any values from changelogs. [Default: null]
108
+
--resolve Copy the contents of each changelog file into the entries array
109
+
--prs <string[]?> Filter by pull request URLs or numbers (can specify multiple times) [Default: null]
110
+
--prs-file <string?> Path to a newline-delimited file containing PR URLs or numbers [Default: null]
111
+
--owner <string?> Optional: GitHub repository owner (used when PRs are specified as numbers) [Default: null]
112
+
--repo <string?> Optional: GitHub repository name (used when PRs are specified as numbers) [Default: null]
144
113
```
145
114
146
-
When you run the `docs-builder changelog bundle` command, you can specify only one of the following filter options:
115
+
You can specify only one of the following filter options:
147
116
148
117
`--all`
149
118
: Include all changelogs from the directory.
@@ -161,93 +130,10 @@ When you run the `docs-builder changelog bundle` command, you can specify only o
161
130
: Include changelogs for the pull request URLs or numbers specified in a newline-delimited file.
162
131
: Pull requests can be identified by a full URL (such as `https://github.com/owner/repo/pull/123`, a short format (such as `owner/repo#123`) or just a number (in which case you must also provide `--owner` and `--repo` options).
163
132
164
-
## Examples
165
-
166
-
### Create a changelog for multiple products
167
-
168
-
The following command creates a changelog for a bug fix that applies to two products:
169
-
170
-
```sh
171
-
docs-builder changelog add \
172
-
--title "Fixes enrich and lookup join resolution based on minimum transport version" \ <1>
1. This option is required only if you want to override what's derived from the PR title.
180
-
2. The type values are defined in [ChangelogConfiguration.cs](https://github.com/elastic/docs-builder/blob/main/src/services/Elastic.Documentation.Services/Changelog/ChangelogConfiguration.cs).
181
-
3. The product values are defined in [products.yml](https://github.com/elastic/docs-builder/blob/main/config/products.yml).
182
-
4. The `--pr` value can be a full URL (such as `https://github.com/owner/repo/pull/123`, a short format (such as `owner/repo#123`) or just a number (in which case you must also provide `--owner` and `--repo` options).
title: '[ES|QL] Take TOP_SNIPPETS out of snapshot'
248
-
```
133
+
By default, the output file contains only the changelog file names and checksums.
134
+
You can optionally use the `--resolve` command option to pull all of the content from each changelog into the bundle.
249
135
250
-
### Create a changelog bundle by product
136
+
### Filter by product [changelog-bundle-product]
251
137
252
138
You can use the `--input-products` option to create a bundle of changelogs that match the product details:
253
139
@@ -278,9 +164,8 @@ entries:
278
164
1. By default these values match your `--input-products` (even if the changelogs have more products). To specify different product metadata, use the `--output-products` option.
279
165
280
166
If you add the `--resolve` option, the contents of each changelog will be included in the output file.
281
-
Refer to [](#bundle-creation).
282
167
283
-
### Create a changelog bundle by PR list
168
+
### Filter by pull requests [changelog-bundle-pr]
284
169
285
170
You can use the `--prs` option (with the `--repo` and `--owner` options if you provide only the PR numbers) to create a bundle of the changelogs that relate to those pull requests:
286
171
@@ -315,10 +200,8 @@ entries:
315
200
```
316
201
317
202
If you add the `--resolve` option, the contents of each changelog will be included in the output file.
318
-
Refer to [](#bundle-creation).
319
-
320
203
321
-
### Create a changelog bundle by PR file
204
+
### Filter by pull request file [changelog-bundle-file]
322
205
323
206
If you have a file that lists pull requests (such as PRs associated with a GitHub release):
1. This option is required only if you want to override what's derived from the PR title.
263
+
2. The type values are defined in [ChangelogConfiguration.cs](https://github.com/elastic/docs-builder/blob/main/src/services/Elastic.Documentation.Services/Changelog/ChangelogConfiguration.cs).
264
+
3. The product values are defined in [products.yml](https://github.com/elastic/docs-builder/blob/main/config/products.yml).
265
+
4. The `--pr` value can be a full URL (such as `https://github.com/owner/repo/pull/123`, a short format (such as `owner/repo#123`) or just a number (in which case you must also provide `--owner` and `--repo` options).
0 commit comments