Code Monkey home page Code Monkey logo

Comments (5)

vaab avatar vaab commented on June 7, 2024

Yes, the reference config file is used as the default. Can you elaborate on what seem inconsistent, I'm ready to work on the documentation. I just didn't catch what was missing (about section_regexps)...

from gitchangelog.

tuukkamustonen avatar tuukkamustonen commented on June 7, 2024

@vaab: Consider the following config:

section_regexps = [
    ('', None)
]

This disables the sectioning under versions (no more "New", "Fixed" and "Changes" sections that come per default).

However, gitchangelog still strips the new:/fix:/chg: prefixes from the log entries. This is specified in the reference configuration file (https://github.com/vaab/gitchangelog/blob/master/gitchangelog.rc.reference#L77). Having a commit with message of:

New: test commit

Produces a changelog of:

- test commit. [Tuukka Mustonen]

"New" was snipped away, even though I didn't instruct so in my custom section_regexps config.

from gitchangelog.

tuukkamustonen avatar tuukkamustonen commented on June 7, 2024

Oh well, nevermind, just found subject_process. And I accidentally thought that regexps were specifying the replacing operation that snips the prefixes away. Stupid me.

So yeah, reference file is inherited as defaults, that can be overridden.

Nothing wrong here, I should just RTFM.

from gitchangelog.

vaab avatar vaab commented on June 7, 2024

Well, if you have suggestion about a place to add a note or a sentence that would have avoided you to fall in this trap, I would be grateful. I might wish to add it to the documentation of others.

For instance, I could clearly state in the comment documentation of gitchangelog.rc.reference, above section_regexp, that these are only classifying regexp and that they won't touch the actual summary that will get printed, so the user might want to look also at subject_process if the subject needs some changes.

from gitchangelog.

tuukkamustonen avatar tuukkamustonen commented on June 7, 2024

Opened #40 to point out where the defaults come from.

from gitchangelog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.