From 7d00f97909715b360c19bf765cf68fedcf263fae Mon Sep 17 00:00:00 2001 From: licihua Date: Tue, 29 Nov 2022 10:54:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8E=A8=E8=8D=90=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=BD=8E=E4=BA=8E=E7=9B=AE=E5=89=8D=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- advisors/oa_upgradable.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/advisors/oa_upgradable.py b/advisors/oa_upgradable.py index ca4ceb68..cf2fed55 100755 --- a/advisors/oa_upgradable.py +++ b/advisors/oa_upgradable.py @@ -159,7 +159,8 @@ def main_process(push, default, repo): print("Maintain version is", ver_rec.maintain_version) need_push_issue = True - if cur_version != ver_rec.latest_version: + version_type = version_recommend.VersionType() + if version_type.compare(ver_rec.latest_version, cur_version) == 1: if push: issues = user_gitee.get_issues(repo) for issue in issues: @@ -192,7 +193,9 @@ Issues and feedbacks are welcome.""".format(repo=repo, cur_ver=cur_version) user_gitee.post_issue(repo, tile, body) - return [repo, cur_version, ver_rec.latest_version] + return [repo, cur_version, ver_rec.latest_version] + else: + return None if __name__ == "__main__": -- Gitee