aboutsummaryrefslogtreecommitdiffstats
path: root/local/handler
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-01-04 00:27:19 +0200
committerkongr45gpen <electrovesta@gmail.com>2017-01-04 00:27:19 +0200
commit7f46f55d67c50f50dc51a00d2487250c4c1e5e94 (patch)
tree3247bdc33b5125b79433a1089dee2577b51c51ee /local/handler
parentfb353478e24e5e4341b86fec3a390906e5e8ce74 (diff)
downloadsupybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.tar.gz
supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.tar.bz2
supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.zip
Note when a push is forced
Diffstat (limited to 'local/handler')
-rw-r--r--local/handler/PushHandler.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/local/handler/PushHandler.py b/local/handler/PushHandler.py
index e40aa64..13052a3 100644
--- a/local/handler/PushHandler.py
+++ b/local/handler/PushHandler.py
@@ -29,17 +29,6 @@ def handle(data, theme):
action = "re-tagged"
else:
action = "re-created"
- elif data['created'] and not data['forced']:
- if isTag:
- action = "tagged"
- else:
- action = "created"
- elif data['deleted'] and not data['forced']:
- if isTag:
- action = "deleted tag"
- else:
- action = "deleted"
- urls = ''
elif data['created']:
if isTag:
action = "tagged"
@@ -62,9 +51,12 @@ def handle(data, theme):
branch = branch,
actor = data['pusher']['name'],
url = getShortURL(data['compare']),
- count = commitno
+ count = commitno,
+ forced = data['forced']
)
elif branched:
+ action = "force %s" % (action,)
+
if isTag:
theme.tag(
actor = data['pusher']['name'],

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