(DRON-157) use deploy string in deployment
This commit is contained in:
parent
fff2f6608c
commit
8de5eac502
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),
|
Desc: createDesc(req.Build.Status),
|
||||||
State: convertStatus(req.Build.Status),
|
State: convertStatus(req.Build.Status),
|
||||||
Target: fmt.Sprintf("%s/%s/%d", s.base, req.Repo.Slug, req.Build.Number),
|
Target: fmt.Sprintf("%s/%s/%d", s.base, req.Repo.Slug, req.Build.Number),
|
||||||
Environment: req.Build.Target,
|
Environment: req.Build.Deploy,
|
||||||
})
|
})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,6 @@ func TestCreateDesc(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestConvertStatus(t *testing.T) {
|
func TestConvertStatus(t *testing.T) {
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
from string
|
from string
|
||||||
to scm.State
|
to scm.State
|
||||||
|
|
Loading…
Reference in a new issue