|
|
|
@ -69,9 +69,6 @@ func (s *RepositoriesService) ListDeployments(owner, repo string, opt *Deploymen |
|
|
|
return nil, nil, err |
|
|
|
} |
|
|
|
|
|
|
|
// TODO: remove custom Accept header when this API fully launches
|
|
|
|
req.Header.Set("Accept", mediaTypeDeploymentPreview) |
|
|
|
|
|
|
|
deployments := new([]Deployment) |
|
|
|
resp, err := s.client.Do(req, deployments) |
|
|
|
if err != nil { |
|
|
|
@ -92,9 +89,6 @@ func (s *RepositoriesService) CreateDeployment(owner, repo string, request *Depl |
|
|
|
return nil, nil, err |
|
|
|
} |
|
|
|
|
|
|
|
// TODO: remove custom Accept header when this API fully launches
|
|
|
|
req.Header.Set("Accept", mediaTypeDeploymentPreview) |
|
|
|
|
|
|
|
d := new(Deployment) |
|
|
|
resp, err := s.client.Do(req, d) |
|
|
|
if err != nil { |
|
|
|
@ -138,9 +132,6 @@ func (s *RepositoriesService) ListDeploymentStatuses(owner, repo string, deploym |
|
|
|
return nil, nil, err |
|
|
|
} |
|
|
|
|
|
|
|
// TODO: remove custom Accept header when this API fully launches
|
|
|
|
req.Header.Set("Accept", mediaTypeDeploymentPreview) |
|
|
|
|
|
|
|
statuses := new([]DeploymentStatus) |
|
|
|
resp, err := s.client.Do(req, statuses) |
|
|
|
if err != nil { |
|
|
|
@ -161,9 +152,6 @@ func (s *RepositoriesService) CreateDeploymentStatus(owner, repo string, deploym |
|
|
|
return nil, nil, err |
|
|
|
} |
|
|
|
|
|
|
|
// TODO: remove custom Accept header when this API fully launches
|
|
|
|
req.Header.Set("Accept", mediaTypeDeploymentPreview) |
|
|
|
|
|
|
|
d := new(DeploymentStatus) |
|
|
|
resp, err := s.client.Do(req, d) |
|
|
|
if err != nil { |
|
|
|
|