/
bitbucket_server_events.go
29 lines (23 loc) · 1.1 KB
/
bitbucket_server_events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package sdk
type BitbucketServerWebhookEvent struct {
EventKey string `json:"eventKey"`
Date string `json:"date"`
Actor *BitbucketServerActor `json:"actor"`
// PR event data
PullRequest *BitbucketServerPullRequest `json:"pullRequest"`
PreviousTitle string `json:"previousTitle"`
PreviousDescription interface{} `json:"previousDescription"`
PreviousTarget *BitbucketServerPreviousTarget `json:"previousTarget"`
// Review event data
Participant *BitbucketServerParticipant `json:"participant"`
PreviousStatus string `json:"previousStatus"`
// Reviewer edited data
AddedReviewers []BitbucketServerActor `json:"addedReviewers"`
RemovedReviewers []BitbucketServerActor `json:"removedReviewers"`
// PR Comment event data
Comment *BitbucketServerComment `json:"comment"`
PreviousComment string `json:"previousComment"`
// PushEvent data
Repository *BitbucketServerRepository `json:"repository"`
Changes []BitbucketServerChange `json:"changes"`
}