Giter Site home page Giter Site logo

Comments (9)

cookpete avatar cookpete commented on June 25, 2024 1

--tag-prefix and --ignore-commit-pattern added in 1.4.0

from auto-changelog.

flochtililoch avatar flochtililoch commented on June 25, 2024

@jeffkpayne I needed that support too so I quickly hacked it together - not the cleanest by any mean and haven't took the time to add test coverage so I won't open a PR for now.
@cookpete Let me know if you want me to open a PR for this change - and thank you for providing this module!

from auto-changelog.

flochtililoch avatar flochtililoch commented on June 25, 2024

One caveat of my solution is it doesn’t filter out commits from unrelated packages, so this might still need a little more work

from auto-changelog.

jeffkpayne avatar jeffkpayne commented on June 25, 2024

Yeah, to be honest, I hadn't even thought about that problem. Could be solved with post-processing the changelog file or maybe even with some conditionals in the handlebars template, which would, for instance, exclude commit/merge/fix messages without the target package "label"...

from auto-changelog.

cookpete avatar cookpete commented on June 25, 2024

This is an interesting problem. What would the intended solution be here? If we support a prefix option, it would limit the changelog to just one package, so would you run auto-changelog twice for each?

auto-changelog --output changelog-alpha.md --tag-prefix package-alpha-
auto-changelog --output changelog-beta.md --tag-prefix package-beta-

As @flochtililoch mentions, this also suggests a need for an --ignore-commit-pattern option, which would be good to have either way.

from auto-changelog.

jeffkpayne avatar jeffkpayne commented on June 25, 2024
  1. Well, the <package> part of the tag could just be based on the package name in package.json, so, yes, you would run the auto-changelog command for each package that was being released. Not quite sure what you mean by running "auto-changelog twice for each..."
  2. Right, there would have to be something in the commit message that could be used as a switch to include/exclude it from the changelog for that package.

from auto-changelog.

cookpete avatar cookpete commented on June 25, 2024

Well, the part of the tag could just be based on the package name in package.json

I think it's better to remain flexible and allow users to pass in any prefix they might be using.

Not quite sure what you mean by running "auto-changelog twice for each..."

Sorry, badly worded. I meant run it twice (or more), once for each package you are generating a log for.

Right, there would have to be something in the commit message that could be used as a switch to include/exclude it from the changelog for that package.

Yeah it would depend on a consistent commit message pattern for your use case, but I think it's a helpful feature anyway for reducing noise in logs.

from auto-changelog.

jeffkpayne avatar jeffkpayne commented on June 25, 2024

Sounds awesome. Just curious, do you know of a good primer for getting set up locally for node.js development? I'd love to tackle this kind of thing myself, but am a little confused about how to build/test changes locally...

from auto-changelog.

cookpete avatar cookpete commented on June 25, 2024

It should be as simple as installing node.js and then:

# clone and cd into root dir
git clone https://github.com/CookPete/auto-changelog.git # or your own fork
cd auto-changelog

# install dependencies
npm install 

# run tests locally
npm test 

# compile src files to lib
npm run build

# run compiled version locally
node lib/index.js --output custom-output.md 

Just a heads up – I have already added --tag-prefix and --ignore-commit-pattern options, but have not yet pushed/published them. Feel free to play around with things locally though.

from auto-changelog.

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.