Merge pull request #3165 from tphoney/DRON-157
(DRON-157) use deploy string in deployment
This commit is contained in:
commit
996353bfff
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -105,7 +105,6 @@ func TestCreateDesc(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestConvertStatus(t *testing.T) {
|
||||
|
||||
tests := []struct {
|
||||
from string
|
||||
to scm.State
|
||||
|
|
Loading…
Reference in a new issue