Skip to content

Commit

Permalink
fix: default repository filter (#6921)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored Mar 29, 2024
1 parent 8a8bf0d commit b38eaf8
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions sdk/vcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ const (

var (
BitbucketEvents = []string{
"repo:refs_changed", // position is important here
"repo:comment:added",
"repo:comment:deleted",
"repo:comment:edited",
"repo:forked",
"repo:modified",
"pr:comment:added",
"pr:comment:deleted",
"pr:comment:edited",
Expand All @@ -46,19 +52,23 @@ var (
"pr:reviewer:needs_work",
"pr:reviewer:unapproved",
"pr:reviewer:updated",
"repo:comment:added",
"repo:comment:deleted",
"repo:comment:edited",
"repo:forked",
"repo:modified",
"repo:refs_changed",
}

BitbucketEventsDefault = []string{
"repo:refs_changed",
}

BitbucketCloudEvents = []string{
"repo:push", // position is important here
"repo:commit_comment_created",
"repo:commit_status_created",
"repo:commit_status_updated",
"repo:created",
"repo:deleted",
"repo:fork",
"repo:imported",
"repo:transfer",
"repo:updated",
"issue:comment_created",
"issue:created",
"issue:updated",
Expand All @@ -72,23 +82,17 @@ var (
"pullrequest:rejected",
"pullrequest:unapproved",
"pullrequest:updated",
"repo:commit_comment_created",
"repo:commit_status_created",
"repo:commit_status_updated",
"repo:created",
"repo:deleted",
"repo:fork",
"repo:imported",
"repo:push",
"repo:transfer",
"repo:updated",
}

BitbucketCloudEventsDefault = []string{
"repo:push",
}

GitHubEvents = []string{
"push", // position is important here
"pull_request_review_comment",
"pull_request_review",
"pull_request",
"check_run",
"check_suite",
"commit_comment",
Expand All @@ -115,10 +119,6 @@ var (
"project_column",
"project",
"public",
"pull_request_review_comment",
"pull_request_review",
"pull_request",
"push",
"release",
"repository_import",
"repository_vulnerability_alert",
Expand Down

0 comments on commit b38eaf8

Please sign in to comment.