Skip to content

Commit

Permalink
add default event
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzzzzzzz committed Jan 4, 2025
1 parent 47741e4 commit ffbfef8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ resource "google_secure_source_manager_hook" "basic" {
repository_id = google_secure_source_manager_repository.repository.repository_id
location = google_secure_source_manager_repository.repository.location
target_uri = "https://www.example.com"
# default events
# default event
events = ["PUSH"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ resource "google_secure_source_manager_hook" "default" {
location = google_secure_source_manager_repository.repository.location
repository_id = google_secure_source_manager_repository.repository.repository_id
events = ["PUSH", "PULL_REQUEST"]
target_uri = "https://www.updated.com"
push_option {
branch_filter = "main"
}
target_uri = "https://www.update.com"
disabled = true
}
`, context)
Expand Down

0 comments on commit ffbfef8

Please sign in to comment.