From 66317f37fd7f76cd90a2ff87623e788a1ca5a7b7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 13 Jan 2021 11:03:42 +0100 Subject: [PATCH] zodbot-announce-commits: announce commits on the main branch, not master anymore Signed-off-by: Pierre-Yves Chibon --- roles/batcave/files/zodbot-announce-commits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/batcave/files/zodbot-announce-commits.py b/roles/batcave/files/zodbot-announce-commits.py index 3b988f864f..e869252e14 100644 --- a/roles/batcave/files/zodbot-announce-commits.py +++ b/roles/batcave/files/zodbot-announce-commits.py @@ -116,7 +116,7 @@ def parse_commit(commit): # Get a list of commits to report. -if branch == 'master': +if branch == 'main': revs = run_command(f"git rev-list ^{old} {new}")["stdout"].split("\n") revs = [r for r in revs if r] revs.reverse()