change git_webhooks hashes from 8 characters to 7
This commit is contained in:
parent
7d1cdd2251
commit
3766262eab
3 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ class Gitea(object):
|
||||||
return [["Received new webhook", None]]
|
return [["Received new webhook", None]]
|
||||||
|
|
||||||
def _short_hash(self, hash):
|
def _short_hash(self, hash):
|
||||||
return hash[:8]
|
return hash[:7]
|
||||||
|
|
||||||
def push(self, full_name, data):
|
def push(self, full_name, data):
|
||||||
outputs = []
|
outputs = []
|
||||||
|
|
|
@ -193,7 +193,7 @@ class GitHub(object):
|
||||||
return self._change_count(n, "~", utils.consts.PURPLE)
|
return self._change_count(n, "~", utils.consts.PURPLE)
|
||||||
|
|
||||||
def _short_hash(self, hash):
|
def _short_hash(self, hash):
|
||||||
return hash[:8]
|
return hash[:7]
|
||||||
|
|
||||||
def _flat_unique(self, commits, key):
|
def _flat_unique(self, commits, key):
|
||||||
return set(itertools.chain(*(commit[key] for commit in commits)))
|
return set(itertools.chain(*(commit[key] for commit in commits)))
|
||||||
|
|
|
@ -111,7 +111,7 @@ class GitLab(object):
|
||||||
return self.tag_push(full_name, data)
|
return self.tag_push(full_name, data)
|
||||||
|
|
||||||
def _short_hash(self, hash):
|
def _short_hash(self, hash):
|
||||||
return hash[:8]
|
return hash[:7]
|
||||||
|
|
||||||
def tag_push(self, full_name, data):
|
def tag_push(self, full_name, data):
|
||||||
create = not data["after"].strip("0") == ""
|
create = not data["after"].strip("0") == ""
|
||||||
|
|
Loading…
Reference in a new issue