cli/controller/deployment_trigger.go
Christian Ivicevic 46ce910134
Fix outdated deployEnvironmentTriggers mutation (#267)
* Fix outdated deployEnvironmentTriggers mutation

* Update the redeploy log link to the newly created deployment

* Add flag to skip redeploy

* Apply smaller review suggestions

* Hoist service id deduction
2022-08-24 12:12:14 -07:00

20 lines
455 B
Go

package controller
import (
"context"
"github.com/railwayapp/cli/entity"
)
func (c *Controller) DeployEnvironmentTriggers(ctx context.Context, serviceID *string) error {
projectCfg, err := c.GetProjectConfigs(ctx)
if err != nil {
return err
}
return c.gtwy.DeployEnvironmentTriggers(ctx, &entity.DeployEnvironmentTriggersRequest{
ProjectID: projectCfg.Project,
EnvironmentID: projectCfg.Environment,
ServiceID: *serviceID,
})
}