Skip to content

Commit

Permalink
CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilansh committed Jun 23, 2019
1 parent 3a152ef commit b9d11f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ type EnvironmentsService struct {
//
// GitLab API docs: https://docs.gitlab.com/ce/api/environments.html
type Environment struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
ExternalURL string `json:"external_url"`
LastDeployment Deployment `json:"last_deployment,omitempty"`
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
ExternalURL string `json:"external_url"`
LastDeployment *Deployment `json:"last_deployment"`
}

func (env Environment) String() string {
Expand Down Expand Up @@ -75,7 +75,7 @@ func (s *EnvironmentsService) ListEnvironments(pid interface{}, opts *ListEnviro
return envs, resp, err
}

// GetEnvironment gets a specific environment from a project
// GetEnvironment gets a specific environment from a project.
//
// GitLab API docs:
// https://docs.gitlab.com/ee/api/environments.html#get-a-specific-environment
Expand Down

0 comments on commit b9d11f3

Please sign in to comment.