Plugin: generator-changelog-html
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Generates an HTML changelog for the pending release. It is useful for release portals, static sites, and emails that need richly formatted output.
Installation
Section titled “Installation”go install github.com/SemRels/generator-changelog-html@latestEach plugin is a standalone Go binary. Keep it on your PATH or reference it with path: in .semrel.yaml. If you keep secrets in a .env file, load them with semrel --env-file .env release.
Configuration
Section titled “Configuration”version: 1plugins: - name: generator-changelog-html path: generator-changelog-html args: template: templates/changelog.html.tmpl css_file: templates/changelog.css max_commits: 100Environment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_TEMPLATE | no | built-in template | Path to a Go template used to render the changelog. |
SEMREL_PLUGIN_CSS_FILE | no | — | Optional CSS file to embed or reference in the HTML output. |
SEMREL_PLUGIN_MAX_COMMITS | no | 100 | Maximum number of commits to include. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_TAG_NAMESEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_BUMPSEMREL_BRANCHSEMREL_TAG_PREFIXSEMREL_DRY_RUN
Example Output
Section titled “Example Output”A generated changelog can include HTML like <h2>v1.4.0</h2><ul><li>feat: add search endpoint</li><li>fix: handle empty state</li></ul>.