F 修复自动发布申请没有发布时间发布人的问题

pull/509/head
vapao 2022-06-18 22:46:13 +08:00
parent bca9557cb9
commit 15dd371c1a
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from apps.setting.utils import AppSetting
from apps.deploy.models import Deploy, DeployRequest
from apps.repository.models import Repository
from apps.deploy.utils import dispatch as deploy_dispatch
from libs.utils import human_datetime
from threading import Thread
import hashlib
import hmac
@ -119,4 +120,7 @@ def _dispatch(deploy_id, ref, commit_id=None, message=None):
req.save()
if req.status == '2':
req.do_at = human_datetime()
req.do_by = deploy.created_by
req.save()
deploy_dispatch(req)