Skip to content

Commit

Permalink
Fix typo in var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded-B committed Sep 10, 2024
1 parent 5003d5b commit 3327c7b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/githubapi/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const githubCommentMaxSize = 65536

type DiffCommentData struct {
DiffOfChangedComponents []argocd.DiffResult
HasSyncableComponens bool
HasSyncableComponents bool
BranchName string
Header string
}
Expand Down Expand Up @@ -183,7 +183,7 @@ func HandlePREvent(eventPayload *github.PullRequestEvent, ghPrClientDetails GhPr

for _, componentPath := range componentPathList {
if isSyncFromBranchAllowedForThisPath(config.Argocd.AllowSyncfromBranchPathRegex, componentPath) {
diffCommentData.HasSyncableComponens = true
diffCommentData.HasSyncableComponents = true
break
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"AppWasTemporarilyCreated": false
}
],
"HasSyncableComponens": false,
"HasSyncableComponents": false,
"BranchName": "promotions/284-simulate-error-5c159151017f",
"Header": ""
}
2 changes: 1 addition & 1 deletion templates/argoCD-diff-pr-comment-concise.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ It will not be present in ArgoCD UI for more than a few seconds and it can not b

{{- end }}

{{- if .HasSyncableComponens }}
{{- if .HasSyncableComponents }}

- [ ] <!-- telefonistka-argocd-branch-sync --> Set ArgoCD apps Target Revision to `{{ .BranchName }}`

Expand Down
2 changes: 1 addition & 1 deletion templates/argoCD-diff-pr-comment.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ It will not be present in ArgoCD UI for more than a few seconds and it can not b

{{- end }}

{{- if .HasSyncableComponens }}
{{- if .HasSyncableComponents }}

- [ ] <!-- telefonistka-argocd-branch-sync --> Set ArgoCD apps Target Revision to `{{ .BranchName }}`

Expand Down

0 comments on commit 3327c7b

Please sign in to comment.