From b93717a94061b53f42bd9da2eeb80d5500d7ad3a Mon Sep 17 00:00:00 2001 From: haya14busa Date: Tue, 18 Jun 2024 00:32:26 +0900 Subject: [PATCH] Add MetaComment proto --- proto/metacomment/metacomment.proto | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 proto/metacomment/metacomment.proto diff --git a/proto/metacomment/metacomment.proto b/proto/metacomment/metacomment.proto new file mode 100644 index 00000000..26ac2201 --- /dev/null +++ b/proto/metacomment/metacomment.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +package reviewdog.rdf; + +option go_package = "github.com/reviewdog/reviewdog/proto/metacomment"; + +// Represents a metadata of a diagnostic result. +// It's expected to be base64 encoded and included into reporter comments such +// as GitHub Pull Request Review comment. +// +// This metadata allow reviewdog to identify the same existing comment and +// avoid posting duplicated comments. It can also be used for resolving or +// deleting existing comments. +message MetaComment { + // An unique identity, or "fingerprint", of the diagnostic result. + string fingerprint = 1; + + // Source (tool) name of the diagnostic result. + // It's important to have source name so that reviewdog can handle existing + // comments with the same source properly. + string source_name = 2; +}