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
* Add wiki-custom-usage-string setting
* Use config.wikiCustomUsageString in the wiki generation logic
* Extract default usage block into a separate function
* A couple of test cases to check the new logic of "usage" block generation
* Mention wiki-custom-usage-string in the README
* Fix linter errors
* Replace wiki-custom-usage-string with wiki-custom-usage-template in config and readme
* New method to get the version number without "v"
* Add new module to handle template rendering
* Use newly defined render function for the wiki generation
* Tests for new templated "usage" block genration
* Update README
* Update config name and default value in action.yaml
* Drop DEFAULT_USAGE_BLOCK function and use just render helper
* Rename wikiCustomUsageTemplate -> wikiUsageTemplate in existing tests
* Add new variables to the test case
* Linter feedback
* Use `key in variables` to make sure the key is present
* Add default wiki usage template to test mocks
| `major-keywords` | Keywords in commit messages that indicate a major release | `major change,breaking change` |
190
-
| `minor-keywords` | Keywords in commit messages that indicate a minor release | `feat,feature` |
191
-
| `patch-keywords` | Keywords in commit messages that indicate a patch release | `fix,chore,docs` |
192
-
| `default-first-tag` | Specifies the default tag version | `v1.0.0` |
193
-
| `terraform-docs-version` | Specifies the terraform-docs version used to generate documentation for the wiki | `v0.19.0` |
194
-
| `delete-legacy-tags` | Specifies a boolean that determines whether tags and releases from Terraform modules that have been deleted should be automatically removed | `true` |
195
-
| `disable-wiki` | Whether to disable wiki generation for Terraform modules | `false` |
196
-
| `wiki-sidebar-changelog-max` | An integer that specifies how many changelog entries are displayed in the sidebar per module | `5` |
197
-
| `disable-branding` | Controls whether a small branding link to the action's repository is added to PR comments. Recommended to leave enabled to support OSS. | `false` |
198
-
| `module-path-ignore` | Comma-separated list of module paths to completely ignore. Modules matching any pattern here are excluded from all versioning, releases, and documentation.<br><sub>[Read more here](#understanding-the-filtering-options)</sub> | `` (empty string) |
199
-
| `module-change-exclude-patterns` | Comma-separated list of file patterns (relative to each module) to exclude from triggering version changes. Lets you release a module but control which files inside it do not force a version bump.<br><sub>[Read more here](#understanding-the-filtering-options)</sub> | `.gitignore,*.md,*.tftest.hcl,tests/**` |
200
-
| `module-asset-exclude-patterns` | A comma-separated list of file patterns to exclude when bundling a Terraform module for tag/release. Patterns follow glob syntax (e.g., `tests/\*\*`) and are relative to each Terraform module directory. Files matching these patterns will be excluded from the bundled output. | `.gitignore,*.md,*.tftest.hcl,tests/**` |
201
-
| `use-ssh-source-format` | If enabled, all links to source code in generated Wiki documentation will use SSH standard format (e.g., `git::ssh://[email protected]/owner/repo.git`) instead of HTTPS format (`git::https://github.com/owner/repo.git`) | `false` |
| `major-keywords` | Keywords in commit messages that indicate a major release | `major change,breaking change` |
190
+
| `minor-keywords` | Keywords in commit messages that indicate a minor release | `feat,feature` |
191
+
| `patch-keywords` | Keywords in commit messages that indicate a patch release | `fix,chore,docs` |
192
+
| `default-first-tag` | Specifies the default tag version | `v1.0.0` |
193
+
| `terraform-docs-version` | Specifies the terraform-docs version used to generate documentation for the wiki | `v0.19.0` |
194
+
| `delete-legacy-tags` | Specifies a boolean that determines whether tags and releases from Terraform modules that have been deleted should be automatically removed | `true` |
195
+
| `disable-wiki` | Whether to disable wiki generation for Terraform modules | `false` |
196
+
| `wiki-sidebar-changelog-max` | An integer that specifies how many changelog entries are displayed in the sidebar per module | `5` |
197
+
| `disable-branding` | Controls whether a small branding link to the action's repository is added to PR comments. Recommended to leave enabled to support OSS. | `false` |
198
+
| `module-path-ignore` | Comma-separated list of module paths to completely ignore. Modules matching any pattern here are excluded from all versioning, releases, and documentation.<br><sub>[Read more here](#understanding-the-filtering-options)</sub> | `` (empty string) |
199
+
| `module-change-exclude-patterns` | Comma-separated list of file patterns (relative to each module) to exclude from triggering version changes. Lets you release a module but control which files inside it do not force a version bump.<br><sub>[Read more here](#understanding-the-filtering-options)</sub> | `.gitignore,*.md,*.tftest.hcl,tests/**` |
200
+
| `module-asset-exclude-patterns` | A comma-separated list of file patterns to exclude when bundling a Terraform module for tag/release. Patterns follow glob syntax (e.g., `tests/\*\*`) and are relative to each Terraform module directory. Files matching these patterns will be excluded from the bundled output. | `.gitignore,*.md,*.tftest.hcl,tests/**` |
201
+
| `use-ssh-source-format` | If enabled, all links to source code in generated Wiki documentation will use SSH standard format (e.g., `git::ssh://[email protected]/owner/repo.git`) instead of HTTPS format (`git::https://github.com/owner/repo.git`) | `false` |
202
+
| `wiki-usage-template` | A raw, multi-line string to override the default 'Usage' section in the generated wiki. Allows using variables like {{module_name}}, {{latest_tag}}, {{latest_tag_version_number}} and more.<br><sub>[Read more here](#configuring-the-usage-template)</sub> | [See action.yml](https://github.com/polleuretan/terraform-module-releaser/blob/main/action.yml#L108) |
202
203
203
204
### Understanding the filtering options
204
205
@@ -281,9 +282,22 @@ similar to those used in `.gitignore` files. For more details on the pattern mat
281
282
[source code](https://github.com/techpivot/terraform-module-releaser/blob/main/src/utils/file.ts) or visit the
0 commit comments