diff --git a/pr_agent/tools/pr_update_changelog.py b/pr_agent/tools/pr_update_changelog.py index 901c5b45..1b06c381 100644 --- a/pr_agent/tools/pr_update_changelog.py +++ b/pr_agent/tools/pr_update_changelog.py @@ -93,8 +93,8 @@ class PRUpdateChangelog: else: new_file_content = answer - if not self.cli_mode and self.commit_changelog: - answer += "\n\n\n>to commit the new contnet to the CHANGELOG.md file, please type:" \ + if not self.commit_changelog: + answer += "\n\n\n>to commit the new content to the CHANGELOG.md file, please type:" \ "\n>'/update_changelog -commit'\n" if settings.config.verbosity_level >= 2: