MCPcopy Index your code
hub / github.com/git-bug/git-bug / SetTitleRaw

Method SetTitleRaw

cache/bug_cache.go:144–152  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, title string, metadata map[string]string)

Source from the content-addressed store, hash-verified

142}
143
144func (c *BugCache) SetTitleRaw(author identity.Interface, unixTime int64, title string, metadata map[string]string) (*bug.SetTitleOperation, error) {
145 c.mu.Lock()
146 op, err := bug.SetTitle(c.entity, author, unixTime, title, metadata)
147 c.mu.Unlock()
148 if err != nil {
149 return nil, err
150 }
151 return op, c.notifyUpdated()
152}
153
154// EditCreateComment is a convenience function to edit the body of a bug (the first comment)
155func (c *BugCache) EditCreateComment(body string) (entity.CombinedId, *bug.EditCommentOperation, error) {

Callers 5

SetTitleMethod · 0.95
ensureTimelineItemMethod · 0.80
ensureIssueEventMethod · 0.80
ensureChangeMethod · 0.80
BugSetTitleMethod · 0.80

Calls 3

SetTitleFunction · 0.92
LockMethod · 0.65
notifyUpdatedMethod · 0.45

Tested by

no test coverage detected