github-tools / github-tools/github-release-notes

`template` doesn't impact output for some fields

未关闭
#197 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
897
派生
313
PR 合并指标
30 天内没有已合并 PR

描述

We have a file `.grenrc.js` generated from `gren int`

After adding a template object it looks like this:

```
module.exports = {
"dataSource": "milestones",
"prefix": "n",
"groupBy": "label",
"milestoneMatch": "{{tag_name}}",
"changelogFilename": "CHANGELOG.md",
"template": {
commit: ({ message, url, author, name }) => `- [${message}](${url}) - ${author ? `@${author}` : name}`,
issue: "- {{labels}} {{name}} [{{text}}]({{url}})",
label: "[**{{label}}**]",
noLabel: "closed",
group: "\n#### {{heading}}\n",
changelogTitle: "# Changelog\n\n",
release: "## {{release}} ({{date}})\n{{body}}",
releaseSeparator: "\n---\n\n"
}
}
```

When I change values for `issue`, `label` or `group`, the `CHANGELOG.md` file is still generated from the original template. Changing values for `release` and `changelogTitle` do impact though.

贡献指南

打开贡献指南

调研方向

使用生成的 .grenrc.js 重现问题,并检查生成 CHANGELOG.md 时其模板值的应用方式。比较 issue、label 和 group 与 release 及 changelogTitle 的处理方式,然后验证更改每个值都会改变相应的输出。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
release
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。