Skip to content

Commit f523b34

Browse files
authored
this (#40295)
1 parent 09eeca7 commit f523b34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/azure-sdk-tools/gh_tools/update_issue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def main(targeted_packages):
6767
f"\n\n**How to fix:**"
6868
f"\n**Note:** If you are a bot. Fix the issue by fixing the above pylint errors."
6969
)
70-
if issue.body:
70+
if issue.body and "**Pylint Errors:**" not in issue.body:
71+
# If the issue body does not contain the Pylint Errors section, add it
7172
first_section = issue.body.split("**How to fix:**")[0]
7273
new_body = first_section + template + "\n" + issue.body.split("**How to fix:**")[1]
7374
issue.edit(body=new_body)

0 commit comments

Comments
 (0)