Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-changelog')
-rwxr-xr-xscripts/gen-changelog7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/gen-changelog b/scripts/gen-changelog
new file mode 100755
index 000000000..efec4d54e
--- /dev/null
+++ b/scripts/gen-changelog
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Usage: gen-changelog [comittish]
+# Reads all the commits since comittish and produces changelog entries in
+# our style as best as it can, appendning them to CHANGELOG.md. If it
+# encounters a git error it won't modify CHANGELOG.md
+# @iarna uses this as the first step in producing changelogs for a release.
+(node $(npm prefix)/scripts/changelog.js "$@"; cat CHANGELOG.md) > new.md && mv new.md CHANGELOG.md