code: func changeFromGitiles(repoURL, branch string, commit *gitpb.Commit) buildbot.Change {
  	ct, _ := ptypes.Timestamp(commit.Committer.Time)
  	return buildbot.Change{
  		At:         ct.Format("Mon _2 Jan 2006 15:04:05"),
  		Branch:     &branch,
  		Comments:   commit.Message,
  		Repository: repoURL,
  		Rev:        commit.Id,
  		Revision:   commit.Id,
  		Revlink:    fmt.Sprintf("%s/+/%s", strings.TrimSuffix(repoURL, "/"), commit.Id),
  		When:       int(ct.Unix()),
  		Who:        commit.Author.Email,
  		// TODO(nodir): add Files if someone needs them.
  	}
  }
docs: // changeFromGitiles converts a gitiles.Commit to a buildbot change.