MCPcopy Create free account
hub / github.com/git-bug/git-bug / Title

Method Title

bridge/gitlab/event.go:112–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112func (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
123var _ Event = &LabelEvent{}
124

Callers

nothing calls this directly

Calls 4

KindMethod · 0.95
NewWithInputFunction · 0.92
CleanupOneLineFunction · 0.92
ParseMethod · 0.65

Tested by

no test coverage detected