From 37a8a6d4e9fd5d566e356df474c891dcf9d58378 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 27 Oct 2015 13:09:13 -0700 Subject: [PATCH] add github deployment environment to build.Deploy --- remote/github/github.go | 1 + 1 file changed, 1 insertion(+) 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.