Add skip_ci_on_push configuration option for changelog updates

This commit is contained in:
mrT23
2025-04-15 19:28:36 +03:00
parent b1bc77c809
commit 3d2a285091
3 changed files with 10 additions and 4 deletions

View File

@ -182,6 +182,7 @@ class_name = "" # in case there are several methods with the same name in
push_changelog_changes=false
extra_instructions = ""
add_pr_link=true
skip_ci_on_push=true
[pr_analyze] # /analyze #
enable_help_text=true

View File

@ -140,11 +140,15 @@ class PRUpdateChangelog:
return new_file_content, answer
def _push_changelog_update(self, new_file_content, answer):
if get_settings().pr_update_changelog.get("skip_ci_on_push", True):
commit_message = "[skip ci] Update CHANGELOG.md"
else:
commit_message = "Update CHANGELOG.md"
self.git_provider.create_or_update_pr_file(
file_path="CHANGELOG.md",
branch=self.git_provider.get_pr_branch(),
contents=new_file_content,
message="[skip ci] Update CHANGELOG.md",
message=commit_message,
)
sleep(5) # wait for the file to be updated