1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

provide automatic changelog since last tag for linux

This commit is contained in:
Esteban MIno 2018-11-07 23:02:12 -03:00 committed by Dan Finlay
parent 592e6bddfb
commit 6dce32fc1e
3 changed files with 18 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# Changelog
## Current Develop Branch
- [#5694](https://github.com/MetaMask/metamask-extension/pull/5694): Version 5.0.1
- [#5547](https://github.com/MetaMask/metamask-extension/pull/5547): Bundle some ui dependencies separately to limit the build size of ui.js
- Resubmit approved transactions on new block, to fix bug where an error can stick transactions in this state.

14
auto-changelog.sh Executable file
View File

@ -0,0 +1,14 @@
#! /bin/bash
git fetch --tags
URL="https://github.com/MetaMask/metamask-extension/pull/"
LOG=$(git log $(git describe --tags $(git rev-list --tags --max-count=1))..HEAD --pretty="%s::%b" --reverse --grep="Merge pull request #" --grep="(#");
while read -r line; do
SUBJECT="$(echo $line | sed -E 's/(.*):{2}(.*)/\1/')"
PR=$(echo $line | grep -Po '#\d+' | sed "s/#//")
if [ -z "$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')" ]; then
MESSAGE=$(echo $SUBJECT | sed "s/(#$PR)//g"); else
MESSAGE=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')
fi
sed -i "/## Current Develop Branch/a - [#$PR]($URL$PR): $MESSAGE" CHANGELOG.md;
done <<< "$LOG"
echo "CHANGELOG updated"

View File

@ -49,7 +49,8 @@
"disc": "gulp disc --debug",
"announce": "node development/announcer.js",
"version:bump": "node development/run-version-bump.js",
"storybook": "start-storybook -p 6006 -c .storybook"
"storybook": "start-storybook -p 6006 -c .storybook",
"update-changelog": "./auto-changelog.sh"
},
"browserify": {
"transform": [