Fixed incorrect tuple usage
This commit is contained in:
parent
c662c59386
commit
6fc4629dba
|
@ -31,8 +31,8 @@ class GiteaHandler(BaseHookHandler):
|
||||||
for commit in payload['commits']:
|
for commit in payload['commits']:
|
||||||
timestamp = dateparse(commit['timestamp'])
|
timestamp = dateparse(commit['timestamp'])
|
||||||
change = {
|
change = {
|
||||||
'author': '{} <{}>'.format((commit['author']['name'],
|
'author': '{} <{}>'.format(commit['author']['name'],
|
||||||
commit['author']['email'])),
|
commit['author']['email']),
|
||||||
'comments': commit['message'],
|
'comments': commit['message'],
|
||||||
'revision': commit['id'],
|
'revision': commit['id'],
|
||||||
'when_timestamp': timestamp,
|
'when_timestamp': timestamp,
|
||||||
|
@ -64,8 +64,8 @@ class GiteaHandler(BaseHookHandler):
|
||||||
head = pull_request['head']
|
head = pull_request['head']
|
||||||
repository = payload['repository']
|
repository = payload['repository']
|
||||||
change = {
|
change = {
|
||||||
'author': '{} <{}>'.format((pull_request['user']['full_name'],
|
'author': '{} <{}>'.format(pull_request['user']['full_name'],
|
||||||
pull_request['user']['email'])),
|
pull_request['user']['email']),
|
||||||
'comments': pull_request['body'],
|
'comments': pull_request['body'],
|
||||||
'revision': pull_request['merge_base'],
|
'revision': pull_request['merge_base'],
|
||||||
'when_timestamp': timestamp,
|
'when_timestamp': timestamp,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user