Skip to content

Commit b38eaf8

Browse files
authored
fix: default repository filter (#6921)
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
1 parent 8a8bf0d commit b38eaf8

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

sdk/vcs.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ const (
3333

3434
var (
3535
BitbucketEvents = []string{
36+
"repo:refs_changed", // position is important here
37+
"repo:comment:added",
38+
"repo:comment:deleted",
39+
"repo:comment:edited",
40+
"repo:forked",
41+
"repo:modified",
3642
"pr:comment:added",
3743
"pr:comment:deleted",
3844
"pr:comment:edited",
@@ -46,19 +52,23 @@ var (
4652
"pr:reviewer:needs_work",
4753
"pr:reviewer:unapproved",
4854
"pr:reviewer:updated",
49-
"repo:comment:added",
50-
"repo:comment:deleted",
51-
"repo:comment:edited",
52-
"repo:forked",
53-
"repo:modified",
54-
"repo:refs_changed",
5555
}
5656

5757
BitbucketEventsDefault = []string{
5858
"repo:refs_changed",
5959
}
6060

6161
BitbucketCloudEvents = []string{
62+
"repo:push", // position is important here
63+
"repo:commit_comment_created",
64+
"repo:commit_status_created",
65+
"repo:commit_status_updated",
66+
"repo:created",
67+
"repo:deleted",
68+
"repo:fork",
69+
"repo:imported",
70+
"repo:transfer",
71+
"repo:updated",
6272
"issue:comment_created",
6373
"issue:created",
6474
"issue:updated",
@@ -72,23 +82,17 @@ var (
7282
"pullrequest:rejected",
7383
"pullrequest:unapproved",
7484
"pullrequest:updated",
75-
"repo:commit_comment_created",
76-
"repo:commit_status_created",
77-
"repo:commit_status_updated",
78-
"repo:created",
79-
"repo:deleted",
80-
"repo:fork",
81-
"repo:imported",
82-
"repo:push",
83-
"repo:transfer",
84-
"repo:updated",
8585
}
8686

8787
BitbucketCloudEventsDefault = []string{
8888
"repo:push",
8989
}
9090

9191
GitHubEvents = []string{
92+
"push", // position is important here
93+
"pull_request_review_comment",
94+
"pull_request_review",
95+
"pull_request",
9296
"check_run",
9397
"check_suite",
9498
"commit_comment",
@@ -115,10 +119,6 @@ var (
115119
"project_column",
116120
"project",
117121
"public",
118-
"pull_request_review_comment",
119-
"pull_request_review",
120-
"pull_request",
121-
"push",
122122
"release",
123123
"repository_import",
124124
"repository_vulnerability_alert",

0 commit comments

Comments
 (0)