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

gren changelog vs gren changelog --generate inconsistency

未關閉
#143 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
897
分支
313
PR 合併指標
30 天內沒有已合併 PR

描述

After fiddling with the PRs for #140, I came across something that might be an inconsistency in the code.

Running:

gren changelog --include-messages=all --override

Generates `CHANGELOG.md` (with all releases) these lines (before the fix):

## v1.1.0-beta.0 (01/03/2018)
- [1.1.0-beta.0](https://api.github.com/...) - Author Authorson

After changing the template in the global scope for `templateCommits`, I rerun:

gren changelog --include-messages=all --override

Providing the same result. Which has not the updated URLs.

But if I run:

gren changelog --include-messages=all --override --generate

I get the `CHANGELOG.md` with the updated template:

## v1.1.0-beta.0 (01/03/2018)
- [1.1.0-beta.0](https://github.com/...) - Author Authorson

Is this intended, or a bug?

貢獻指南

開啟貢獻指南

研究方向

Reproduce the two commands shown in the issue: gren changelog --include-messages=all --override and the same command with --generate. Trace the changelog generation path and template handling to determine why the updated URLs differ; done when both modes consistently apply the selected template, with coverage for the reported commands.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
cli, release
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。