From 5bbfd6b6e8af34946f238706ba9eaa74af2ad22e Mon Sep 17 00:00:00 2001 From: Kinga Sieminiak Date: Fri, 16 May 2025 08:33:31 +0200 Subject: [PATCH 1/2] Add 'base' field to the GitHub PR payload's changes --- github/payload.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/github/payload.go b/github/payload.go index 32cc994..a098604 100644 --- a/github/payload.go +++ b/github/payload.go @@ -4019,6 +4019,14 @@ type PullRequestPayload struct { Body *struct { From string `json:"from"` } `json:"body"` + Base *struct { + Ref *struct { + From string `json:"from"` + } `json:"ref"` + Sha *struct { + From string `json:"from"` + } `json:"Sha"` + } `json:"base"` } `json:"changes"` Assignee *Assignee `json:"assignee"` RequestedReviewer *Assignee `json:"requested_reviewer"` From 5e4ca9269976474ed9203840eb67763f65c81ede Mon Sep 17 00:00:00 2001 From: Kinga Sieminiak Date: Fri, 16 May 2025 10:17:44 +0200 Subject: [PATCH 2/2] Fix json tag --- github/payload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/payload.go b/github/payload.go index a098604..1ea5151 100644 --- a/github/payload.go +++ b/github/payload.go @@ -4025,7 +4025,7 @@ type PullRequestPayload struct { } `json:"ref"` Sha *struct { From string `json:"from"` - } `json:"Sha"` + } `json:"sha"` } `json:"base"` } `json:"changes"` Assignee *Assignee `json:"assignee"`