Skip to content

Commit 046c4a2

Browse files
authored
Add draft field for bitbucket PR events
Similar to github and gitlab PR events, bitbucket also supports the `draft` field in the payload. See https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Pull-request This adds the `draft` field, and exposes it analogously to github/gitlab as `Draft`.
1 parent 02d182a commit 046c4a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bitbucket/payload.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ type PullRequest struct {
470470
Title string `json:"title"`
471471
Description string `json:"description"`
472472
State string `json:"state"`
473+
Draft bool `json:"draft`"
473474
Author Owner `json:"author"`
474475
Source struct {
475476
Branch struct {

0 commit comments

Comments
 (0)