code: func (r *RequestBuilder) FromGitilesTrigger(t *scheduler.GitilesTrigger) {
  	repo, err := gitiles.NormalizeRepoURL(t.Repo, false)
  	if err != nil {
  		r.DebugLog("Bad repo URL %q in the trigger - %s", t.Repo, err)
  		return
  	}
  	commit := &buildbucketpb.GitilesCommit{
  		Host:    repo.Host,
  		Project: strings.TrimPrefix(repo.Path, "/"),
  		Id:      t.Revision,
  	}
  
  	r.Properties = structFromMap(map[string]string{
  		"revision":   t.Revision,
  		"branch":     t.Ref,
  		"repository": t.Repo,
  	})
  	r.Tags = []string{
  		strpair.Format(bbv1.TagBuildSet, protoutil.GitilesBuildSet(commit)),
  		// TODO(nodir): remove after switching to ScheduleBuild RPC v2.
  		strpair.Format(bbv1.TagBuildSet, "commit/git/"+commit.Id),
  		strpair.Format("gitiles_ref", t.Ref),
  	}
  }
docs: // FromGitilesTrigger derives the request properties from the given gitiles
  // trigger.