-
Notifications
You must be signed in to change notification settings - Fork 595
/
Copy pathcommits-for-release-notes.sh
executable file
·49 lines (36 loc) · 1.29 KB
/
commits-for-release-notes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -e
ROOT_DIR=$(dirname $(readlink -f $0))/..
LAST_VERSION=$1
REPLACEMENT="perl -pe s|(.*?)(\(?#(\d+)\)?(\s\(#\d+\))?)?$|\*\1\[#\3\]\(https://github.com/akka/akka-http/pull/\3\)|"
echo "#### akka-http-core"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/akka-http-core | $REPLACEMENT
echo
echo "#### akka-http"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/akka-http | $REPLACEMENT
echo
echo "#### akka-http-marshallers"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/akka-http-marshallers* | $REPLACEMENT
echo
echo "#### akka-http-testkit"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/akka-http-testkit | $REPLACEMENT
echo
echo "#### docs"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/docs | $REPLACEMENT
echo
echo "#### akka-http2-tests"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/akka-http2-tests | $REPLACEMENT
echo
echo "#### akka-http-caching"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/akka-http-caching | $REPLACEMENT
echo
echo "#### build"
echo
git log --no-merges --reverse --oneline ${LAST_VERSION}.. -- $ROOT_DIR/project $ROOT_DIR/*.sbt | $REPLACEMENT | grep -v Update