We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da783fc commit 8760922Copy full SHA for 8760922
llvm/utils/git/code-lint-helper.py
@@ -104,18 +104,8 @@ def create_comment_text(
104
105
# TODO: Refactor this
106
def find_comment(self, pr: Any) -> Any:
107
- all_linter_names = list(map(attrgetter("name"), ALL_LINTERS))
108
- other_linter_names = [name for name in all_linter_names if name != self.name]
109
-
110
- other_tags = [
111
- self.COMMENT_TAG.format(linter=name) for name in other_linter_names
112
- ]
113
114
for comment in pr.as_issue().get_comments():
115
- body = comment.body
116
- if self.comment_tag in body and not any(
117
- other_tag in body for other_tag in other_tags
118
- ):
+ if comment.body.startswith(self.comment_tag):
119
return comment
120
return None
121
0 commit comments