Replies: 16 comments
-
Sample logs build
deps
docs
examplestests |
Beta Was this translation helpful? Give feedback.
-
Oh, neat! is there a way to disable the git commit links using the tool? I usually don't want to link to commits, as it assumes that we don't rewrite history and that we'll always be on GitHub.com . One other question is for deps, I always include the dependency's own change log inline so the change message is more meaningful. Is it possible to do that as well? |
Beta Was this translation helpful? Give feedback.
-
Its possible to disable the git commit links as it's using handlebarsjs. Btw you could always regenerate all your changelogs. For the deps, the git history isn't in your parent module so it's not possible. Why don't you just give a link of the changelog of the deps when you bump a dep in the parent module in the commit message? Or even copy and paste the deps changelog in the commit message? |
Beta Was this translation helpful? Give feedback.
-
So a simple
So we don't provide links because it doesn't help people understand the difference when they are not online and it requires us to keep changing the history file whenever one of those moves (and also assumes the changelog is even accessible on the Internet at all, which is no guarantee, as something may be published to npm without a public repo).
We could, but how will they show up? I see in the example you pasted above, it seems to just smash everything on one line (like you can see those "closes ..." are in the body of the commit messages, yet appear on the same line in the history). Could we get them to appear as indented bullets like we do today? Another question for sub dependencies, if those sub dependencies then change to use this format, their change logs will no longer be a simple list, but a list with titles, etc. How can we easily translate that here as well? I ask because I'm very interested in your module and I understand the purpose of it is to automate these things :) But I'm not willing to loose what we have now in order to get it. |
Beta Was this translation helpful? Give feedback.
-
Another thing that would help is if you could provide an example of how to generate that log you pasted above, or a PR that does :) Otherwise if I have to figure out how to invoke it, it may be a long time before anything is ever done to start using it. |
Beta Was this translation helpful? Give feedback.
-
Because we are using handlebarsjs to template, in essence if handlebarsjs is able to do this we could. The format of your sub deps would depends on the markdown you put in the commit message. So I believe this is yes. An ideal commit message would be something like this
Are you saying to transfer another modules changelog to a module and modify the format/contents a bit? This is out of the scope of my modules I believe. I think if you want to link two modules changelog it's really better to put ones in another's commit messages. This way it's even easier for people to view both logs (eg
This is generated by |
Beta Was this translation helpful? Give feedback.
-
https://github.com/stevemao/conventional-commits-parser is the parser we use to parse the messages.
Meaning we don't parse the messages of the body part because this is usually long paragraph(s) so you could format using markdown by yourself in the commit. The header is the place usually you put different short parts of the message. In the footer you could put some important notes. But I believe you could put your sub deps information in the body. |
Beta Was this translation helpful? Give feedback.
-
Ah, gotcha. What would it look like to even make customizations, like customizing the templates? We don't (currently) use gulp/grunt, so hopefully it won't require that we use that to use this module, or it may be a long time before we get around to adopting. Also, I forgot to ask, but is it possible to leave things out of the change log? For example, we never list things starting with "tests:" or "build:" or "examples:" or "docs" (really, everything except "perf:" and "deps:") in the changelog, so if it's possible to have this generator skip those commits, that would be ideal as well :)
Would the body show as indented for the commit message in the changelog (like we do today with the sub dependencies)? |
Beta Was this translation helpful? Give feedback.
-
In the end, the change log right now is not hand-done, but done using scripts. This means that without getting some commands provided to us to use this module (perhaps a PR?) without us doing a lot of research just it's a large incentive, because the current changelog is fully automated already. I'm definitely interested in using something not hand-rolled, but I have pretty much no spare time to do any reading on how to get this module put together to give what we have now, so the more you can provide, the better the changes are for us to switch :)! |
Beta Was this translation helpful? Give feedback.
-
the gulp/grunt wrappers is pretty much a shortcut of using the cli. As I said we could create an express preset that holds all templates/settings just for express. (gulp/grunt has nothing to do with the template)
Yes. You could also change the name
Is the body indented because of markdown (I think it is)? As long as the template generates the same markdown its indented right?
I understand. I will definitely do a PR. |
Beta Was this translation helpful? Give feedback.
-
It would be helpful if you could provide the markdown of a release as a sample, and I'll make a express preset that generates the same markdown (Although you'll need to write more in the commit message just for the deps you mentioned). |
Beta Was this translation helpful? Give feedback.
-
Awesome! I'm not quite sure, are you asking me to provide something? Something more than simply the Markdown we have in our History.md file right now? Let me know what I can provide :) |
Beta Was this translation helpful? Give feedback.
-
If I were to put the changelog of the upstream dependency within it's commit message, it would look like this:
But also note that since I've never done this before, the exact format is up for compromise or whatever :) |
Beta Was this translation helpful? Give feedback.
-
Sorry I didn't see that file. I was looking at your github releases :) we have conventional-changelog or conventional-github-releaser that can do both. I think that commit message will work. In the meanwhile, I believe you need to add a commit message guideline and state that clearly in it (you could see jquery's as an example). the deps commit would be a bit tricky I think. It would be good for people who contribute and for me as a preset reference. |
Beta Was this translation helpful? Give feedback.
-
Hi @dougwilson Just letting you know that I've created a express branch and based on sample commits:
it generates: 2015-07-27
===================
### Dependencies
* [email protected]
* type-is@~1.6.3
- deps: mime-types@~2.1.1
- perf: reduce try block size
- perf: remove bitwise operations
### Performance
* use saved reference to http.STATUS_CODES
closes #2602 which compiles to 2015-07-27Dependencies
Performance
closes #2602 Note that version number or some links are missing that's because it's not in the real express git environment (this is the result of unit test). |
Beta Was this translation helpful? Give feedback.
-
Using the express package.json and tweak the layout a little bit 4.13.1 / 2015-07-27
===================
### Dependencies
* [email protected]
* type-is@~1.6.3
- deps: mime-types@~2.1.1
- perf: reduce try block size
- perf: remove bitwise operations
### Performance
* use saved reference to http.STATUS_CODES
Closes [#2602](https://github.com/strongloop/express/issues/2602) 4.13.1 / 2015-07-27Dependencies
Performance
|
Beta Was this translation helpful? Give feedback.
-
we have conventional-changelog or conventional-github-releaser (there are also grunt/gulp tasks) to automate the process of writing the changelog. As you are using formatted commit messages so the logs can be generated well according to the parts of the message. We use handlebars for templating the logs. It can also ignore reverted commits. There are many other features. We have a jquery preset for people using jquery commit format.
The modules are actively maintained.
Beta Was this translation helpful? Give feedback.
All reactions