Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Request: Generate GroupBy Object Array items in order as listed #273

Open
samkatakouzinos opened this issue Jun 6, 2020 · 0 comments
Open

Comments

@samkatakouzinos
Copy link

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"
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant