add github deployment environment to build.Deploy

This commit is contained in:
Brad Rydzewski 2015-10-27 13:09:13 -07:00
parent 9a232485bf
commit 37a8a6d4e9

View file

@ -442,6 +442,7 @@ func (g *Github) deployment(r *http.Request) (*model.Repo, *model.Build, error)
build.Author = hook.Sender.Login
build.Ref = hook.Deployment.Ref
build.Branch = hook.Deployment.Ref
build.Deploy = hook.Deployment.Env
// if the ref is a sha or short sha we need to manually
// construct the ref.