Skip to content

Commit a986648

Browse files
committed
Add draft attribute to bitbucket-server PullRequest
As of Bitbucket Data Center 8.17, pull requests can be in a "Draft" state, similar to other providers like Github/Gitea. This change updates the `PullRequest` struct for the bitbucket-server package to include this new attribute, so it can be used in handling webhook payloads.
1 parent 02d182a commit a986648

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bitbucket-server/payload.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ type PullRequest struct {
214214
State string `json:"state"`
215215
Open bool `json:"open"`
216216
Closed bool `json:"closed"`
217+
Draft bool `json:"draft"`
217218
CreatedDate uint64 `json:"createdDate"`
218219
UpdatedDate uint64 `json:"updatedDate,omitempty"`
219220
ClosedDate uint64 `json:"closedDate,omitempty"`

0 commit comments

Comments
 (0)