You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git node release --prepare writes changelog-maker's token prompt into the changelog #1250
When changelog-maker has no stored GitHub token, git node release --prepare completes without error, but the ### Commits section of doc/changelogs/CHANGELOG_VXX.md contains the token prompt instead of the commit list:
### Commits
Personal access token auth for Github.
...
Paste your token here:
Why
getChangelog() runs changelog-maker through runSync(), which only checks the exit status. Without a token, ghauth prints its prompt on stdout and waits on stdin. Under spawnSync stdin is closed, so the read never settles, the event loop drains and the process exits with status 0. The prompt is returned as the changelog.
Reproduction (inside a nodejs/node checkout, HOME and XDG_CONFIG_HOME pointing to an empty directory):
const{ spawnSync }=require('node:child_process');constr=spawnSync('<ncu>/node_modules/.bin/changelog-maker',['--group','--markdown','--filter-release','--start-ref','HEAD~3']);console.log(r.status);// 0console.log(r.stdout.toString());// only the token prompt
Expected
Stop with an error telling the releaser to store a token for changelog-maker.
Activity
aduh95 commentedon Nov 20, 2026
That's a changelog-maker issue
GroophyLifefor commentedon Nov 20, 2026
Thank you, you right and there is open pr about that (npm/read#157). I missed it.