changelogen icon indicating copy to clipboard operation
changelogen copied to clipboard

[BUG] Publishing Github release doesn't work in v0.5.2

Open LouisMazel opened this issue 2 years ago • 2 comments

Environment

changelogen: 0.5.2 node: 18.14.1 browser: Arc v0.95.1 (37921)

Reproduction

Run: changelogen --release --push

package.json

{
  "changelog": {
    "repo": {
      "provider": "github"
    }
  }
}

Describe the bug

The auto publish of the release with Github not works anymore with v0.5.2

A new window of the Browser is open, stay open and the release is not published.

Additional context

The urls generated for commits and compare version looks like:

  • https://undefined/undefined/compare/v0.0.8...v0.0.9

I think the bug is due to this error

Check it here: https://github.com/zadigetvoltaire/nuxt-gtm/blob/main/CHANGELOG.md (v0.0.9)

Logs

> changelogen --release --push

ℹ Generating changelog for v0.0.8...main                                                                                          15:27:31
ℹ Bumping version from 0.0.8 to 0.0.9 (minor)                                                                                     15:27:31
ℹ Updating /.../CHANGELOG.md                                                                 15:27:31
ℹ Followup in the browser to manually create the release.

LouisMazel avatar Mar 30 '23 14:03 LouisMazel

This seems (always was) a bug when only setting provider without github URL. Can you try removing repo configuration and instead set repository field in your package.json

pi0 avatar Mar 31 '23 09:03 pi0

I already set the repository url:

{
  "repository": {
    "type": "git",
    "url": "https://github.com/zadigetvoltaire/nuxt-gtm.git"
  },
}

I downgraded the version to 0.5.1 and it's working well.

If I delete this configuration, the release synchronization with Github will not be done automatically when I run changelogen --release --push ?

{
  "changelog": {
    "repo": {
      "provider": "github"
    }
  }
}

LouisMazel avatar Apr 04 '23 09:04 LouisMazel