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

Unified Diff: go/src/infra/monorail/monorail.go

Issue 2037143002: Monorail client in Go (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: more tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/monorail/generate.go ('k') | go/src/infra/monorail/monorail.infra_testing » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/monorail/monorail.go
diff --git a/go/src/infra/monorail/monorail.go b/go/src/infra/monorail/monorail.go
new file mode 100644
index 0000000000000000000000000000000000000000..f223483d70e9a68880f32de4fd375ed11db663a1
--- /dev/null
+++ b/go/src/infra/monorail/monorail.go
@@ -0,0 +1,49 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package monorail
+
+import "fmt"
+
+// AuthScope is OAuth 2.0 auth scope used by Monorail.
+const AuthScope = "https://www.googleapis.com/auth/userinfo.email"
+
+// LabelRestrictViewGoogle specifies that an issue must be visible to googlers only.
+const LabelRestrictViewGoogle = "Restrict-View-Google"
+
+var errGrpcOptions = fmt.Errorf("options are not supported")
+
+// IssueURL returns a URL to human-consumable HTML page for the issue.
+func IssueURL(host, project string, id int32) string {
+ return fmt.Sprintf("https://%s/p/%s/issues/detail?id=%d", host, project, id)
+}
+
+// Standard issue statuses.
+const (
+ // Open statuses:
+
+ // Unconrimed means the issue is new, has been not verified or reproduced..
+ StatusUnconfirmed = "Unconfirmed"
+ // Untriaged means the issue is confirmed, not reviews for priority of assignment.
+ StatusUntriaged = "Untriaged"
+ // Available means the issue is triaged, but no owner assigned.
+ StatusAvailable = "Available"
+ // Started means the work in progress..
+ StatusStarted = "Started"
+ // ExternalDependency means the issue requires action from a third party.
+ StatusExternalDependency = "ExternalDependency"
+
+ // Closed statuses
+
+ // Fixed means work completed, needs verificaiton
+ StatusFixed = "Fixed"
+ // Verified means test or reporter verified that the fix works
+ StatusVerified = "Verified"
+ // Duplicate means same root cause as another issue
+ StatusDuplicate = "Duplicate"
+ // WontFix means cannot reproduce, works as intended, invalid or absolete.
+ StatusWontFix = "WontFix"
+ // Archived means old issue with no activity.
+ StatusArchived = "Archived"
+)
« no previous file with comments | « go/src/infra/monorail/generate.go ('k') | go/src/infra/monorail/monorail.infra_testing » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698