зеркало из https://github.com/golang/build.git
41 строка
1.1 KiB
Protocol Buffer
41 строка
1.1 KiB
Protocol Buffer
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// https://developers.google.com/protocol-buffers/docs/proto3
|
|
syntax = "proto3";
|
|
|
|
import "github.com/golang/protobuf/ptypes/timestamp/timestamp.proto";
|
|
|
|
package maintpb;
|
|
|
|
message Mutation {
|
|
GithubIssueMutation github_issue = 1;
|
|
}
|
|
|
|
message GithubIssueMutation {
|
|
string owner = 1; // "golang"
|
|
string repo = 2; // "go"
|
|
int32 number = 3; // 1, 2, 3... (not the ID)
|
|
|
|
GithubUser user = 4; // only set for new/updated issues, not new comments
|
|
google.protobuf.Timestamp created = 5; // only needed on new issues
|
|
google.protobuf.Timestamp updated = 6; // only set on updated issue text
|
|
string body = 7; // for new or updated issue text (top post, which isn't a comment)
|
|
|
|
repeated GithubIssueCommentMutation comment = 8;
|
|
}
|
|
|
|
message GithubIssueCommentMutation {
|
|
int64 id = 1;
|
|
GithubUser user = 2;
|
|
string body = 3;
|
|
google.protobuf.Timestamp created = 4;
|
|
google.protobuf.Timestamp updated = 5;
|
|
}
|
|
|
|
message GithubUser {
|
|
int64 id = 1;
|
|
string login = 2;
|
|
}
|