Commit 41ddbab
committed
feat(changelog script): Have script produce markdown, add settings
This completely revamps the changelog script. It now generates links to
the relevant commits in the format of:
- [`sha-1 hash`](link on github) subsystem: commit message
Additionally, the types of commits shown in the changelog and the root
repository for the link may be set at runtime. Example:
$ TYPES='feat(;Features' ./generate-changelog.sh v0.9.0
$ REPOROOT="http://github.com/Xe/deis" ./generate-changelog.sh v0.9.0
This is purely cosmetic and to enable this script to be reused more
easily. The script is now documented and sourceable as a library for
further reuse.
REBASE EDIT: Link generation is deduplicated (commit was rebased) so that
the commit message is no longer a link to the commit, only the commit hash
is. This also no longer uses a temporary file and uses bash command
output redirection as a backwards pip to directly pull the changes from
git into a while loop. Thanks again @bacongobbler for the guidance on this
latest rebase.
Technique found here: http://linuxshellaccount.blogspot.com/2008/08/using-bash-to-feed-command-output-to.html1 parent 68f8a4a commit 41ddbab
1 file changed
Lines changed: 69 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
| 14 | + | |
7 | 15 | | |
8 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
9 | 29 | | |
10 | 30 | | |
| 31 | + | |
11 | 32 | | |
12 | | - | |
| 33 | + | |
| 34 | + | |
13 | 35 | | |
14 | 36 | | |
15 | 37 | | |
16 | 38 | | |
17 | | - | |
18 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
19 | 45 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
25 | 60 | | |
26 | | - | |
| 61 | + | |
| 62 | + | |
27 | 63 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments