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

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

Issue 2944633003: [milo] Add BuildSummary and common models. (Closed)
Patch Set: add comments Created 3 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 | « milo/api/resp/verbosity_string.go ('k') | milo/appengine/buildbot/build.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/backend/git/gitiles.go
diff --git a/milo/appengine/backend/git/gitiles.go b/milo/appengine/backend/git/gitiles.go
index 14ac81f0d95b7b853607c3644b4399c7ec8e1f7c..e854160a8befb516cb01e9a96249b217d9953127 100644
--- a/milo/appengine/backend/git/gitiles.go
+++ b/milo/appengine/backend/git/gitiles.go
@@ -113,10 +113,7 @@ func GetCommits(c context.Context, repoURL, treeish string, limit int) ([]resp.C
AuthorName: log.Author.Name,
AuthorEmail: log.Author.Email,
Repo: repoURL,
- Revision: &resp.Link{
- Label: log.Commit,
- URL: repoURL + "/+/" + log.Commit,
- },
+ Revision: resp.NewLink(log.Commit, 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
« no previous file with comments | « milo/api/resp/verbosity_string.go ('k') | milo/appengine/buildbot/build.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698