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

Request: Generate GroupBy Object Array items in order as listed

Abierto
#273 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
897
Forks
313
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by locating the code that processes the groupBy configuration and orders object-array groups, using the example configuration in the issue as the reproduction case. Verify that the Database items are emitted as "vehicle" then "maintain" rather than alphabetically, and confirm the existing ordering behavior remains intact for other groupBy forms.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
release
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.