From 4c80909fc38eb4926956ea970b96ed4a6ea086e5 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Tue, 14 Oct 2014 20:29:45 -0700 Subject: [PATCH] fix minor golint issues --- github/repos_deployments.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/github/repos_deployments.go b/github/repos_deployments.go index 07eb049..2fdf15a 100644 --- a/github/repos_deployments.go +++ b/github/repos_deployments.go @@ -12,7 +12,7 @@ import ( // Deployment represents a deployment in a repo type Deployment struct { - Url *string `json:"url,omitempty"` + URL *string `json:"url,omitempty"` ID *int `json:"id,omitempty"` SHA *string `json:"sha,omitempty"` Ref *string `json:"ref,omitempty"` @@ -111,15 +111,15 @@ type DeploymentStatus struct { State *string `json:"state,omitempty"` Creator *User `json:"creator,omitempty"` Description *string `json:"description,omitempty"` - TargetUrl *string `json:"target_url,omitempty"` + TargetURL *string `json:"target_url,omitempty"` CreatedAt *Timestamp `json:"created_at,omitempty"` UpdatedAt *Timestamp `json:"pushed_at,omitempty"` } -// DeploymentRequest represents a deployment request +// DeploymentStatusRequest represents a deployment request type DeploymentStatusRequest struct { State *string `json:"state,omitempty"` - TargetUrl *string `json:"target_url,omitempty"` + TargetURL *string `json:"target_url,omitempty"` Description *string `json:"description,omitempty"` }