From 059b80c3da9caa7e386bbedea7285aff14fb2a2a Mon Sep 17 00:00:00 2001 From: backwardspy Date: Thu, 19 Sep 2024 19:48:27 +0000 Subject: [PATCH 1/2] feat: add assignee to issues --- src/models/webhook_events/payload/issues.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/webhook_events/payload/issues.rs b/src/models/webhook_events/payload/issues.rs index cf679bfb..d0eac5e1 100644 --- a/src/models/webhook_events/payload/issues.rs +++ b/src/models/webhook_events/payload/issues.rs @@ -43,4 +43,5 @@ pub enum IssuesWebhookEventAction { pub struct IssuesWebhookEventChanges { pub body: Option>, pub title: Option>, + pub assignee: Option>, } From b9fea68e97648b82aa5f0b388564a4441d0418fd Mon Sep 17 00:00:00 2001 From: backwardspy Date: Thu, 19 Sep 2024 19:48:48 +0000 Subject: [PATCH 2/2] feat: support owner and name repo change fields --- src/models/webhook_events/payload/repository.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/models/webhook_events/payload/repository.rs b/src/models/webhook_events/payload/repository.rs index b90c6a45..329090a8 100644 --- a/src/models/webhook_events/payload/repository.rs +++ b/src/models/webhook_events/payload/repository.rs @@ -1,5 +1,7 @@ use serde::{Deserialize, Serialize}; +use crate::models::Author; + use super::OldValue; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -32,4 +34,18 @@ pub struct RepositoryWebhookEventChanges { pub description: Option>>, pub homepage: Option>>, pub topics: Option>>>, + pub owner: Option>, + pub repository: Option, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct RepositoryWebhookEventChangesOwner { + pub user: Author, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct RepositoryWebhookEventChangesRepository { + pub name: Option>, }