File tree 1 file changed +18
-2
lines changed
pkg/provider/bitbucketserver/types
1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,29 @@ type PullRequestEvent struct {
23
23
}
24
24
25
25
type PushRequestEventChange struct {
26
- ToHash string `json:"toHash"`
27
- RefID string `json:"refId"`
26
+ Ref Ref `json:"ref"`
27
+ FromHash string `json:"fromHash"`
28
+ ToHash string `json:"toHash"`
29
+ RefID string `json:"refId"`
30
+ Type string `json:"type"`
31
+ }
32
+
33
+ type Ref struct {
34
+ ID string `json:"id"`
35
+ DisplayID string `json:"displayId"`
36
+ Type string `json:"type"`
28
37
}
29
38
30
39
type PushRequestEvent struct {
40
+ EventKey string `json:"eventKey"`
31
41
Actor bbv1.UserWithLinks `json:"actor"`
32
42
Repository bbv1.Repository `json:"repository"`
33
43
Changes []PushRequestEventChange `json:"changes"`
34
44
Commits []bbv1.Commit `json:"commits"`
45
+ ToCommit ToCommit `json:"toCommit"`
46
+ }
47
+
48
+ type ToCommit struct {
49
+ bbv1.Commit
50
+ Parents []bbv1.Commit `json:"parents"` // bbv1.Commit also has Parents field, but its Parents has only two fields while actual payload has more.
35
51
}
You can’t perform that action at this time.
0 commit comments