Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
iSulad
提交
dcf974b0
I
iSulad
项目概览
openeuler
/
iSulad
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
iSulad
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dcf974b0
编写于
7月 17, 2020
作者:
O
openeuler-ci-bot
提交者:
Gitee
7月 17, 2020
浏览文件
操作
浏览文件
下载
差异文件
!580 tools: add generate release notes
Merge pull request !580 from lifeng_isula/master
上级
0f86485a
93b0e3e2
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
48 addition
and
0 deletion
+48
-0
release_notes
release_notes
+22
-0
update-version.bash
update-version.bash
+26
-0
未找到文件。
release_notes
0 → 100644
浏览文件 @
dcf974b0
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
update-version.bash
浏览文件 @
dcf974b0
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录