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
# For details and examples, refer to the [rules documentation](https://github.com/elastic/docs-builder/blob/main/docs/contribute/configure-changelogs.md#rules).
154
+
# For details and examples, refer to the [rules documentation](https://github.com/elastic/docs-builder/blob/main/docs/contribute/configure-changelogs-ref.md#rules).
: Mutually exclusive with `--prs`, `--issues`, and `--release-version`.
89
89
: For a plain newline-delimited list of fully-qualified PR URLs, use `--prs` with a file path instead of `--report`.
90
90
: When the value is an `https://` URL, only hosts allowed by the parser (such as `github.com` and `buildkite.com`) are supported, and the CLI needs network access to fetch the report.
91
+
91
92
`--release-version <string?>`
92
93
: Optional: GitHub release tag to use as a source of pull requests (for example, `"v9.2.0"` or `"latest"`).
93
94
: When specified, the command fetches the release from GitHub, parses PR references from the release notes, and creates one changelog file per PR — without creating a bundle. Only automated GitHub release notes (the default format or [Release Drafter](https://github.com/release-drafter/release-drafter) format) are supported at this time.
@@ -207,7 +208,7 @@ If a configuration file exists, the command validates its values before generati
207
208
In each of these cases where validation fails, a changelog file is not created.
208
209
209
210
If the configuration file contains `rules.create` definitions and a PR or issue has a blocking label, that PR is skipped and no changelog file is created for it.
210
-
For more information, refer to [Rules for creation and publishing](/contribute/configure-changelogs.md#rules).
211
+
For more information, refer to [](/contribute/create-changelogs.md#rules).
### Remove by GitHub release [changelog-remove-release-version]
146
156
147
157
You can use `--release-version` to fetch pull request references directly from GitHub release notes and use them as the removal filter.
@@ -190,97 +200,4 @@ When a `changelog.yml` configuration file defines `bundle.profiles`, you can use
190
200
191
201
Profile-based commands discover the changelog configuration automatically (no `--config` flag): they look for `changelog.yml` in the current directory, then `docs/changelog.yml`. If neither file is found, the command returns an error with instructions to run `docs-builder changelog init` or to re-run from the folder where the file exists.
192
202
193
-
### Profile fields
194
-
195
-
The `changelog remove` command reads the same `bundle.profiles` configuration as `changelog bundle`, but only a subset of fields are relevant to removal:
196
-
197
-
| Field | Used by `changelog remove`? | Notes |
198
-
|---|---|---|
199
-
|`products`| Yes, when filtering by product | Required when the profile argument is a version string and no `source: github_release` is set. Not needed when the filter comes from a promotion report, URL list file, or `source: github_release`. |
200
-
|`source`| Yes |`source: github_release` fetches the PR list from the GitHub release to use as the removal filter. |
201
-
|`repo`| Yes, with `source: github_release`| Identifies the GitHub repository to fetch the release from. |
202
-
|`owner`| Yes, with `source: github_release`| Identifies the GitHub repository owner. |
203
-
|`output`| No | Ignored — removal does not write any output files. |
204
-
|`output_products`| No | Ignored. |
205
-
|`hide_features`| No | Ignored. |
206
-
|`rules.bundle`| No | Ignored — bundle-time product filtering is not applied during removal. |
207
-
208
-
### Remove by product
209
-
210
-
You can create profiles that are equivalent to the `--products` filter option, that is to say the removal will affect only changelogs with matching `products`.
This removes changelogs for `elasticsearch 9.2.0 ga` — the same set that `docs-builder changelog bundle elasticsearch-release 9.2.0` would include. The lifecycle is inferred from the version string: `9.2.0` → `ga`, `9.2.0-beta.1` → `beta`. Refer to [Lifecycle inference for standard profiles](/cli/changelog/bundle.md#changelog-bundle-standard-profile-lifecycle) for details.
227
-
228
-
### Remove by report or URL list
229
-
230
-
You can also create profiles that are equivalent to the `--prs`, `--issues`, or `--report` filter options.
231
-
That is to say the removal will affect only changelogs with matching `prs` or `issues`.
232
-
233
-
For these profile-based commands, you can pass a promotion report URL, a local `.html` file, or a URL list file as the second argument. The command removes changelogs whose `prs` field matches the PR URLs extracted from the report or file. The following commands perform the same task with and without a profile:
`source: github_release` profiles require a `GITHUB_TOKEN` or `GH_TOKEN` environment variable (or an active `gh` login) to fetch release details from the GitHub API.
283
-
The `repo` and `owner` used to identify the release follow the same precedence as bundling: profile-level `repo`/`owner` override `bundle.repo`/`bundle.owner`, which in turn override the default owner `elastic`.
284
-
:::
285
-
286
-
For the full list of profile configuration fields, go to [Profile configuration fields](/cli/changelog/bundle.md#changelog-bundle-profile-config).
203
+
Refer to [](/contribute/bundle-changelogs.md#changelog-remove) for examples.
0 commit comments