geut / chan

A Changelog CLI based on http://keepachangelog.com/
ISC License
87 stars 10 forks source link

Add option to define the branch/tag to compare to #32

Closed JacobDB closed 5 years ago

JacobDB commented 5 years ago

We use a self hosted instance of GitLab at my office, and as such, the URLs that get generated by chan don't adhere to the URL structure required by GitLab.

For example, chan might output a URL like:

https://git.example.com/:weblinx/my-repository/compare/v1.0.0...HEAD

But my server actually requires:

https://git.example.com/weblinx/my-repository/compare/v1.0.0...master

Being able to pass in something like --compare master (preferably also via config file) would solve this.

JacobDB commented 5 years ago

Honestly not sure if this is the best solution for this, I'm open to suggestions.

JacobDB commented 5 years ago

Found this related issue on GitLab's tracker, will try to get some attention to it – https://gitlab.com/gitlab-org/gitlab-ce/issues/43877

tinchoz49 commented 5 years ago

Hi @JacobDB, on the next version we are going to have support for --git-template and --git-branch, so you will be able to use something like:

chan release <version> --git-template 'https://git.example.com/weblinx/my-repository/compare/[prev]...[next] --git-branch master
JacobDB commented 5 years ago

Awesome; will there be a way to do this automatically via some kind of config? Maybe something like a .chanrc?

JacobDB commented 5 years ago

Oh I see, will likely be configurable via the package.json

tinchoz49 commented 5 years ago

If you want, you can try the next version: npm install -g @geut/chan@beta feedback is welcome :smiley:

The next doc is here: https://github.com/geut/chan/tree/v2.0.0-beta/packages/chan

JacobDB commented 5 years ago

Looks like this works in the beta channel, closing 🙂