From 70bd9a7b4953a5cf7d6a09a7bced48dfe40cd904 Mon Sep 17 00:00:00 2001 From: Russell Epstein Date: Sat, 21 Dec 2024 16:49:34 -0800 Subject: [PATCH] [bitbucket-server] Add Draft to PullRequest payload Adds `Draft` to `PullRequest` Object details: https://confluence.atlassian.com/bitbucketserver/draft-pull-requests-1354498120.html Support added in: https://jira.atlassian.com/browse/BSERV-4262 --- bitbucket-server/payload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbucket-server/payload.go b/bitbucket-server/payload.go index 20f7e8d..f71553d 100644 --- a/bitbucket-server/payload.go +++ b/bitbucket-server/payload.go @@ -220,6 +220,7 @@ type PullRequest struct { FromRef RepositoryReference `json:"fromRef"` ToRef RepositoryReference `json:"toRef"` Locked bool `json:"locked"` + Draft bool `json:"draft"` Author PullRequestParticipant `json:"author"` Reviewers []PullRequestParticipant `json:"reviewers"` Participants []PullRequestParticipant `json:"participants"`