Merge pull request #3165 from tphoney/DRON-157

(DRON-157) use deploy string in deployment
This commit is contained in:
TP Honey 2021-12-14 13:08:18 +00:00 committed by GitHub
commit 996353bfff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -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
}

View file

@ -105,7 +105,6 @@ func TestCreateDesc(t *testing.T) {
}
func TestConvertStatus(t *testing.T) {
tests := []struct {
from string
to scm.State