mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00
Add skip_ci_on_push configuration option for changelog updates
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user