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

Unified Diff: milo/appengine/backend/git/gitiles.go

Issue 2823413002: Milo buildbot: Add in the rest of the blame/commits information. (Closed)
Patch Set: Created 3 years, 8 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
Index: milo/appengine/backend/git/gitiles.go
diff --git a/milo/appengine/backend/git/gitiles.go b/milo/appengine/backend/git/gitiles.go
index cddd7749033f9b55c412561d6cd8e8c4d517b2f2..89fea76078f71e761f5569c4d892895708c0f50c 100644
--- a/milo/appengine/backend/git/gitiles.go
+++ b/milo/appengine/backend/git/gitiles.go
@@ -113,7 +113,10 @@ func GetCommits(c context.Context, repoURL, treeish string, limit int) ([]resp.C
AuthorName: log.Author.Name,
AuthorEmail: log.Author.Email,
Repo: repoURL,
- Revision: log.Commit,
+ Revision: &resp.Link{
+ Label: log.Commit,
+ URL: repoURL + "/+/" + log.Commit,
+ },
Description: log.Message,
Title: strings.SplitN(log.Message, "\n", 2)[0],
// TODO(hinoka): Fill in the rest of resp.Commit and add those details

Powered by Google App Engine
This is Rietveld 408576698