aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-24 17:37:00 +0100
committerGravatar jesopo2019-06-24 17:37:00 +0100
commitcbd35914dbba780cee8110edef1133c7a05876b4 (patch)
tree3bd2313d357cc2c7fbfeaeaeaa80a9a59302a437 /modules
parentActually pass gitea handler for gitea hooks (diff)
signature
'forced' pushes do not exist in gitea webhooks
Diffstat (limited to 'modules')
-rw-r--r--modules/git_webhooks/gitea.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/git_webhooks/gitea.py b/modules/git_webhooks/gitea.py
index 7de8811b..85d1e7fd 100644
--- a/modules/git_webhooks/gitea.py
+++ b/modules/git_webhooks/gitea.py
@@ -43,7 +43,6 @@ COMMENT_ACTIONS = {
"deleted": "deleted a comment"
}
-
class Gitea(object):
def names(self, data, headers):
full_name = None
@@ -141,15 +140,15 @@ class Gitea(object):
url = commit["url"]
outputs.append(
- "%s %spushed %s to %s: %s - %s"
- % (author, forced, hash_colored, branch, message, url))
+ "%s pushed %s to %s: %s - %s"
+ % (author, hash_colored, branch, message, url))
else:
first_id = data["before"]
last_id = data["commits"][-1]["id"]
url = data["compare_url"]
- outputs.append("%s %spushed %d commits to %s - %s"
- % (author, forced, len(data["commits"]), branch, url))
+ outputs.append("%s pushed %d commits to %s - %s"
+ % (author, len(data["commits"]), branch, url))
return outputs