Merge pull request #1962 from OniriCorpe/fix-autoupdate-title
[autoupdate] fix PR title when latest_github_release
This commit is contained in:
commit
b0c3ee536c
1 changed files with 4 additions and 3 deletions
|
@ -230,13 +230,14 @@ class AppAutoUpdater:
|
||||||
|
|
||||||
if "main" in todos:
|
if "main" in todos:
|
||||||
if strategy == "latest_github_release":
|
if strategy == "latest_github_release":
|
||||||
|
title = f"Upgrade to v{new_version}"
|
||||||
message = f"Upgrade to v{new_version}\nChangelog: {changelog_url}"
|
message = f"Upgrade to v{new_version}\nChangelog: {changelog_url}"
|
||||||
else:
|
else:
|
||||||
message = f"Upgrade to v{new_version}"
|
title = message = f"Upgrade to v{new_version}"
|
||||||
new_version = todos["main"]["new_version"]
|
new_version = todos["main"]["new_version"]
|
||||||
new_branch = f"ci-auto-update-{new_version}"
|
new_branch = f"ci-auto-update-{new_version}"
|
||||||
else:
|
else:
|
||||||
message = "Upgrade sources"
|
title = message = "Upgrade sources"
|
||||||
new_branch = "ci-auto-update-sources"
|
new_branch = "ci-auto-update-sources"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -271,7 +272,7 @@ class AppAutoUpdater:
|
||||||
|
|
||||||
# Open the PR
|
# Open the PR
|
||||||
pr = self.repo.create_pull(
|
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))
|
print("Created PR " + self.repo.full_name + " updated with PR #" + str(pr.id))
|
||||||
|
|
Loading…
Reference in a new issue