diff --git a/operator/manager/setup.go b/operator/manager/setup.go index 284bd591..73518662 100644 --- a/operator/manager/setup.go +++ b/operator/manager/setup.go @@ -99,7 +99,7 @@ func (s *setup) do(ctx context.Context, stage *core.Stage) error { updated, err := s.updateBuild(ctx, build) if err != nil { - logger.WithError(err).Warnln("manager: cannot bupdate the build") + logger.WithError(err).Warnln("manager: cannot update the build") return err } diff --git a/trigger/dag/dag.go b/trigger/dag/dag.go index d910f0c4..85aa9b21 100644 --- a/trigger/dag/dag.go +++ b/trigger/dag/dag.go @@ -20,7 +20,7 @@ type Dag struct { graph map[string]*Vertex } -// Vertex is a vetex in the graph. +// Vertex is a vertex in the graph. type Vertex struct { Name string Skip bool @@ -28,7 +28,7 @@ type Vertex struct { } // New creates a new directed acyclic graph (dag) that can -// determinte if a stage has dependencies. +// determinate if a stage has dependencies. func New() *Dag { return &Dag{ graph: make(map[string]*Vertex), @@ -58,7 +58,7 @@ func (d *Dag) Dependencies(name string) []string { return d.dependencies(vertex) } -// Ancestors returns the acentors of the vertex. +// Ancestors returns the ancestors of the vertex. func (d *Dag) Ancestors(name string) []*Vertex { vertex := d.graph[name] return d.ancestors(vertex) diff --git a/trigger/trigger.go b/trigger/trigger.go index 7f6c9e81..05cb04e9 100644 --- a/trigger/trigger.go +++ b/trigger/trigger.go @@ -410,7 +410,7 @@ func (t *triggerer) Trigger(ctx context.Context, repo *core.Repository, base *co for _, stage := range stages { // here we re-work the dependencies for the stage to // account for the fact that some steps may be skipped - // and may otherwise break the dependnecy chain. + // and may otherwise break the dependency chain. stage.DependsOn = dag.Dependencies(stage.Name) // if the stage is pending dependencies, but those