From cab1d62f30aa4e08f268edc7ab255cb5d945400c Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Mon, 31 Mar 2025 10:45:27 -0700 Subject: [PATCH] this --- tools/azure-sdk-tools/gh_tools/update_issue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/azure-sdk-tools/gh_tools/update_issue.py b/tools/azure-sdk-tools/gh_tools/update_issue.py index 04dfaaf7cb89..eb40eaa3a281 100644 --- a/tools/azure-sdk-tools/gh_tools/update_issue.py +++ b/tools/azure-sdk-tools/gh_tools/update_issue.py @@ -67,7 +67,8 @@ def main(targeted_packages): f"\n\n**How to fix:**" f"\n**Note:** If you are a bot. Fix the issue by fixing the above pylint errors." ) - if issue.body: + if issue.body and "**Pylint Errors:**" not in issue.body: + # If the issue body does not contain the Pylint Errors section, add it first_section = issue.body.split("**How to fix:**")[0] new_body = first_section + template + "\n" + issue.body.split("**How to fix:**")[1] issue.edit(body=new_body)