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

Request: Generate GroupBy Object Array items in order as listed

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

描述

REQUEST: I would like Object Array items generated the order they are listed.

I use Pull Requests to create releases and changelogs.

I understand that currently;
- groupBy Objects are generated in the order they are listed.
- groupBy Object Arrays are generated alphabetically.

Below is my configuration. For groupBy "Database" Object, I'd like "vehicle" items then "maintain" items generated in the order as listed.
Instead I always get "maintain" first because of alphabet.

```
module.exports = {
"dataSource": "prs",
"ignoreIssuesWith": [
"wontfix",
"duplicate"
],
"prefix": "",
"onlyMilestones": false,
"groupBy": {
"Housekeeping": ["internal"],
"Database": ["vehicle", "maintain"],
"Enhancements": ["enhancement"],
"Bug Fixes": ["bug"],
"null": ["null"]
},
"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"
},
"changelogFilename": "CHANGELOG.md"
}
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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