Commit d0f1bcc2 authored by Benjamin Jorand's avatar Benjamin Jorand Committed by Sander van Harmelen

Add Milestone.StartDate to Issue (#95)

* Add Milestone.StartDate to Issue

* Use Milestone struct

* Use pointer for Milestone
parent be045e1f
......@@ -36,22 +36,14 @@ type IssuesService struct {
//
// GitLab API docs: http://doc.gitlab.com/ce/api/issues.html
type Issue struct {
ID int `json:"id"`
IID int `json:"iid"`
ProjectID int `json:"project_id"`
Title string `json:"title"`
Description string `json:"description"`
Labels []string `json:"labels"`
Milestone struct {
ID int `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
DueDate string `json:"due_date"`
State string `json:"state"`
UpdatedAt *time.Time `json:"updated_at"`
CreatedAt *time.Time `json:"created_at"`
} `json:"milestone"`
Assignee struct {
ID int `json:"id"`
IID int `json:"iid"`
ProjectID int `json:"project_id"`
Title string `json:"title"`
Description string `json:"description"`
Labels []string `json:"labels"`
Milestone *Milestone `json:"milestone"`
Assignee struct {
ID int `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment