Skip to content

Commit 85db4cd

Browse files
committed
Skip commits that have already been pushed on another branch.
1 parent a23ad2e commit 85db4cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

zcommit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ def _default(self, *args, **query):
258258
sender = opts.get('sender', 'daemon.zcommit')
259259
logger.debug('Set zsig')
260260
for c in payload['commits']:
261+
if not c.get('distinct', True):
262+
# Skip commits that have already been pushed on another branch.
263+
continue
261264
inst = opts.get('instance', c['id'][:8])
262265
msg = format_commit(c, payload['repository']['commits_url'].replace('{/sha}', '/'+c['id']))
263266
send_zephyr(sender, opts['class'], inst, zsig, msg)

0 commit comments

Comments
 (0)