post-receive: Send a notification to @everyone on non-fastforward
(imported from commit 8fc232dbef4b9b87f30f0b68c6407c43fd8553ba)
This commit is contained in:
parent
5cac63e3a8
commit
824a4d5c05
|
@ -109,7 +109,7 @@ def send_bot_message(oldrev, newrev, refname):
|
||||||
if added:
|
if added:
|
||||||
message += '\n**and adding**:\n\n' + added
|
message += '\n**and adding**:\n\n' + added
|
||||||
message += '\n**A HISTORY REWRITE HAS OCCURRED!**'
|
message += '\n**A HISTORY REWRITE HAS OCCURRED!**'
|
||||||
message += '\nPlease check your local branches to deal with this.'
|
message += '\n@everyone: Please check your local branches to deal with this.'
|
||||||
elif added:
|
elif added:
|
||||||
message = '`%s` was deployed to `%s` with:\n\n%s' % (new_head, branch, added)
|
message = '`%s` was deployed to `%s` with:\n\n%s' % (new_head, branch, added)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue