Skip to content

Commit 2b239f2

Browse files
feat!: Add support for project items CRUD and project fields read operations (#3793)
1 parent e7abb9f commit 2b239f2

File tree

6 files changed

+1599
-260
lines changed

6 files changed

+1599
-260
lines changed

github/event_types.go

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,15 +1150,18 @@ type FieldValue struct {
11501150

11511151
// ProjectV2Item represents an item belonging to a project.
11521152
type ProjectV2Item struct {
1153-
ID *int64 `json:"id,omitempty"`
1154-
NodeID *string `json:"node_id,omitempty"`
1155-
ProjectNodeID *string `json:"project_node_id,omitempty"`
1156-
ContentNodeID *string `json:"content_node_id,omitempty"`
1157-
ContentType *string `json:"content_type,omitempty"`
1158-
Creator *User `json:"creator,omitempty"`
1159-
CreatedAt *Timestamp `json:"created_at,omitempty"`
1160-
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1161-
ArchivedAt *Timestamp `json:"archived_at,omitempty"`
1153+
ID *int64 `json:"id,omitempty"`
1154+
NodeID *string `json:"node_id,omitempty"`
1155+
ProjectNodeID *string `json:"project_node_id,omitempty"`
1156+
ContentNodeID *string `json:"content_node_id,omitempty"`
1157+
ProjectURL *string `json:"project_url,omitempty"`
1158+
ContentType *string `json:"content_type,omitempty"`
1159+
Creator *User `json:"creator,omitempty"`
1160+
CreatedAt *Timestamp `json:"created_at,omitempty"`
1161+
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1162+
ArchivedAt *Timestamp `json:"archived_at,omitempty"`
1163+
ItemURL *string `json:"item_url,omitempty"`
1164+
Fields []*ProjectV2Field `json:"fields,omitempty"`
11621165
}
11631166

11641167
// PublicEvent is triggered when a private repository is open sourced.

github/github-accessors.go

Lines changed: 176 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)