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: docs/configuration.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,29 @@
1
1
# Configuration options
2
2
3
-
`elastic-agent-changelog-tool` has configuration options available to change it's behaviour.
3
+
`elastic-agent-changelog-tool` has configuration options available to change its behaviour.
4
4
5
-
All settings are managed via the [`settings`][settings] package, using [`spf13/viper`][viper].
5
+
All settings are managed via the [`settings`][settings] package, using [`spf13/viper`][viper].
6
6
Configurations are bound to environment variables with same name and `ELASTIC_AGENT_CHANGELOG` prefix using [`viper.BindEnv`][bindenv].
7
7
8
8
This CLI supports and adhere to cross platform XDG Standard provided by [`OpenPeeDeeP/xdg`][xdg].
9
9
10
-
|Settings key|Default value|Note|
10
+
|Settings |Default value| Description |
11
11
|---|---|---|
12
-
|`fragment_location`|`$GIT_REPO_ROOT/changelog/fragments`|The location of changelog fragments used by the CLI. By default `fragment_root` + `fragment_path`.|
12
+
|`fragment_location`|`$GIT_REPO_ROOT/changelog/fragments`|The location of changelog fragments used by the CLI. By default `fragment_root` + `fragment_path`.|
13
13
|`fragment_path`|`changelog/fragments`|The path in `fragment_root` where to locate changelog fragments.|
14
14
|`fragment_root`|`$GIT_REPO_ROOT`|The root folder for `fragment_location`.|
15
15
16
16
## Configuration file
17
17
18
-
Not supported yet.
18
+
Add a `config.changelog.yaml` file to the repo where you're generating release notes.
19
+
20
+
When generating Markdown files, at a minimum you should set the following settings:
21
+
22
+
| Setting | Default value | Description |
23
+
|---|---|---|
24
+
|`owner` (required) |`elastic`| The owner of the GitHub repo. |
25
+
|`repo` (required) | ‒ | The name of the GitHub repo. |
26
+
|`rendered_changelog_destination`|`changelog`| The directory where you want to put the generated files.<br><br>When generating Markdown files, this should probably be `docs/release-notes/_snippets`. |
0 commit comments