aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-11-13 00:57:09 +0200
committerkongr45gpen <electrovesta@gmail.com>2017-11-13 00:57:09 +0200
commit58f5ea4879a9a8b486e13bcf0213f0762efbf3f9 (patch)
treeb4c3fbbe17318814d05787f1cb3eab319ba9c339
parenta97bcb7ddeaed7be5d0adc2f924f007a6f991db8 (diff)
downloadsupybot_github-58f5ea4879a9a8b486e13bcf0213f0762efbf3f9.tar.gz
supybot_github-58f5ea4879a9a8b486e13bcf0213f0762efbf3f9.tar.bz2
supybot_github-58f5ea4879a9a8b486e13bcf0213f0762efbf3f9.zip
Don't show "force" keyword when new branches are created/deleted
Closes #17
-rw-r--r--local/handler/PushHandler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/local/handler/PushHandler.py b/local/handler/PushHandler.py
index 4ab47b7..dc85425 100644
--- a/local/handler/PushHandler.py
+++ b/local/handler/PushHandler.py
@@ -57,7 +57,8 @@ def handle(data, theme):
forced = data['forced']
)
elif branched:
- action = "force %s" % (action,)
+ if data['forced']:
+ action = "force %s" % (action,)
if isTag:
theme.tag(

© 2014-2024 Faster IT GmbH | imprint | privacy policy