Get Release Body for specified Tag or Tag range, and support filtering, processing and extraction of PRs that appear in it (e.g., extracting highlight features).
cnbcool/range-changelog:v1.1.3
start_tag: Required. Start Tag.end_tag: Required. End Tag.output: Required. Output file path.pr_label: Required. The label of PRs that should be filtered out. For example, within a Tag range, some PRs have specific labels. This parameter can be used to filter them out for further processing and place them at the front of the final output.comment_pattern: Required. Regular expression for matching comments, e.g., ^#+\s+高亮特性, which means the comment starts with 1+ # + space + 高亮特性.custom_content: Optional. Custom content that will be inserted after the ## Changelog title. Supports multi-line text.CNB_REPO_SLUG: Required. Repository slug, format like cnb/monorepo.CNB_API_ENDPOINT: Required. CNB API base URL.CNB_TOKEN: Optional. CNB API authentication token for accessing private repositories or authenticated APIs.$:
web_trigger_get_range_changelog:
- stages:
- name: Get Range Changelog
image: cnbcool/range-changelog:v1.1.3
settings:
start_tag: 1.11.19
end_tag: 1.13.22
output: 1.11.19-1.13.22.range-changelog.md
pr_label: 高亮特性
comment_pattern: "^#+\s+高亮特性"
custom_content: |
This update includes the following important changes:
- Performance improvements
- New features
- Bug fixes
Note: CNB_REPO_SLUG, CNB_API_ENDPOINT, and CNB_TOKEN are automatically provided by the CNB platform and do not need to be manually set in the configuration.
## Changelog (1.12.0 - 1.13.5)
[If custom_content is set, custom content will be inserted here]
### 🎯 Highlight Features
[Extracted highlight features list here]
### ⚠️ Breaking Changes Summary
[Extracted breaking changes summary list here]
## 1.13.5
[Extracted Release Body content for 1.13.5 here]
## 1.13.4
[Extracted Release Body content for 1.13.4 here]
...
## 1.12.0
[Extracted Release Body content for 1.12.0 here]
The plugin depends on the following environment variables provided by the CNB platform:
| Environment Variable | Description | Required |
|---|---|---|
CNB_REPO_SLUG | Repository slug, format like cnb/monorepo | Yes |
CNB_API_ENDPOINT | CNB API base URL | Yes |
CNB_TOKEN | CNB API authentication token | No |
These environment variables are automatically provided by the CNB platform and usually do not need to be manually set.