mirror of
https://github.com/superhelio/tools.git
synced 2026-01-30 14:46:35 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a62b76f1bd | ||
|
|
d9f2bc146b | ||
|
|
79a048ce20 | ||
|
|
a1120207ee | ||
|
|
5193045add | ||
|
|
ea7562a48d | ||
|
|
488a739643 | ||
|
|
2f85fb63a3 | ||
|
|
58abebab4f | ||
|
|
7b11e1d3ef |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
## 0.1.2 (2016-08-10)
|
||||||
|
- Explicitly push tags
|
||||||
|
- Better wording to push question
|
||||||
|
- Fix changelog url
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/superhelio/tools/compare/0.1.1...0.1.2)
|
||||||
|
|
||||||
|
|
||||||
|
## 0.1.1 (2016-08-10)
|
||||||
|
- Echo into the temp file, not to the screen
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/superhelio/tools/compare/0.1.0...0.1.1)
|
||||||
|
|
||||||
|
|
||||||
## 0.1.0 (2016-08-10)
|
## 0.1.0 (2016-08-10)
|
||||||
- Remove paging from git log, works better for automation
|
- Remove paging from git log, works better for automation
|
||||||
- Change changelog formatting to simple message
|
- Change changelog formatting to simple message
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ LATEST_HASH=$(git log --pretty=format:'%h' -n 1)
|
|||||||
|
|
||||||
# Guess our remote url from remote.origin.url (minus .git from the end),
|
# Guess our remote url from remote.origin.url (minus .git from the end),
|
||||||
# change to your github project url. used to create Full changelog link
|
# change to your github project url. used to create Full changelog link
|
||||||
PROJECT_URL=$(git config --get remote.origin.url | sed 's/^\.git*//')
|
PROJECT_URL=$(git config --get remote.origin.url | sed 's/\.git//')
|
||||||
|
|
||||||
# current Git branch
|
# current Git branch
|
||||||
BRANCH_CURRENT=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
|
BRANCH_CURRENT=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
|
||||||
@@ -118,7 +118,7 @@ echo "$NEW_VERSION" > "$FILE_VERSION"
|
|||||||
echo "## $NEW_VERSION ($NOW)" > tmpfile
|
echo "## $NEW_VERSION ($NOW)" > tmpfile
|
||||||
git --no-pager log --pretty=format:" - %s" --date=short --no-merges "$BASE_STRING"...HEAD >> tmpfile
|
git --no-pager log --pretty=format:" - %s" --date=short --no-merges "$BASE_STRING"...HEAD >> tmpfile
|
||||||
echo "" >> tmpfile
|
echo "" >> tmpfile
|
||||||
echo "[Full changelog]($PROJECT_URL/compare/$BASE_STRING...$NEW_VERSION)"
|
echo "[Full changelog]($PROJECT_URL/compare/$BASE_STRING...$NEW_VERSION)" >> tmpfile
|
||||||
echo "" >> tmpfile
|
echo "" >> tmpfile
|
||||||
echo "" >> tmpfile
|
echo "" >> tmpfile
|
||||||
cat "$FILE_CHANGELOG" >> tmpfile
|
cat "$FILE_CHANGELOG" >> tmpfile
|
||||||
@@ -148,11 +148,12 @@ git merge --no-ff "$BRANCH_RELEASE"
|
|||||||
# Remove release branch
|
# Remove release branch
|
||||||
git branch -d "$BRANCH_RELEASE"
|
git branch -d "$BRANCH_RELEASE"
|
||||||
|
|
||||||
echo -ne "${QUESTION_FLAG} ${CYAN}Push?"
|
echo -ne "${QUESTION_FLAG} ${CYAN}Push everything to origin?"
|
||||||
|
|
||||||
read -r PUSH
|
read -r PUSH
|
||||||
if [[ $PUSH =~ [yY](es)* ]] || [ "$PUSH" = "" ]; then
|
if [[ $PUSH =~ [yY](es)* ]] || [ "$PUSH" = "" ]; then
|
||||||
git push --all origin
|
git push --all origin
|
||||||
|
git push --tags origin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${NOTICE_FLAG} Done!"
|
echo -e "${NOTICE_FLAG} Done!"
|
||||||
|
|||||||
Reference in New Issue
Block a user