codacy / git-version

Git versioning used in Codacy
Apache License 2.0
133 stars 43 forks source link

[TS-580] Commit messages being downcased before comparison #88

Open lwbrooke opened 1 year ago

lwbrooke commented 1 year ago

For both regex and plain string comparison, the commit messages are being downcased. This means that when overriding the major and minor identifiers, one cannot use uppercase identifiers, such as MAJOR and MINOR.

As far as I can tell, this is not documented behavior.

github-actions[bot] commented 1 year ago

Internal ticket created : TS-580

msfe commented 1 month ago

If anyone else would run into this issue you can let your regex ignore casing with something like this. In my case i want it to start with Minor: or MAJOR: with any casing but you can modify according to your purpose.

      - name: Git Version
        id: version
        uses: codacy/git-version@2.7.1
        with:
          release-branch: main
          minor-identifier: /(?i)^minor:/
          major-identifier: /(?i)^major:/