if True:
### Init MailSender ####
my_mail = MailSender()
-
- my_mail.add_title('[Auto Git-Sync] Target Project:%s Branch:%s' %(target_project, branch))
+ if upstream_failures or \
+ overwrite_failures or \
+ merge_failures or \
+ submit_failures or \
+ submit_request_failures:
+ my_mail.add_title('[Auto Git-Sync Fail] Target Project:%s Branch:%s' %(target_project, branch))
+ else:
+ my_mail.add_title('[Auto Git-Sync] Target Project:%s Branch:%s' %(target_project, branch))
my_mail.add_message('Hello\n A Build System inform you about Auto Git-Sync results\n\n')
my_mail.add_message('Public Source Snapshot: %s \nUpstream Branch: %s\nTarget Project: %s\nTarget Branch: %s' \
%(request_snapshot, UPSTREAM_BRANCH, target_project, branch))