dmitri.shuralyov.com/service/change/...

githubapi: Use correct thread type.

GitHub notifications for PRs have subject type "PullRequest".
dmitshur committed 6 years ago commit 1db26c2f2779980e7078fa77ec989833a7897669
Collapse all
githubapi/githubapi.go
@@ -676,11 +676,11 @@ func externalizeReaction(reaction reactions.EmojiID) (githubql.ReactionContent,
		return "", fmt.Errorf("%q is an unsupported reaction", reaction)
	}
}

// threadType is the notifications thread type for this service.
const threadType = "Issue"
const threadType = "PullRequest"

// ThreadType returns the notifications thread type for this service.
func (service) ThreadType() string { return threadType }

// markRead marks the specified issue as read for current user.