From 66317f37fd7f76cd90a2ff87623e788a1ca5a7b7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 13 2021 10:03:42 +0000 Subject: zodbot-announce-commits: announce commits on the main branch, not master anymore Signed-off-by: Pierre-Yves Chibon --- diff --git a/roles/batcave/files/zodbot-announce-commits.py b/roles/batcave/files/zodbot-announce-commits.py index 3b988f8..e869252 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()