mirror of https://github.com/openspug/spug
F 修复自动发布申请没有发布时间发布人的问题
parent
bca9557cb9
commit
15dd371c1a
|
@ -6,6 +6,7 @@ from apps.setting.utils import AppSetting
|
||||||
from apps.deploy.models import Deploy, DeployRequest
|
from apps.deploy.models import Deploy, DeployRequest
|
||||||
from apps.repository.models import Repository
|
from apps.repository.models import Repository
|
||||||
from apps.deploy.utils import dispatch as deploy_dispatch
|
from apps.deploy.utils import dispatch as deploy_dispatch
|
||||||
|
from libs.utils import human_datetime
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
import hashlib
|
import hashlib
|
||||||
import hmac
|
import hmac
|
||||||
|
@ -119,4 +120,7 @@ def _dispatch(deploy_id, ref, commit_id=None, message=None):
|
||||||
|
|
||||||
req.save()
|
req.save()
|
||||||
if req.status == '2':
|
if req.status == '2':
|
||||||
|
req.do_at = human_datetime()
|
||||||
|
req.do_by = deploy.created_by
|
||||||
|
req.save()
|
||||||
deploy_dispatch(req)
|
deploy_dispatch(req)
|
||||||
|
|
Loading…
Reference in New Issue