diff --git a/remote/github/github.go b/remote/github/github.go index bf9af9d7..303f9db5 100644 --- a/remote/github/github.go +++ b/remote/github/github.go @@ -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.