geut / chan

A Changelog CLI based on http://keepachangelog.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to define the branch/tag to compare to

JacobDB opened this issue · comments

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.

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

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

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

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

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

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

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

Looks like this works in the beta channel, closing 🙂