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:
parent
a0c13e6f37
commit
66317f37fd
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue