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
11 changes: 11 additions & 0 deletions github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ type ProjectV2ItemEvent struct {
// ProjectV2ItemChange represents a project v2 item change.
type ProjectV2ItemChange struct {
ArchivedAt *ArchivedAt `json:"archived_at,omitempty"`
FieldValue *FieldValue `json:"field_value,omitempty"`
}

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

// FieldValue represents an editing field value change.
type FieldValue struct {
FieldNodeID *string `json:"field_node_id,omitempty"`
FieldType *string `json:"field_type,omitempty"`
FieldName *string `json:"field_name,omitempty"`
ProjectNumber *int64 `json:"project_number,omitempty"`
From json.RawMessage `json:"from,omitempty"`
To json.RawMessage `json:"to,omitempty"`
}

// ProjectV2Item represents an item belonging to a project.
type ProjectV2Item struct {
ID *int64 `json:"id,omitempty"`
Expand Down
40 changes: 40 additions & 0 deletions github/github-accessors.go

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

52 changes: 52 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.

Loading