Skip to content

Commit 6133564

Browse files
committed
feat(_scripts): add CHANGELOG.md and generator script
1 parent b2e80d4 commit 6133564

2 files changed

Lines changed: 167 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,99 @@
1-
# Changlog for PROJECTNAME
1+
### 2.0.0-alpha -> v2.0.0-beta1
22

3-
This is a placeholder for a markdown-formatted changelog.
3+
#### Features
4+
5+
- [`97d1d2a`](https://github.com/deis/builder/commit/97d1d2a4019a245a9b5498bc293ba1a56d3ed395) Makefile: enable immutable (git-based
6+
- [`ea1712f`](https://github.com/deis/builder/commit/ea1712f6c9d2cf8684acebe86dea46244e20d2d6) cleaner: write unit test for cleaner
7+
- [`5e2baaf`](https://github.com/deis/builder/commit/5e2baaffc965e524fb4ed03231e77c667227550c) builder: get the slug/docker builder images from the environment
8+
- [`6955570`](https://github.com/deis/builder/commit/69555705190db894e1aab28a5cfb2fc3c41f1264) lock: change cleaner code to listen to k8s namespsce events
9+
- [`1d926fa`](https://github.com/deis/builder/commit/1d926fae1128e29b71817d59f3c2d3521f855f7a) server: add more tests for the SSH server
10+
- [`7330a6d`](https://github.com/deis/builder/commit/7330a6de7c9639ac338cb0625318d8cc49bbff52) race: change heritage label for every pod launch
11+
- [`707fbea`](https://github.com/deis/builder/commit/707fbea094e02c3353d39068e211c2ea127ec99e) race: waitforpod errors out only for timeout
12+
- [`f51d3a2`](https://github.com/deis/builder/commit/f51d3a2fb374f12f04c45d941362c4f5c6c5ae23) storage: configure bucket name
13+
- [`aefc6e4`](https://github.com/deis/builder/commit/aefc6e4dd1ce1a1bb95cce7d44c1cbcf5f78fe40) storage: use single storage region variable
14+
- [`096fd61`](https://github.com/deis/builder/commit/096fd611ff3232365f53089700541c812d211cc8) .travis.yml: have this job notify its sister job in Jenkins
15+
- [`56f572e`](https://github.com/deis/builder/commit/56f572e9c4f1c975af2570449b3e9d848deaf160) storage: change outside storage settings
16+
- [`a6682ca`](https://github.com/deis/builder/commit/a6682cacc44a1c64eb2ee0390b085a32d7ff7580) builder: compress go binaries
17+
- [`7de8d2d`](https://github.com/deis/builder/commit/7de8d2d660fbde09e716e3c094b456d33f0259e2) travis: add travis webhook -> e2e tests
18+
- [`8738a59`](https://github.com/deis/builder/commit/8738a5927014858f987560cc7f1e373d356d2a7c) dockerbuilder: add logic to build dockerfile builds
19+
- [`2944714`](https://github.com/deis/builder/commit/2944714899035f7fc99f16b52ba1e1da3f570c2a) builder: make the builder pod timeout configurable
20+
- [`dc0c124`](https://github.com/deis/builder/commit/dc0c12436069cd20eb57b84d11f55adbfac0bbef) manifests: sync with deis-dev charts. Assumes secrets already exist from a helm install
21+
- [`9f99caa`](https://github.com/deis/builder/commit/9f99caae709bd0bd6f448a37e107e3707c07e545) builder: remove extra git archive tar
22+
- [`66539c2`](https://github.com/deis/builder/commit/66539c23cdc403a79f5a78c07f685c91b810cc54) builder: adjust dockerbuilder and slugrunner templates
23+
- [`b88e6ed`](https://github.com/deis/builder/commit/b88e6ed3240133d4481309a65c4feafc1a01dcd4) builder: add support for custom buildpack url
24+
25+
#### Fixes
26+
27+
- [`fdb79a9`](https://github.com/deis/builder/commit/fdb79a9af8d64908d4cd3073a5d4a0b2f9ed4e7a) (all): add godocs and address other golint issues
28+
- [`b93cc16`](https://github.com/deis/builder/commit/b93cc16e4e8c2faaa911bda16a64fe71133df240) pkg: rename workflow to controller
29+
- [`46b3a67`](https://github.com/deis/builder/commit/46b3a6759d5f83765941d730ec2f57a82e98c098) pkg/k8s/namespace.go: run go fmt on the repo
30+
- [`0d49f00`](https://github.com/deis/builder/commit/0d49f006b1638431708d81f1bdf681e1e20ee679) procfile: get the procfile from the slug if not present
31+
- [`358933a`](https://github.com/deis/builder/commit/358933a9f1cccf5f45fb8f35c4906f110bc59840) pkg/gitreceive/storage/object_test.go: skip TestWaitForObjectMissing
32+
- [`e81096a`](https://github.com/deis/builder/commit/e81096ace03793653ffa0ee4d088a697f3349549) storagepoll: dont poll s3 for slugfile if app type is dockerfile
33+
- [`4875b97`](https://github.com/deis/builder/commit/4875b97646da3c1f961a18c790752073175d3b38) pkg/gitreceive: replace the AWS SDK with minio-go
34+
- [`a22473d`](https://github.com/deis/builder/commit/a22473d9140585dfd87b3dc6b42b760f6daada98) (all): creating and using interfaces for system tasks
35+
- [`9fa4d02`](https://github.com/deis/builder/commit/9fa4d021e0b42cf8aa234c635d3a552a76d32d6c) pkg/sshd/server_test.go: write test for gitPktLine (WIP
36+
- [`d0e0952`](https://github.com/deis/builder/commit/d0e09520b9735f6fdcb754cd5cfbc4ba10b2c7a8) pkg/gitreceive/build.go: change err message to indicate code for failed build pods
37+
- [`c377f9f`](https://github.com/deis/builder/commit/c377f9f10098e90b91e3cece691454e0a061c64e) config.go: increase builder pod wait duration
38+
- [`60e5c9f`](https://github.com/deis/builder/commit/60e5c9f5903cd0ea155bfae5e067916a565c7e21) pkg/sshd: demote handshake failure log to debug
39+
- [`071d4a2`](https://github.com/deis/builder/commit/071d4a202a2fc6abfb59078ab327e07a8700f519) timeout: reset pod tick timeout duration to 0.1s
40+
- [`fb744ce`](https://github.com/deis/builder/commit/fb744ceb6b069aaaacd6ac342b0f174673f707c0) boot.go,pkg/(all): implement a deleted app cleaner
41+
- [`210afa4`](https://github.com/deis/builder/commit/210afa455cfc269f29d578298f558e91d6e7caf4) gitreceive/storage/bucket.go: silence bucket creation errors
42+
- [`3d5feb3`](https://github.com/deis/builder/commit/3d5feb38c6cecd1550bee7fb16f00eddc41e7741) (all): add readiness & liveness probes
43+
- [`953145b`](https://github.com/deis/builder/commit/953145b7c941e51934b0152e3e6f9a568586b0a1) .travis.yml: run the docker-build target on all branches
44+
- [`a3ebb95`](https://github.com/deis/builder/commit/a3ebb95456fa173d3772ecaa81c080964598e4b9) builder: if exit code from build pod is not 0 it must return an error
45+
- [`8fd6f2d`](https://github.com/deis/builder/commit/8fd6f2df24de4eefccddbaac12ff6aa3da16a89b) pkg/gitreceive/build.go: send the entire slug URL to the controller
46+
- [`8b1de86`](https://github.com/deis/builder/commit/8b1de86c7ace3e822c254d7920429b706258bbef) builder: change dockerfile builder image
47+
- [`bc5e070`](https://github.com/deis/builder/commit/bc5e070b4dd2be1eb0899aeadf890f342508f6d6) Makefile,build.go,build_type.go,build_type_test.go: choose slug builds by default, unless a Dockerfile is present
48+
- [`45dff0c`](https://github.com/deis/builder/commit/45dff0cb9e374bf15548c135178984df67a56823) glide.yaml: clean up dependency list
49+
- [`55de9ee`](https://github.com/deis/builder/commit/55de9ee0db74d672b6e6b3f0398654f613d0d094) glide.lock,glide.yaml: remove transitive dependencies of github.com/deis/deis from glide lockfile
50+
- [`6fe022b`](https://github.com/deis/builder/commit/6fe022b0b6313bdd823f5b7fdf30c7e658002e38) (all): remove dependency on github.com/deis/deis
51+
- [`439d2e9`](https://github.com/deis/builder/commit/439d2e9033877e380b70ad53eaf0bdd8da26a104) build.go: add informational message for cold builds
52+
- [`9165b21`](https://github.com/deis/builder/commit/9165b21caf842c6b8c7a725e41be7e4b5cdab344) Dockerfile: merging 2 apk commands
53+
- [`49c303f`](https://github.com/deis/builder/commit/49c303f24f46dfbda25ec95228620a7408f9cf92) Makefile: set GO15VENDOREXPERIMENT in the build container
54+
- [`5faceaa`](https://github.com/deis/builder/commit/5faceaa02ec1f0c65689c0c8dec43ba9be696e3e) Makefile,glide.lock: upgrade to glide 0.8 & add lockfile
55+
- [`4c1843a`](https://github.com/deis/builder/commit/4c1843a111a7621290940ee8f7236cea11586753) Dockerfile,deis-builder-rc.yaml: add DOCKERIMAGE env var
56+
57+
#### Documentation
58+
59+
- [`e96b33f`](https://github.com/deis/builder/commit/e96b33f42cc3dc874d7df30f625cdca89b9fdc65) README.md: update docs to match beta status
60+
61+
#### Maintenance
62+
63+
- [`7e45e25`](https://github.com/deis/builder/commit/7e45e25cad219816d045d8553acb171bc781fbb1) Makefile: upgrade the go-dev image to 0.9.1
64+
- [`4212eb6`](https://github.com/deis/builder/commit/4212eb6a8959185346b192f0cc11de0443ec061a) manifests: remove repository manifests (Proposal
65+
- [`602cff8`](https://github.com/deis/builder/commit/602cff845aa75fcb0d6857e266df78ede2eb48f3) Makefile: upgrade the go-dev image to 0.8.0
66+
- [`7b3630e`](https://github.com/deis/builder/commit/7b3630e926fb73f473a891bd0a3b2a49a90fb491) Dockerfile: remove top level dockerfile
67+
- [`c5601b3`](https://github.com/deis/builder/commit/c5601b398ccc2e080e733eeb5f4a07eaf4d3070b) release: bump version to v2-beta
68+
69+
### 2.0.0-alpha
70+
71+
#### Features
72+
73+
- [`7858bb7`](https://github.com/deis/builder/commit/7858bb798bb47f5e5dfc78578204d9793b9650b9) builder: add support for external object storage
74+
- [`caf5524`](https://github.com/deis/builder/commit/caf55242ed952c964b7abf16578495b979c07e8f) (all): add support for uploading tarballs to minio
75+
- [`e7f1b54`](https://github.com/deis/builder/commit/e7f1b544d017bdb13c2adba998c24b46527ac4cd) deploy.sh: push deisci/builder:v2-alpha images from master
76+
77+
#### Fixes
78+
79+
- [`20ad31b`](https://github.com/deis/builder/commit/20ad31ba8b058aebcbed3efc03b43d71a7cde9e8) builder: add status messages
80+
- [`daac4b8`](https://github.com/deis/builder/commit/daac4b822a94554799c8503e5e7662592492b7f0) builder: print buildpack output, decrease verbosity
81+
- [`572a709`](https://github.com/deis/builder/commit/572a70947d46adb94a019e719291fff1f8c62a66) deis-builder-rc.yaml: fix indentation on deis-builder RC
82+
- [`696322a`](https://github.com/deis/builder/commit/696322ad799101b09c77e970ce6c20ca8d30a206) builder: ping remote storage to determine when builds are done
83+
- [`e0547b7`](https://github.com/deis/builder/commit/e0547b7d7deebdfd16e784475051075026c098d9) deis-builder-rc.yaml,builder: create builder pods in correct namespace
84+
- [`b86f97f`](https://github.com/deis/builder/commit/b86f97fa5e3640f69ce846b2dd02df56ae248e7b) deis-slugbuilder.yaml: use repo_name instead of deis-slugbuilder
85+
- [`76e6b64`](https://github.com/deis/builder/commit/76e6b6495a0872888536ed93ab447a92b9b1f44d) (all): use alpine linux compatible mc binary
86+
- [`cb278c1`](https://github.com/deis/builder/commit/cb278c1973c3f988471860940601545f9db6ade1) builder: use DEIS_OUTSIDE_STORAGE_PORT properly
87+
- [`af2ab12`](https://github.com/deis/builder/commit/af2ab129c608e999b7257a338a0474b0620bc975) (all): fix travis build
88+
- [`5f192e1`](https://github.com/deis/builder/commit/5f192e12a7f36dfeb4cf8c18bef51e0f0c7af594) builder: use workflow v2 hook urls
89+
- [`33e16e5`](https://github.com/deis/builder/commit/33e16e54683a20e4608d9a139f014aa4c8b5452e) deis-builder-rc.yaml: add imagePullPolicy: Always to rc manifest
90+
- [`7afa12e`](https://github.com/deis/builder/commit/7afa12e216239832cde3af33b00571260ccb4f18) Makefile: change VERSION, add and fix targets
91+
- [`ef436e9`](https://github.com/deis/builder/commit/ef436e93b67f4021cd93981ba98784e367167c03) manifests: mount and use auth secrets correctly and use proper image names
92+
- [`b183450`](https://github.com/deis/builder/commit/b18345073f1445c1e338924f7ba835fb0cd20bc7) builder: add check to locate Procfile
93+
94+
#### Maintenance
95+
96+
- [`8ab7b43`](https://github.com/deis/builder/commit/8ab7b43b5020c3d489534ce045114e4e114011e7) release: set version and lock to deis registry
97+
- [`c0d7342`](https://github.com/deis/builder/commit/c0d734208c8b1da5de5d91d16e72cbf40ba4c99f) Dockerfile: update version
98+
- [`0951acd`](https://github.com/deis/builder/commit/0951acdd5d275ce2f4a8dbe07af99704f4bfab9b) kubectl: replacing with an alpine-compatible kubectl
99+
- [`c82f74d`](https://github.com/deis/builder/commit/c82f74d943f760a1f808b7f395c4fbca94a3d097) (all): vendoring all dependencies

_scripts/generate-changelog.sh

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#!/usr/bin/env bash
2+
# vim: et tw=0 sw=4 ts=4
3+
4+
REPOROOT=${REPOROOT:=https://github.com/deis/builder}
5+
TYPES=${TYPES:=feat(;Features fix(;Fixes docs(;Documentation chore(;Maintenance}
6+
7+
usage() {
8+
echo "Usage: $0 <from> [to]
9+
10+
The REPOROOT and TYPES variables may be used to customize what links are
11+
generated and what is scraped from the commit logs. Current settings are:
12+
13+
REPOROOT=$REPOROOT
14+
TYPES=$TYPES
15+
"
16+
}
17+
18+
# Print the information scraped from git
19+
retrieve() {
20+
while read -r commit hash message; do
21+
# Extract the subsystem where type(subsystem): message
22+
SUBSYSTEM=$(echo "$message" | cut -d'(' -f2 | cut -d')' -f1 | sed 's/\*/\(all\)/g')
23+
# Extract the message where type(subsystem): message
24+
MESSAGE=$(echo "$message" | awk -F ")" '{ print $2}' | sed 's/://' | cut -f2- -d' ')
25+
# Generate a link to the full legal commit on GitHub
26+
LINK="$REPOROOT/commit/$hash"
27+
# Echo all this in a way that makes the commit hash and message a link
28+
# to the commit in markdown
29+
echo ' -' "[\`$commit\`]($LINK)" "$SUBSYSTEM": "$MESSAGE"
30+
done < <(git --no-pager log --oneline --merges --oneline --format="%h %H %b" --grep="$1" "$FROM".."$TO")
31+
# Scrape the information from git
32+
}
33+
34+
# Wrap feature type and show its relevant commits
35+
subheading() {
36+
echo "#### $1"
37+
echo
38+
retrieve "$2"
39+
echo
40+
}
41+
42+
main() {
43+
# Print usage summary if user didn't specify a beginning
44+
if [ -z "$1" ]; then
45+
usage
46+
exit 1
47+
fi
48+
49+
FROM=$1
50+
TO=${2:-"HEAD"}
51+
52+
printf "### %s -> %s\n\n" "$FROM" "$TO"
53+
54+
# Iterate over the types of messages specified
55+
for LEGALTYPE in $TYPES; do
56+
SHORT=$(echo "$LEGALTYPE" | cut -f1 -d';')
57+
LONG=$(echo "$LEGALTYPE" | cut -f2 -d';')
58+
subheading "$LONG" "$SHORT"
59+
done
60+
}
61+
62+
if [ $SHLVL -eq 2 ]; then
63+
# If this is being run as a command
64+
main "$*"
65+
else
66+
# Otherwise this is being sourced
67+
unset -f main
68+
unset -f usage
69+
fi

0 commit comments

Comments
 (0)