Skip to content

Commit

Permalink
Restrict trigger rules for main branches for gitlab and gerrit
Browse files Browse the repository at this point in the history
Change-Id: Id22bc742cf6b1706bbfa642a589e583229f511df
  • Loading branch information
fserucas authored and morucci committed Sep 3, 2024
1 parent 42de074 commit c8a6d71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/libs/zuulcf/zuulcf.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@ func GetTriggerPostByDriver(driver string, connection string) (PipelineGenericTr
{
Event: "ref-updated",
Ref: []string{
"^refs/heads/.*$",
"^refs/heads/master$",
"^refs/heads/main$",
},
},
}
Expand All @@ -656,7 +657,8 @@ func GetTriggerPostByDriver(driver string, connection string) (PipelineGenericTr
{
Event: "gl_push",
Ref: []string{
"^refs/heads/.*$",
"^refs/heads/master$",
"^refs/heads/main$",
},
},
}
Expand Down
3 changes: 3 additions & 0 deletions doc/reference/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ All notable changes to this project will be documented in this file.
### Removed
### Changed
### Fixed

- Restrict trigger rules for main branches for gitlab and gerrit

### Security

## [v0.0.38] - 2024-08-26
Expand Down

0 comments on commit c8a6d71

Please sign in to comment.