Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

Commit 01f35a2

Browse files
committed
doc/generate-changelog: add deis' changelog generation script
This file is under the Apache license
1 parent 4311885 commit 01f35a2

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

doc/generate-changelog.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
usage() {
4+
echo "Usage: $0 <from> [to]"
5+
}
6+
7+
retrieve() {
8+
git --no-pager log --oneline --pretty=format:" - %h %s" --no-merges --grep="$1" $FROM..$TO
9+
}
10+
11+
subheading() {
12+
echo "#### $1\n"
13+
retrieve "$2"
14+
echo
15+
echo
16+
}
17+
18+
FROM=$1
19+
TO=${2:-"HEAD"}
20+
21+
if [ -z $1 ];
22+
then
23+
usage
24+
exit 1
25+
fi
26+
27+
echo "### $FROM -> $TO\n"
28+
29+
subheading "Protocol Adjustments" "protocol\/"
30+
subheading "Other Files" "etc\/"
31+
subheading "Documentation" "doc\/"
32+
subheading "Bot Commands" "bot\/"
33+
subheading "Core Improvements" "src\/"
34+
subheading "Core Modules" "core\/"
35+
subheading "Scrapers" "scrapers\/"
36+
subheading "Announcers" "announcer\/"
37+
subheading "Services" "services\/"

modules/contrib

0 commit comments

Comments
 (0)