nitter/nitters/gitea/templates/issue_comment.tmpl.md
Peter Kurfer a71976604a
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
test(gitea): add tests for config and templates
2023-03-08 17:28:35 +01:00

18 lines
No EOL
318 B
Markdown

{{- if .Issue.Severity }}
Linter({{ .Issue.severity }}): {{ .Issue.FromLinter }}
{{- else }}
**Linter:** {{ .Issue.FromLinter }}
{{- end }}
{{ .Issue.Text }}
{{- if .Issue.Replacement }}
**Suggestion:**
```go
{{- range $i, $replacement := .Issue.Replacement.NewLines }}
{{ $replacement }}
{{- end }}
```
{{- end }}