feat: filter on originating node for an event
Add the Node(nid) event filter.
Add the from_node field to the BranchDeleted event so that it too
can be filtered based on node.
Adjust debug logging for event filtering so that it reports the filtering decision.
Signed-off-by: Lars Wirzenius liw@liw.fi
4 files changed
+86
-20
caf839b5
→
d537fd39
modified doc/userguide.md
@@ -76,11 +76,12 @@ A branch has been updated.
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -114,6 +115,7 @@ Otherwise it is discarded and does not trigger a CI run.
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/ci_event.rs
@@ -37,6 +37,7 @@ pub enum CiEventV1 {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -157,6 +158,7 @@ impl CiEvent {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -402,8 +404,9 @@ mod test {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/filter.rs
@@ -2,7 +2,7 @@ use std::path::{Path, PathBuf};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -38,6 +38,9 @@ pub enum EventFilter {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -56,7 +59,6 @@ pub enum EventFilter {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -66,39 +68,75 @@ impl EventFilter {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -132,6 +170,10 @@ mod test {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -194,7 +236,12 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -461,6 +508,20 @@ mod test {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/pages.rs
@@ -196,9 +196,9 @@ impl PageData {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|