Skip to content

Commit

Permalink
fix(pr-comment): add whitespace for correct headings
Browse files Browse the repository at this point in the history
  • Loading branch information
corrieriluca committed Nov 5, 2023
1 parent e1a4659 commit 7de778c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

{{ len .Layers }} layer(s) affected with {{ .Commit }} commit.

{{- range .Layers }}
{{ range .Layers }}

### Layer {{ .Path }}

`{{ .ShortDiff }}`
Expand All @@ -14,4 +15,5 @@
{{ .PrettyPlan }}
```
</details>
{{- end }}

{{ end }}
2 changes: 2 additions & 0 deletions internal/controllers/terraformpullrequest/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
configv1alpha1 "github.com/padok-team/burrito/api/v1alpha1"
"github.com/padok-team/burrito/internal/annotations"
controller "github.com/padok-team/burrito/internal/controllers/terraformlayer"
log "github.com/sirupsen/logrus"
)

func (r *Reconciler) getAffectedLayers(repository *configv1alpha1.TerraformRepository, pr *configv1alpha1.TerraformPullRequest) ([]configv1alpha1.TerraformLayer, error) {
Expand Down Expand Up @@ -115,6 +116,7 @@ func GetLinkedLayers(cl client.Client, pr *configv1alpha1.TerraformPullRequest)
}

func (r *Reconciler) deleteTempLayers(ctx context.Context, pr *configv1alpha1.TerraformPullRequest) error {
log.Infof("deleting temporary layers for pull request %s/%s", pr.Namespace, pr.Name)
return r.Client.DeleteAllOf(
ctx, &configv1alpha1.TerraformLayer{}, client.InNamespace(pr.Namespace), client.MatchingLabels{"burrito/managed-by": pr.Name},
)
Expand Down

0 comments on commit 7de778c

Please sign in to comment.