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

Error generating pull requests changelog on Github enterprise

Abierto
#203 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

when running: `gren changelog --generate --tags 5.0.0..4.2.0 --override --data-source prs --debug`

we're getting:
```
Options:
Tags: 5.0.0,4.2.0
Prefix: v
Template: [object Object]
Prerelease: false
Generate: true
Quiet: false
Override: true
Debug: true
Ignore labels: empty
Ignore issues with: duplicate,wontfix,invalid,help wanted
Ignore commits with: empty
Group by: [object Object]
Milestone match: Release {{tag_name}}
Changelog filename: CHANGELOG.md
Username: user
Repo: repo1
Token: 123321
Api url: https://github.enterprise.com/api/v3
Data source: prs
Include messages: commits
Ignore tags with: empty
Limit: 30

🤖 - Generate changelog file:
===================================
✔ Releases found: 3
✔ Tags found: 5.0.0, 4.2.0
⠸ Getting all merged pull requestsTypeError: Cannot read property 'length' of undefined
at /usr/local/lib/node_modules/github-release-notes/dist/Gren.js:1375:39
at Array.filter ()
at /usr/local/lib/node_modules/github-release-notes/dist/Gren.js:1374:42
at Array.reduce ()
at Gren._groupBy (/usr/local/lib/node_modules/github-release-notes/dist/Gren.js:1373:55)
at /usr/local/lib/node_modules/github-release-notes/dist/Gren.js:1566:104
at Array.map ()
at Gren._callee14$ (/usr/local/lib/node_modules/github-release-notes/dist/Gren.js:1563:57)
at tryCatch (/usr/local/lib/node_modules/github-release-notes/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/github-release-notes/node_modules/regenerator-runtime/runtime.js:296:22)
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce with the provided `gren changelog --generate --tags 5.0.0..4.2.0 --override --data-source prs --debug` command against GitHub Enterprise. Inspect `dist/Gren.js` around lines 1373-1375, where `_groupBy` accesses an undefined value while processing merged pull requests; done means the command completes without the TypeError and generates the changelog.

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

Evaluación

Stack tecnológico
javascript
Área
release
Tipo de issue
Error
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.