Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

backport-all-prs: Derive backport branch from unmerged tags.

Alex Vandiver28dac31d58ef
diff --git a/tools/backport-all-prs b/tools/backport-all-prs
index f45b37149ea..8418a8dea70 100755
--- a/tools/backport-all-prs
+++ b/tools/backport-all-prs
@@ -87,7 +87,7 @@ def main(
console = Console(stderr=True, log_path=False)
latest_tag = subprocess.check_output(
- ["git", "tag", "-l", "--sort=-committerdate"],
+ ["git", "tag", "-l", "--sort=-committerdate", "--no-merged", "upstream/main"],
text=True,
).splitlines()[0]
target_branch = latest_tag.split(".")[0] + ".x"