zodbot-announce-commits: announce commits on the main branch, not master anymore

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-01-13 11:03:42 +01:00
parent a0c13e6f37
commit 66317f37fd

View file

@ -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()