Skip to content

Commit 6dda213

Browse files
authored
Add FieldValue field to ProjectV2ItemChange event. (#3650)
1 parent cd4aec6 commit 6dda213

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed

github/event_types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,7 @@ type ProjectV2ItemEvent struct {
11461146
// ProjectV2ItemChange represents a project v2 item change.
11471147
type ProjectV2ItemChange struct {
11481148
ArchivedAt *ArchivedAt `json:"archived_at,omitempty"`
1149+
FieldValue *FieldValue `json:"field_value,omitempty"`
11491150
}
11501151

11511152
// ArchivedAt represents an archiving date change.
@@ -1154,6 +1155,16 @@ type ArchivedAt struct {
11541155
To *Timestamp `json:"to,omitempty"`
11551156
}
11561157

1158+
// FieldValue represents an editing field value change.
1159+
type FieldValue struct {
1160+
FieldNodeID *string `json:"field_node_id,omitempty"`
1161+
FieldType *string `json:"field_type,omitempty"`
1162+
FieldName *string `json:"field_name,omitempty"`
1163+
ProjectNumber *int64 `json:"project_number,omitempty"`
1164+
From json.RawMessage `json:"from,omitempty"`
1165+
To json.RawMessage `json:"to,omitempty"`
1166+
}
1167+
11571168
// ProjectV2Item represents an item belonging to a project.
11581169
type ProjectV2Item struct {
11591170
ID *int64 `json:"id,omitempty"`

github/github-accessors.go

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

github/github-accessors_test.go

Lines changed: 52 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)