diff --git a/service/status/status.go b/service/status/status.go index 7bde6d4c..a31cf409 100644 --- a/service/status/status.go +++ b/service/status/status.go @@ -76,7 +76,7 @@ func (s *service) Send(ctx context.Context, user *core.User, req *core.StatusInp Desc: createDesc(req.Build.Status), State: convertStatus(req.Build.Status), Target: fmt.Sprintf("%s/%s/%d", s.base, req.Repo.Slug, req.Build.Number), - Environment: req.Build.Target, + Environment: req.Build.Deploy, }) return err } diff --git a/service/status/util_test.go b/service/status/util_test.go index e091e478..f0abd886 100644 --- a/service/status/util_test.go +++ b/service/status/util_test.go @@ -105,7 +105,6 @@ func TestCreateDesc(t *testing.T) { } func TestConvertStatus(t *testing.T) { - tests := []struct { from string to scm.State