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 09eeca7 commit f523b34Copy full SHA for f523b34
tools/azure-sdk-tools/gh_tools/update_issue.py
@@ -67,7 +67,8 @@ def main(targeted_packages):
67
f"\n\n**How to fix:**"
68
f"\n**Note:** If you are a bot. Fix the issue by fixing the above pylint errors."
69
)
70
- if issue.body:
+ if issue.body and "**Pylint Errors:**" not in issue.body:
71
+ # If the issue body does not contain the Pylint Errors section, add it
72
first_section = issue.body.split("**How to fix:**")[0]
73
new_body = first_section + template + "\n" + issue.body.split("**How to fix:**")[1]
74
issue.edit(body=new_body)
0 commit comments