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 摘要。