@@ -152,10 +152,16 @@ func (*Service) GetDiff(ctx context.Context, repo string, id uint64, opt *change return nil, os.ErrNotExist } return s.changes[0].Diff, nil } +// threadType is the notifications thread type for this service. +const threadType = "Change" + +// ThreadType returns the notifications thread type for this service. +func (*Service) ThreadType(repo string) string { return threadType } + var shurcool = users.User{ UserSpec: users.UserSpec{ ID: 1924134, Domain: "github.com", },
@@ -767,11 +767,11 @@ func externalizeReaction(reaction reactions.EmojiID) (githubql.ReactionContent, // threadType is the notifications thread type for this service. const threadType = "PullRequest" // ThreadType returns the notifications thread type for this service. -func (service) ThreadType() string { return threadType } +func (service) ThreadType(repo string) string { return threadType } // markRead marks the specified issue as read for current user. func (s service) markRead(ctx context.Context, repo string, id uint64) error { if s.notifications == nil { return nil