From ebeb75de9bbcd347dea044f464443579bf335661 Mon Sep 17 00:00:00 2001 From: Priyanka Sekhar Date: Wed, 16 Feb 2022 14:45:18 -0800 Subject: [PATCH 1/3] Update client.go --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 3ab93820..31554674 100644 --- a/client.go +++ b/client.go @@ -51,6 +51,7 @@ type APIObject struct { Summary string `json:"summary,omitempty"` Self string `json:"self,omitempty"` HTMLURL string `json:"html_url,omitempty"` + DeletedAt string `json:"deleted_at,omitempty"` } // APIListObject are the fields used to control pagination when listing objects. From b72e56b34e5d36720124a24a158e53267e932344 Mon Sep 17 00:00:00 2001 From: Priyanka Sekhar Date: Thu, 17 Feb 2022 09:37:32 -0800 Subject: [PATCH 2/3] Removing DeletedAt variable from client.go --- client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/client.go b/client.go index 31554674..3ab93820 100644 --- a/client.go +++ b/client.go @@ -51,7 +51,6 @@ type APIObject struct { Summary string `json:"summary,omitempty"` Self string `json:"self,omitempty"` HTMLURL string `json:"html_url,omitempty"` - DeletedAt string `json:"deleted_at,omitempty"` } // APIListObject are the fields used to control pagination when listing objects. From b84dc566440a236448653dde7782cc019dca52af Mon Sep 17 00:00:00 2001 From: Priyanka Sekhar Date: Thu, 17 Feb 2022 09:51:19 -0800 Subject: [PATCH 3/3] Adding DeletedAt variable to user.go DeletedAt variable only shows up against a deleted user marked as -inactive and still part of an escalation policy --- user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/user.go b/user.go index 72ea490e..2768f79a 100644 --- a/user.go +++ b/user.go @@ -36,6 +36,7 @@ type User struct { NotificationRules []NotificationRule `json:"notification_rules,omitempty"` JobTitle string `json:"job_title,omitempty"` Teams []Team `json:"teams,omitempty"` + DeletedAt string `json:"deleted_at,omitempty"` } // ContactMethod is a way of contacting the user.