diff --git a/pr_agent/git_providers/git_provider.py b/pr_agent/git_providers/git_provider.py index 1e18d86e5..4a41e252c 100644 --- a/pr_agent/git_providers/git_provider.py +++ b/pr_agent/git_providers/git_provider.py @@ -107,7 +107,7 @@ def get_pr_description(self, *, full: bool = True) -> str: def get_user_description(self) -> str: description = (self.get_pr_description_full() or "").strip() # if the existing description wasn't generated by the pr-agent, just return it as-is - if not description.startswith("## PR Type"): + if not any(description.startswith(header) for header in ("## PR Type", "## PR Description")): return description # if the existing description was generated by the pr-agent, but it doesn't contain the user description, # return nothing (empty string) because it means there is no user description