Files
gitea-mcp/internal/identity/footer.go
2026-05-04 21:05:42 +02:00

15 lines
271 B
Go

package identity
import "strings"
func ApplyFooter(body, caller string) string {
if caller == "" {
return body
}
footer := "\n\n---\n_Created via git-mcp on behalf of @" + caller + "_"
if strings.HasSuffix(body, footer) {
return body
}
return body + footer
}