Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions github/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ type IssueType struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Color *string `json:"color,omitempty"`
IsEnabled *bool `json:"is_enabled,omitempty"`
CreatedAt *Timestamp `json:"created_at,omitempty"`
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
}
Expand Down
8 changes: 8 additions & 0 deletions github/orgs_issue_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func TestOrganizationsService_ListIssueTypes(t *testing.T) {
"node_id": "IT_kwDNAd3NAZo",
"name": "Task",
"description": "A specific piece of work",
"is_enabled": true,
"created_at": `+refTimeStr(1136178000)+`,
"updated_at": `+refTimeStr(1136178001)+`
},
Expand All @@ -33,6 +34,7 @@ func TestOrganizationsService_ListIssueTypes(t *testing.T) {
"node_id": "IT_kwDNAd3NAZs",
"name": "Bug",
"description": "An unexpected problem or behavior",
"is_enabled": false,
"created_at": `+refTimeStr(1136178002)+`,
"updated_at": `+refTimeStr(1136178003)+`
}
Expand All @@ -51,6 +53,7 @@ func TestOrganizationsService_ListIssueTypes(t *testing.T) {
NodeID: new("IT_kwDNAd3NAZo"),
Name: new("Task"),
Description: new("A specific piece of work"),
IsEnabled: new(true),
CreatedAt: refTimestamp(1136178000),
UpdatedAt: refTimestamp(1136178001),
},
Expand All @@ -59,6 +62,7 @@ func TestOrganizationsService_ListIssueTypes(t *testing.T) {
NodeID: new("IT_kwDNAd3NAZs"),
Name: new("Bug"),
Description: new("An unexpected problem or behavior"),
IsEnabled: new(false),
CreatedAt: refTimestamp(1136178002),
UpdatedAt: refTimestamp(1136178003),
},
Expand Down Expand Up @@ -102,6 +106,7 @@ func TestOrganizationsService_CreateIssueType(t *testing.T) {
"node_id": "IT_kwDNAd3NAZo",
"name": "Epic",
"description": "An issue type for a multi-week tracking of work",
"is_enabled": true,
"created_at": `+refTimeStr(1136178000)+`,
"updated_at": `+refTimeStr(1136178001)+`
}`)
Expand All @@ -117,6 +122,7 @@ func TestOrganizationsService_CreateIssueType(t *testing.T) {
NodeID: new("IT_kwDNAd3NAZo"),
Name: new("Epic"),
Description: new("An issue type for a multi-week tracking of work"),
IsEnabled: new(true),
CreatedAt: refTimestamp(1136178000),
UpdatedAt: refTimestamp(1136178001),
}
Expand Down Expand Up @@ -160,6 +166,7 @@ func TestOrganizationsService_UpdateIssueType(t *testing.T) {
"node_id": "IT_kwDNAd3NAZo",
"name": "Epic",
"description": "An issue type for a multi-week tracking of work",
"is_enabled": true,
"created_at": `+refTimeStr(1136178000)+`,
"updated_at": `+refTimeStr(1136178001)+`
}`)
Expand All @@ -175,6 +182,7 @@ func TestOrganizationsService_UpdateIssueType(t *testing.T) {
NodeID: new("IT_kwDNAd3NAZo"),
Name: new("Epic"),
Description: new("An issue type for a multi-week tracking of work"),
IsEnabled: new(true),
CreatedAt: refTimestamp(1136178000),
UpdatedAt: refTimestamp(1136178001),
}
Expand Down
Loading