Skip to content

Commit f8e8eee

Browse files
committed
Merge pull request #165 from arschles/changelog-beta2
doc(CHANGELOG.md): add changelog for beta2
2 parents c79004a + 0400f6b commit f8e8eee

2 files changed

Lines changed: 32 additions & 36 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### v2.0.0-beta1 -> v2.0.0-beta2
2+
3+
#### Features
4+
5+
- [`d555f3a`](https://github.com/deis/workflow/commit/d555f3a81cae17a7537766686c428a4358740e7a) storage: change docs to use deis-object-storage-secret for configuring database
6+
- [`abd3279`](https://github.com/deis/workflow/commit/abd32796e908f8b71629a373a8b5a05e198cf156) managing-deis: lazy pass at upgrading workflow
7+
- [`7a32ce8`](https://github.com/deis/workflow/commit/7a32ce826713980e13476c7b5e840635e350d09b) healthchecks: improve healthcheck documentation, add new options and include defaults
8+
- [`c71b596`](https://github.com/deis/workflow/commit/c71b596ab44bb26c7e1a84f13fb3bcb3050243c0) mkdocs: enable toc extension
9+
- [`614a487`](https://github.com/deis/workflow/commit/614a487936b41aea2f288bf656b9f5fa9eee7009) docker: add .dockerignore
10+
- [`5652eef`](https://github.com/deis/workflow/commit/5652eeff2643387f204eff93fadc34982a97b165) storage: change docs to use deis-object-storage-secret for configuring the storage
11+
12+
#### Fixes
13+
14+
- [`9cd65e6`](https://github.com/deis/workflow/commit/9cd65e65972a98c515b28218f3e2d454206fb751) CONTRIBUTING: fix broken links
Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
#!/usr/bin/env bash
22
# vim: et tw=0 sw=4 ts=4
33

4+
REPOROOT=${REPOROOT:=https://github.com/deis/workflow}
5+
TYPES=${TYPES:=feat(;Features fix(;Fixes docs(;Documentation chore(;Maintenance}
6+
47
usage() {
5-
echo "Usage: $0 <from> [to]"
6-
echo "The REPOROOT and TYPES variables may be used to customize"
7-
echo "what is scraped from the commit logs. Current settings are:"
8-
echo
9-
echo " REPOROOT = $REPOROOT"
10-
echo " TYPES = $TYPES"
11-
echo
8+
echo "Usage: $0 <from> [to]
9+
The REPOROOT and TYPES variables may be used to customize what links are
10+
generated and what is scraped from the commit logs. Current settings are:
11+
REPOROOT=$REPOROOT
12+
TYPES=$TYPES
13+
"
1214
}
1315

1416
# Print the information scraped from git
1517
retrieve() {
16-
while read commit hash message
17-
do
18+
while read -r commit hash message; do
1819
# Extract the subsystem where type(subsystem): message
19-
SUBSYSTEM=$(echo $message | cut -d'(' -f2 | cut -d')' -f1 | sed 's/\*/\(all\)/g')
20+
SUBSYSTEM=$(echo "$message" | cut -d'(' -f2 | cut -d')' -f1 | sed 's/\*/\(all\)/g')
2021
# Extract the message where type(subsystem): message
21-
MESSAGE=$(echo $message | awk -F ")" '{ print $2}' | sed 's/://' | cut -f2- -d' ')
22+
MESSAGE=$(echo "$message" | awk -F ")" '{ print $2}' | sed 's/://' | cut -f2- -d' ')
2223
# Generate a link to the full legal commit on GitHub
2324
LINK="$REPOROOT/commit/$hash"
2425
# Echo all this in a way that makes the commit hash and message a link
@@ -37,47 +38,28 @@ subheading() {
3738
}
3839

3940
main() {
40-
# if REPOROOT is already in the environment, don't overload it and use that
41-
if [ -z "$REPOROOT" ];
42-
then
43-
REPOROOT="https://github.com/deis/deis"
44-
fi
45-
46-
# if TYPES is already in the environment, don't overload it and use that
47-
if [ -z "$TYPES" ];
48-
then
49-
# Based on https://github.com/deis/deis/blob/master/CONTRIBUTING.md
50-
# The format is in the form of $shortname;$longname $shortname;longname.
51-
TYPES="feat(;Features fix(;Fixes docs(;Documentation chore(;Maintenance"
52-
fi
53-
5441
# Print usage summary if user didn't specify a beginning
55-
if [ -z "$1" ];
56-
then
42+
if [ -z "$1" ]; then
5743
usage
5844
exit 1
5945
fi
6046

6147
FROM=$1
6248
TO=${2:-"HEAD"}
6349

64-
printf "### $FROM -> $TO\n\n"
50+
printf "### %s -> %s\n\n" "$FROM" "$TO"
6551

6652
# Iterate over the types of messages specified
67-
for LEGALTYPE in $TYPES
68-
do
53+
for LEGALTYPE in $TYPES; do
6954
SHORT=$(echo "$LEGALTYPE" | cut -f1 -d';')
7055
LONG=$(echo "$LEGALTYPE" | cut -f2 -d';')
71-
72-
subheading $LONG $SHORT
56+
subheading "$LONG" "$SHORT"
7357
done
7458
}
7559

76-
if (( $SHLVL == 2 ))
77-
then
60+
if [ $SHLVL -eq 2 ]; then
7861
# If this is being run as a command
79-
main $*
80-
exit
62+
main "$@"
8163
else
8264
# Otherwise this is being sourced
8365
unset -f main

0 commit comments

Comments
 (0)