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

Request: Generate GroupBy Object Array items in order as listed

Đang mở
#273 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
897
Fork
313
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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"
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.