code: func (s *RepositoriesService) CreateDeployment(ctx context.Context, owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error) {
  	u := fmt.Sprintf("repos/%v/%v/deployments", owner, repo)
  
  	req, err := s.client.NewRequest("POST", u, request)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	// TODO: remove custom Accept headers when APIs fully launch.
  	acceptHeaders := []string{mediaTypeDeploymentStatusPreview, mediaTypeExpandDeploymentStatusPreview}
  	req.Header.Set("Accept", strings.Join(acceptHeaders, ", "))
  
  	d := new(Deployment)
  	resp, err := s.client.Do(ctx, req, d)
  	if err != nil {
  		return nil, resp, err
  	}
  
  	return d, resp, nil
  }
docs: // CreateDeployment creates a new deployment for a repository.
  //
  // GitHub API docs: https://developer.github.com/v3/repos/deployments/#create-a-deployment