Skip to content

git node release --prepare writes changelog-maker's token prompt into the changelog #1250

Closed as not planned

Description

@GroophyLifefor

What happens

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');
const r = spawnSync('<ncu>/node_modules/.bin/changelog-maker',
  ['--group', '--markdown', '--filter-release', '--start-ref', 'HEAD~3']);
console.log(r.status); // 0
console.log(r.stdout.toString()); // only the token prompt

Expected

Stop with an error telling the releaser to store a token for changelog-maker.

Versions

node-core-utils 7.8.0, changelog-maker 4.4.32, ghauth 7.0.14, Node.js 26.12.1, Linux.

Refs: #404 (same cause in 2020, older Your GitHub username: prompt; closed as stale)

Activity

  1. aduh95 commented on Nov 20, 2026

    @aduh95
    Contributor

    That's a changelog-maker issue

  2. GroophyLifefor commented on Nov 20, 2026

    @GroophyLifefor
    Author

    Thank you, you right and there is open pr about that (npm/read#157). I missed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions