@@ -13,18 +13,19 @@ type Repo struct {
1313
1414// Issue represents a GitHub issue (excluding PRs which have PullRequest != nil)
1515type Issue struct {
16- Number int `json:"number"`
17- Title string `json:"title"`
18- State string `json:"state"`
19- HTMLURL string `json:"html_url"`
20- CreatedAt time.Time `json:"created_at"`
21- UpdatedAt time.Time `json:"updated_at"`
22- ClosedAt * time.Time `json:"closed_at"`
23- User * User `json:"user"`
24- Assignees []User `json:"assignees"`
25- Labels []Label `json:"labels"`
26- Type string `json:"type"`
27- PullRequest * struct {} `json:"pull_request"`
16+ Number int `json:"number"`
17+ Title string `json:"title"`
18+ State string `json:"state"`
19+ HTMLURL string `json:"html_url"`
20+ CreatedAt time.Time `json:"created_at"`
21+ UpdatedAt time.Time `json:"updated_at"`
22+ ClosedAt * time.Time `json:"closed_at"`
23+ User * User `json:"user"`
24+ Assignees []User `json:"assignees"`
25+ Labels []Label `json:"labels"`
26+ Type string `json:"type"`
27+ PullRequest * struct {} `json:"pull_request"`
28+ ProjectCustomFields []ProjectCustomField `json:"project_custom_fields,omitempty"`
2829}
2930
3031type User struct {
@@ -105,22 +106,30 @@ type ProjectMoveEvent struct {
105106
106107// IssueReport is the final aggregated record for output
107108type IssueReport struct {
108- Org string `json:"org"`
109- Repo string `json:"repo"`
110- Number int `json:"number"`
111- Title string `json:"title"`
112- URL string `json:"url"`
113- State string `json:"state"`
114- Type string `json:"type,omitempty"`
115- IsBug bool `json:"is_bug"`
116- Creator string `json:"creator"`
117- Assignees []string `json:"assignees"`
118- CreatedAt time.Time `json:"created_at"`
119- ClosedAt * time.Time `json:"closed_at,omitempty"`
120- Committer string `json:"committer,omitempty"`
121- StatusHistory []StatusEvent `json:"status_history"`
122- ProjectHistory []ProjectMoveEvent `json:"project_history"`
123- CurrentProjects []CurrentProject `json:"current_projects"`
109+ Org string `json:"org"`
110+ Repo string `json:"repo"`
111+ Number int `json:"number"`
112+ Title string `json:"title"`
113+ URL string `json:"url"`
114+ State string `json:"state"`
115+ Type string `json:"type,omitempty"`
116+ IsBug bool `json:"is_bug"`
117+ Creator string `json:"creator"`
118+ Assignees []string `json:"assignees"`
119+ CreatedAt time.Time `json:"created_at"`
120+ ClosedAt * time.Time `json:"closed_at,omitempty"`
121+ Committer string `json:"committer,omitempty"`
122+ StatusHistory []StatusEvent `json:"status_history"`
123+ ProjectHistory []ProjectMoveEvent `json:"project_history"`
124+ CurrentProjects []CurrentProject `json:"current_projects"`
125+ ProjectCustomFields []ProjectCustomField `json:"project_custom_fields,omitempty"`
126+ }
127+
128+ type ProjectCustomField struct {
129+ ProjectID string `json:"project_id"`
130+ ProjectName string `json:"project_name"`
131+ FieldName string `json:"field_name"`
132+ FieldValue string `json:"field_value"`
124133}
125134
126135type CurrentProject struct {
0 commit comments