()
| 110 | } |
| 111 | |
| 112 | func (n NoteEvent) Title() (string, error) { |
| 113 | if n.Kind() == EventTitleChanged { |
| 114 | t, err := parser.NewWithInput(parser.TitleParser, n.Body).Parse() |
| 115 | if err != nil { |
| 116 | return "", err |
| 117 | } |
| 118 | return t, nil |
| 119 | } |
| 120 | return text.CleanupOneLine(n.Body), nil |
| 121 | } |
| 122 | |
| 123 | var _ Event = &LabelEvent{} |
| 124 |
nothing calls this directly
no test coverage detected