-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TriggerGroups are a new alpha feature in Triggers that allow define a set of interceptors that will be processed before Trigger resources for a filtered group of Triggers. All triggers in CI jobs deal with GitHub event so they share a large surface of the interceptors. Using TriggerGroups makes it easier to maintain the triggers for all projects. The change is not only cosmetic though: interceptors like github, cel, add-pr-body will be processed only once. The hash in the GitHub event is going to be validated once. The PR definition will be pulled from the GitHub API once (per trigger group) instead of once per trigger. This paves the way for further changes: - add the add-team-member custom interceptor and logic so we only run tests for authorised users - add a trigger group to add comments that enahnce the user experience Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
- Loading branch information
Showing
9 changed files
with
175 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.