fix title
This commit is contained in:
parent
9fc10bbf69
commit
eafc9606e4
1 changed files with 7 additions and 3 deletions
|
@ -230,15 +230,19 @@ class AppAutoUpdater:
|
|||
|
||||
if "main" in todos:
|
||||
if strategy == "latest_github_release":
|
||||
title = f"Upgrade to v{new_version}"
|
||||
message = f"Upgrade to v{new_version}\nChangelog: {changelog_url}"
|
||||
else:
|
||||
message = f"Upgrade to v{new_version}"
|
||||
title = message = f"Upgrade to v{new_version}"
|
||||
new_version = todos["main"]["new_version"]
|
||||
new_branch = f"ci-auto-update-{new_version}"
|
||||
else:
|
||||
message = "Upgrade sources"
|
||||
title = message = "Upgrade sources"
|
||||
new_branch = "ci-auto-update-sources"
|
||||
|
||||
print(f"Title: {title}")
|
||||
print(f"Message: {message}")
|
||||
|
||||
try:
|
||||
# Get the commit base for the new branch, and create it
|
||||
commit_sha = self.repo.get_branch(self.base_branch).commit.sha
|
||||
|
@ -271,7 +275,7 @@ class AppAutoUpdater:
|
|||
|
||||
# Open the PR
|
||||
pr = self.repo.create_pull(
|
||||
title=message, body=message, head=new_branch, base=self.base_branch
|
||||
title=title, body=message, head=new_branch, base=self.base_branch
|
||||
)
|
||||
|
||||
print("Created PR " + self.repo.full_name + " updated with PR #" + str(pr.id))
|
||||
|
|
Loading…
Reference in a new issue