mirror of
https://github.com/railwayapp/cli
synced 2026-04-21 14:07:23 +00:00
* 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
20 lines
455 B
Go
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,
|
|
})
|
|
}
|