Open jhermsmeier opened 7 years ago
I've just had a look into this, and AFAICT versionist
is behaving correctly here. It looks like there's additional logic in Etcher's version of versionist.conf.js
which means that it only includes changes (in the CHANGLEOG) for commits that have a Changelog-Entry
footer https://github.com/resin-io/etcher/blob/master/versionist.conf.js#L36
IIRC Etcher was the first project to use versionist (?), a long long time before VersionBot existed. I guess @jviotti can fill in extra context / information here... ;-)
Perhaps this is something to discuss in the next Etcher team-meeting?
Regardless of config settings, the version bump in this case should have been a minor, rather than patch – guess I didn't describe the issue very well.
Hmmm, confirmed. To reproduce:
$ cd /tmp
$ git clone https://github.com/resin-io/etcher
Cloning into 'etcher'...
[snip]
Checking connectivity... done.
$ cd etcher
$ git checkout 3147a93
Note: checking out '3147a93'.
[snip]
HEAD is now at 3147a93... feat(image-stream): Support .bin image extension (#1750)
$ git tag | tail -1
v1.1.2
$ git log v1.1.2.. | grep -i Change-Type
Change-Type: minor
Change-Type: patch
Change-Type: patch
Change-Type: patch
Change-Type: patch
Change-Type: patch
Change-Type: patch
Change-Type: patch
Change-Type: patch
Change-Type: patch
Change-Type: patch
$ make electron-develop
[snip]
$ node_modules/.bin/versionist
Done
$ git diff
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0848079..43cad88 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
+## v1.1.3 - 2017-10-14
+
+### Misc
+
+- Fix Etcher being unable to read certain zip files
+- Retry ejection various times before giving up on Windows.
+- Try to use `$XDG_RUNTIME_DIR` to extract temporary scripts on GNU/Linux.
+- Fix "Couldn't scan the drives: An unknown error occurred" error when there is a drive locked with Bit
+
## v1.1.2 - 2017-08-07
### Features
$ git log HEAD~1..
commit 3147a93ca65d0b8c818fbccb5769bf5c7d5c18d1
Author: Jonas Hermsmeier <jhermsmeier@gmail.com>
Date: Tue Oct 3 18:13:02 2017 +0200
feat(image-stream): Support .bin image extension (#1750)
This adds support for selecting images with a `.bin` file extension.
Change-Type: minor
Closes #1739
I wonder if the
includeCommitWhen: (commit) => {
return commit.footer['Changelog-Entry']
},
in Etcher's versionist.conf.js
might mean that versionist is also ignoring the Change-Type: minor
in 3147a93 ? Whereas I guess expected behaviour would be for versionist to only apply that filter when determining which entries to include in the Changelog, and ignore the filter when calculating the version-bump? *shrug* (or that might be an incorrect guess, and something else might be going wrong)
Given the following git log, which contains feature additions, fixes and misc commits with correct footers,
versionist
fails to generate an appropriateCHANGELOG.md
as show in the diff below: