Comments (9)
--tag-prefix
and --ignore-commit-pattern
added in 1.4.0
from auto-changelog.
@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.
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.
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.
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.
- Well, the
<package>
part of the tag could just be based on the package name inpackage.json
, so, yes, you would run theauto-changelog
command for each package that was being released. Not quite sure what you mean by running "auto-changelog
twice for each..." - 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.
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.
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.
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)
- [Feature Request] Show contributors in changelog
- Feature: Add an option to allow indention HOT 4
- Bug(?) No summary output HOT 1
- Feature: Add `starting-ref` and `ending-ref` option HOT 2
- Filtering back-merges and dev to main merges
- Test of releases are failing
- Support GitLab's new style routes HOT 5
- --commit-pattern option mentioned in readme doesnt exist HOT 2
- Support `--package pyproject.toml`
- Deduplicate Issues in output
- SyntaxError: Unexpected token v in JSON at position 478
- Only getting the last commit on "CHANGELOG.md" HOT 4
- Latest version on the changelog is not respecting tagPrefix HOT 1
- Questions on workflow
- Question about filtering in templates HOT 3
- Only the last tags HOT 1
- Feature Request: Debug HOT 4
- replaceText only applies to subject and not message
- `--starting-date` not working in 2024 HOT 1
- Getting undefined in generated file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-changelog.