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

Unified Diff: milo/appengine/buildbucket/common.go

Issue 2768203002: Milo: Fix Gerrit CL reporting in buildbucket view (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | milo/appengine/buildbucket/properties.go » ('j') | milo/appengine/buildbucket/properties.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/buildbucket/common.go
diff --git a/milo/appengine/buildbucket/common.go b/milo/appengine/buildbucket/common.go
index a9a4f90b6399548e3cff53b7915ca9f13535bba5..40b4dab7dc49bdc6e7ffdcaf064ef0e9208645e6 100644
--- a/milo/appengine/buildbucket/common.go
+++ b/milo/appengine/buildbucket/common.go
@@ -122,13 +122,11 @@ func getChangeList(build *buildbucket.ApiBuildMessage, params *buildParameters,
}
case "gerrit":
- if prop.GerritURL != "" && prop.GerritChangeNumber != 0 {
+ if prop.PatchGerritURL != "" && prop.PatchIssue != 0 {
result = &resp.Commit{
- Revision: prop.GerritPatchRef,
- RequestRevision: prop.GerritPatchRef,
Changelist: &resp.Link{
- Label: fmt.Sprintf("Gerrit CL %d", prop.GerritChangeNumber),
- URL: prop.GerritChangeURL,
+ Label: fmt.Sprintf("Gerrit CL %d", prop.PatchIssue),
+ URL: fmt.Sprintf("%s/c/%d", prop.PatchGerritURL, prop.PatchIssue),
tandrii(chromium) 2017/03/23 15:32:57 wdyt about linking to specific patchset like you d
nodir 2017/03/24 06:35:02 +1 do it if GerritPatchSet != 0
hinoka 2017/03/27 18:22:08 Done.
},
}
}
« no previous file with comments | « no previous file | milo/appengine/buildbucket/properties.go » ('j') | milo/appengine/buildbucket/properties.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698