aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-11 13:37:40 +0000
committerGravatar jesopo2019-11-11 13:38:09 +0000
commit3766262eabdb129373668f630721c7270467d608 (patch)
treeef0ef7a1ad8609d35bcc481dc5eb841233d8360d /modules
parentprepend user nickname to command error messages (diff)
signature
change git_webhooks hashes from 8 characters to 7
Diffstat (limited to 'modules')
-rw-r--r--modules/git_webhooks/gitea.py2
-rw-r--r--modules/git_webhooks/github.py2
-rw-r--r--modules/git_webhooks/gitlab.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/git_webhooks/gitea.py b/modules/git_webhooks/gitea.py
index 296488ba..b408290f 100644
--- a/modules/git_webhooks/gitea.py
+++ b/modules/git_webhooks/gitea.py
@@ -110,7 +110,7 @@ class Gitea(object):
return [["Received new webhook", None]]
def _short_hash(self, hash):
- return hash[:8]
+ return hash[:7]
def push(self, full_name, data):
outputs = []
diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py
index fc25f0f8..a95be555 100644
--- a/modules/git_webhooks/github.py
+++ b/modules/git_webhooks/github.py
@@ -193,7 +193,7 @@ class GitHub(object):
return self._change_count(n, "~", utils.consts.PURPLE)
def _short_hash(self, hash):
- return hash[:8]
+ return hash[:7]
def _flat_unique(self, commits, key):
return set(itertools.chain(*(commit[key] for commit in commits)))
diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py
index fca8fcf3..9f481384 100644
--- a/modules/git_webhooks/gitlab.py
+++ b/modules/git_webhooks/gitlab.py
@@ -111,7 +111,7 @@ class GitLab(object):
return self.tag_push(full_name, data)
def _short_hash(self, hash):
- return hash[:8]
+ return hash[:7]
def tag_push(self, full_name, data):
create = not data["after"].strip("0") == ""