fix issue

pull/360/head
vapao 2021-07-24 09:49:05 +08:00
parent 5b96e7465a
commit 5234eb1c37
1 changed files with 0 additions and 1 deletions

View File

@ -21,7 +21,6 @@ def auto_deploy(request, deploy_id, kind):
if not body['ref'].startswith('refs/'): # Compatible with gogs
body['ref'] = 'refs/tags/' + body['ref']
body = json.loads(request.body)
_, _kind, ref = body['ref'].split('/', 2)
if kind == 'branch' and _kind == 'heads':
commit_id = body['after']