diff --git a/cve-agency-manager/cve_tracking/src/cve/apply.py b/cve-agency-manager/cve_tracking/src/cve/apply.py index 01b7dcd6b34e214ce824fa177efdb5ed4302e4f5..d5f99f86066a54a6a6c426d1002ec3a1fa332bba 100644 --- a/cve-agency-manager/cve_tracking/src/cve/apply.py +++ b/cve-agency-manager/cve_tracking/src/cve/apply.py @@ -133,22 +133,22 @@ class AutoComment: def comment(self, number, body, repo, owner="src-openeuler"): """Comments on PR""" - comments = self._gitee.get_issue_comments(repo=repo, number=number, owner=owner) - if comments: - if all([header in str(comments) for header in self._header]): - print('[WARNING] There are already relevant comments') - logger.info( - "Issue %s in repository %s already has a fixed comment content ." - % (number, repo) - ) - return - if "Find-Patch" in str(comments) and NO_FOUND in body: - print('[WARNING] There are already no_found comments') - logger.info( - "Issue %s in repository %s already has a no_found comment content ." - % (number, repo) - ) - return + # comments = self._gitee.get_issue_comments(repo=repo, number=number, owner=owner) + # if comments: + # if all([header in str(comments) for header in self._header]): + # print('[WARNING] There are already relevant comments') + # logger.info( + # "Issue %s in repository %s already has a fixed comment content ." + # % (number, repo) + # ) + # return + # if "Find-Patch" in str(comments) and NO_FOUND in body: + # print('[WARNING] There are already no_found comments') + # logger.info( + # "Issue %s in repository %s already has a no_found comment content ." + # % (number, repo) + # ) + # return if NO_FOUND in body: comment_body = body.get(NO_FOUND) else: