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

gerritapi: implement ThreadType interface

This specifies the notification thread type for Gerrit changes. It will
be used by the changes application for marking Gerrit changes read.
dmitshur committed 5 years ago commit 6c693117c87e0e85291cca3e8a4fc1df794a033e
Collapse all
gerritapi/gerritapi.go
@@ -544,5 +544,11 @@ func project(repo string) string {
	if i == -1 {
		return ""
	}
	return repo[i+1:]
}

// gerritChangeThreadType is the notification thread type for Gerrit changes.
const gerritChangeThreadType = "Change"

// ThreadType returns the notification thread type for this service.
func (service) ThreadType(repo string) string { return gerritChangeThreadType }