oscarotero / keep-a-changelog

Node & Deno package to parse and generate changelogs
MIT License
61 stars 20 forks source link

Add cli argument head #37

Closed trivialkettle closed 12 months ago

trivialkettle commented 12 months ago

Since May 24th, 2021 gitlab.com changed it's default branch name from master to main. This commit allows to respect this change in the changelog.

oscarotero commented 12 months ago

I was thinking of creating an object with some predefined settings for well know git services like github, gitlab, bitbucket, etc. For example:

const defaults = {
  gitlab: {
    tagUrl() {
    }
    diffUrl() {
    }
    head: "main"
  }
}

The idea is that the library can detect the service and use the settings to create the urls for tags, diff, etc. Anyway, it can be useful to allow to customize it in the CLI.