Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: go/src/infra/monorail/monorail.proto

Issue 2037143002: Monorail client in Go (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file *partially* describes Monorail API.
6 // It is derived from
7 // https://chrome-internal.googlesource.com/infra/infra_internal/+/a411540/appen gine/monorail/services/api_svc_v1.py
8 // and
9 // https://chrome-internal.googlesource.com/infra/infra_internal/+/a411540/appen gine/monorail/proto/api_pb2_v1.py
10
11 syntax = "proto3";
12
13 package monorail;
seanmccullough1 2016/06/03 18:45:33 What you've done here is handy because you can add
nodir 2016/06/03 18:56:12 Yes https://cs.chromium.org/chromium/infra/go/src/
14
15 // Monorail service can manipulate issues.
16 service Monorail {
17 // Creates an issue.
18 rpc InsertIssue(InsertIssueRequest) returns (InsertIssueResponse){};
19 // Posts a comment to an issue. Can update issue attributes, such as status.
20 rpc InsertComment(InsertCommentRequest) returns (InsertCommentResponse){};
21 }
22
23 // Issue is an existing monorail issue.
24 message Issue {
25 // Reporter of the issue.
26 AtomPerson author = 1;
27 // Issues that must be fixed before this one can be fixed.
28 repeated IssueRef blockedOn = 2;
29 // People participating in the issue discussion.
30 repeated AtomPerson cc = 6;
31 // The text body of the issue.
32 string description = 8;
33 // Identifier of the issue, unique within the appengine app.
34 int32 id = 9;
35 // Arbitrary indexed strings visible to users,
36 // usually of form "Key-Value" or "Key-Value-SubValue",
37 repeated string labels = 11;
38 // Who is currently responsible for closing the issue.
39 AtomPerson owner = 12;
40 // Current status of issue. Standard values:
41 //
42 // Open statuses:
43 // "Unconrimed" - New, has been not verified or reproduced.
44 // "Untriaged" - Confirmed, not reviews for priority of assignment
45 // "Available" - Triaged, but no owner assigned
46 // "Started" - Work in progress.
47 // "ExternalDependency" - Requires action from a third party
48 // Closed statuses:
49 // "Fixed" - Work completed, needs verificaiton
50 // "Verified" - Test or reporter verified that the fix works
51 // "Duplicate" - Same root cause as another issue
52 // "WontFix" - Cannot reproduce, works as intended, invalid or absolete.
53 // "Archived" - Old issue with no activity.
54 string status = 17;
55 // A one line description of the issue.
56 string summary = 18;
57 }
58
59 // IssueRef references another issue in the same Monorail instance.
60 message IssueRef {
61 // ID of the issue.
62 int32 issueId = 1;
63 // ID of the project containing the issue.
64 string projectId = 2;
65 }
66
67 // Request for Monorail.InsertIssue().
68 message InsertIssueRequest {
69 // Target project id.
70 string projectId = 1;
71 // Definition of the issue.
72 // issue.id must be empty.
73 Issue issue = 2;
74 // Whether to send email to participants.
75 bool sendEmail = 3;
76 }
77
78 // Response for Monorail.InsertIssue()
79 message InsertIssueResponse {
80 // Created issue.
81 Issue issue = 1;
82 }
83
84 // Request for Monorail.InsertComment()
85 message InsertCommentRequest {
86 // Defines the comment.
87 // This message is partial.
88 // Derived from IssueCommentWrapper type in api_pb2_v1.py.
89 message Comment {
90 string content = 4;
91 Update updates = 8;
92 }
93 // Definition of the comment.
94 Comment comment = 1;
95 // The reference to post the comment to.
96 IssueRef issue = 2;
97 }
98
99 message InsertCommentResponse{}
100
101 // Defines a mutation to an issue.
102 // This message is partial.
103 // Derived from Update type in api_pb2_v1.py.
104 message Update {
105 // If set, the new status of the issue.
106 string status = 2;
107 }
108
109 // Identifies a Monorail user.
110 message AtomPerson {
111 // User email.
112 string name = 1;
113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698