Skip to content

Commit

Permalink
fix: Change branching to a single line
Browse files Browse the repository at this point in the history
Signed-off-by: KangManJoo <[email protected]>
  • Loading branch information
eogns47 committed Oct 5, 2024
1 parent 3e78c75 commit 295c702
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 180 deletions.
33 changes: 3 additions & 30 deletions notifications_catalog/templates/app-deployed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,7 @@ slack:
},
{
"title": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
"short": true
},
{
Expand Down Expand Up @@ -53,16 +44,7 @@ teams:
},
{
"name": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
},
{
"name": "Revision",
Expand Down Expand Up @@ -90,15 +72,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}]
}]
33 changes: 3 additions & 30 deletions notifications_catalog/templates/app-health-degraded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ slack:
},
{
"title": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -49,16 +40,7 @@ teams:
},
{
"name": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -82,15 +64,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}]
}]
33 changes: 3 additions & 30 deletions notifications_catalog/templates/app-sync-failed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ slack:
},
{
"title": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -53,16 +44,7 @@ teams:
},
{
"name": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -86,15 +68,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}]
}]
33 changes: 3 additions & 30 deletions notifications_catalog/templates/app-sync-running.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ slack:
},
{
"title": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -52,16 +43,7 @@ teams:
},
{
"name": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -85,15 +67,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}]
}]
33 changes: 3 additions & 30 deletions notifications_catalog/templates/app-sync-status-unknown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@ slack:
},
{
"title": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -53,16 +44,7 @@ teams:
},
{
"name": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -86,15 +68,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}]
}]
33 changes: 3 additions & 30 deletions notifications_catalog/templates/app-sync-succeeded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ slack:
},
{
"title": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -53,16 +44,7 @@ teams:
},
{
"name": "Repository",
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -86,15 +68,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL | call .repo.RepoURLToHTTPS }}"
{{- else if .app.spec.sources }}
{{- range .app.spec.sources }}
"{{ .repoURL | call .repo.RepoURLToHTTPS }}"
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
"uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }}
}]
}]

0 comments on commit 295c702

Please sign in to comment.