@@ -173,6 +173,25 @@ type DeploymentEvent struct {
173173 Installation * Installation `json:"installation,omitempty"`
174174}
175175
176+ // DeploymentProtectionRuleEvent represents a deployment protection rule event.
177+ // The Webhook event name is "deployment_protection_rule".
178+ //
179+ // GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_protection_rule
180+ type DeploymentProtectionRuleEvent struct {
181+ Action * string `json:"action,omitempty"`
182+ Environment * string `json:"environment,omitempty"`
183+ Event * string `json:"event,omitempty"`
184+
185+ // The URL Github provides for a third-party to use in order to pass/fail a deployment gate
186+ DeploymentCallbackURL * string `json:"deployment_callback_url,omitempty"`
187+ Deployment * Deployment `json:"deployment,omitempty"`
188+ Repo * Repository `json:"repository,omitempty"`
189+ Organization * Organization `json:"organization,omitempty"`
190+ PullRequests []* PullRequest `json:"pull_requests,omitempty"`
191+ Sender * User `json:"sender,omitempty"`
192+ Installation * Installation `json:"installation,omitempty"`
193+ }
194+
176195// DeploymentStatusEvent represents a deployment status.
177196// The Webhook event name is "deployment_status".
178197//
0 commit comments