提交 dcf974b0 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!580 tools: add generate release notes

Merge pull request !580 from lifeng_isula/master
2020-07-17 lifeng release 2.0.4
- tools: add generate release notes
- !572 lxc: update lxc to 4.0.3 Merge pull request !572 from lifeng_isula/master
- !530 修复websocket限流可能引起卡死 Merge pull request !530 from JingWoo/master
- !550 build: add checkout LTS tag for third party software Merge pull request !550 from lifeng_isula/master
- !523 init struct before use it Merge pull request !523 from haozi007/work
- !519 fix create mtab bug to use lstat Merge pull request !519 from gaohuatao/ci_master
- !517 events: fix wrong format of exec command Merge pull request !517 from lifeng_isula/master
- !518 add -d/--disk param for CI Merge pull request !518 from gaohuatao/ci_master
- !494 CI: add testcases use host rootfs / Merge pull request !494 from lifeng_isula/master
- !492 Fix label-file reading bug Merge pull request !492 from JingWoo/master
- !485 fix bug of creating symlink for /etc/mtab when /etc symlink exists Merge pull request !485 from gaohuatao/master_mtab
- !489 Add Pull Request Template And Issue Template Merge pull request !489 from JingWoo/master
- !487 iSulad: resolve coredump of isula inspect "" Merge pull request !487 from Jackey_1024/ma_0623
- !467 isulad-shim: fix probabilistic bad fd Merge pull request !467 from zklei/epoll_ctl
- !465 Release v2.0.3 Merge pull request !465 from lifeng_isula/master
- !464 iSulad: change llt to ut Merge pull request !464 from Jackey_1024/0616
dev stats:
- 23 files changed, 221 insertions(+), 123 deletions(-)
- contributors: lifeng68, gaohuatao, wujing, haozi007, jikui, leizhongkai
......@@ -15,6 +15,28 @@
#!/bin/bash
# usage
# ./update-version.bash
function update_release_notes()
{
LAST_RELEASE=$(git describe --tags --abbrev=0)
# Prepare proposed delease notes
rm -f release_notes.tmp
echo "$(date "+%Y-%m-%d") $USER release $1" >> release_notes.tmp
git log --first-parent --oneline $LAST_RELEASE.. | cut -d' ' -f 2- | sed 's/^/ - /' >> release_notes.tmp
echo >> release_notes.tmp
echo " dev stats:" >> release_notes.tmp
echo " -$(git diff --shortstat $LAST_RELEASE)" >> release_notes.tmp
echo -n " - contributors: " >> release_notes.tmp
git shortlog -ns --no-merges $LAST_RELEASE..HEAD | cut -d$'\t' -f 2 | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/, /g' >> release_notes.tmp
echo "#" >> release_notes.tmp
echo "#" >> release_notes.tmp
echo "#" >> release_notes.tmp
echo >> release_notes.tmp
cat release_notes >> release_notes.tmp
grep -v '^#' release_notes.tmp | sed '/./,$!d' > release_notes
rm -rf release_notes.tmp
}
topDir=$(git rev-parse --show-toplevel)
specfile="${topDir}/iSulad.spec"
Cmakefile="${topDir}/CMakeLists.txt"
......@@ -42,6 +64,10 @@ fi
new_version=${first_old_version}.${second_old_version}.${third_old_version}
if [[ ${choice} -ne "d" ]]; then
update_release_notes "$new_version"
fi
echo "The version number has been modified: ${old_version} => ${new_version}"
old_release=$(cat ${specfile} | grep "%global" | grep "_release" | awk {'print $3'})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册