提交 7f26c1ba 编写于 作者: J JiangYD

update for commit f87e3474e6f45ed78745fe9f10ad50c4965abfe2

上级 f9de8ef3
......@@ -19,7 +19,7 @@
| | |
| ----- | ----- |
| 说明 | 获得当前SDK版本号 |
| 版本支持 | 最低2.0.0 |
| 版本支持 | 最低2.0.0 |
<br/>
* public static void initServerAndPort(String server, int port)
......
......@@ -20,12 +20,32 @@ process.stdin.on('readable', function() {
if(!commits) throw new Error('can not find and commit from ' + commitTexts)
for(var i = 0; i < commits.length; i++) {
if (commits[i].hash == newRev) {
console.log('find commit ' + commits[i].str())
return;
process.stdout.write('find commit ' + commits[i].str() + '\n');
if (commits[i].api) {
ghrepo.commits({path: commits[i].sdk + '/api.md'}, function (githubCommits) {
console.log('githubcommits:' + githubCommits);
if (!githubCommits) {
process.stdout.write('can not get commits of ' + sdk + '/api.md\n');
process.exit(3);
}
githubCommits.forEach(function (gc) {
if (('update for commit ' + newRev) == gc.commit.message) {
process.stdout.write('find api update' + gc.sha + ' for ' + newRev + '\n');
process.exit(0);
}
});
process.exit(8);
});
process.stdout.write(newRev + ' need a api update\n');
process.stdout.write('please update document before push--https://github.com/unisound-edu-dev/OralEvalSDKDocPrj/blob/master/' + commits[i].sdk + 'api.md\n');
process.exit(2);
}
process.exit(0);
}
}
process.stdout.write('can not find commit ' + newRev);
process.stdout.write('\nplease update document before push--https://github.com/unisound-edu-dev/OralEvalSDKDocPrj/blob/master/internal/commits');
process.exit(1);
});
}
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册