@@ -113,6 +113,27 @@ class Meta:
113
113
payload = Field (GenericScalar , required = True )
114
114
115
115
116
+ # ---------------------------------------
117
+ # Proposed change events
118
+ # ---------------------------------------
119
+ class ProposedChangeReviewEvent (ObjectType ):
120
+ class Meta :
121
+ interfaces = (EventNodeInterface ,)
122
+
123
+ reviewer_account_id = String (required = True , description = "The ID of the user who reviewed the proposed change" )
124
+ reviewer_account_name = String (required = True , description = "The name of the user who reviewed the proposed change" )
125
+ reviewer_decision = String (required = True , description = "The decision made by the reviewer" )
126
+
127
+
128
+ class ProposedChangeReviewRevokedEvent (ObjectType ):
129
+ class Meta :
130
+ interfaces = (EventNodeInterface ,)
131
+
132
+ reviewer_account_id = String (required = True , description = "The ID of the user who reviewed the proposed change" )
133
+ reviewer_account_name = String (required = True , description = "The name of the user who reviewed the proposed change" )
134
+ reviewer_former_decision = String (required = True , description = "The decision made by the reviewer" )
135
+
136
+
116
137
# ---------------------------------------
117
138
# Node/Object events
118
139
# ---------------------------------------
@@ -163,5 +184,9 @@ class Meta:
163
184
events .BranchDeletedEvent .event_name : BranchDeletedEvent ,
164
185
events .GroupMemberAddedEvent .event_name : GroupEvent ,
165
186
events .GroupMemberRemovedEvent .event_name : GroupEvent ,
187
+ events .ProposedChangeApprovedEvent .event_name : ProposedChangeReviewEvent ,
188
+ events .ProposedChangeApprovalRevokedEvent .event_name : ProposedChangeReviewRevokedEvent ,
189
+ events .ProposedChangeRejectedEvent .event_name : ProposedChangeReviewEvent ,
190
+ events .ProposedChangeRejectionRevokedEvent .event_name : ProposedChangeReviewRevokedEvent ,
166
191
"undefined" : StandardEvent ,
167
192
}
0 commit comments