Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
fix(src/filter.rs): log the correct filter for tag events
Lars Wirzenius committed 5 months ago
commit e98f577b87e0a6a1dd1ccde263263e57e3f4dbc8
parent beaf622
1 file changed +3 -3
modified src/filter.rs
@@ -242,15 +242,15 @@ impl EventFilter {
            }
            Self::TagCreated => {
                let allowed = matches!(event, CiEvent::V1(CiEventV1::TagCreated { .. }));
-
                Decision::new("BranchCreated", allowed, "")
+
                Decision::new("TagCreated", allowed, "")
            }
            Self::TagUpdated => {
                let allowed = matches!(event, CiEvent::V1(CiEventV1::TagUpdated { .. }));
-
                Decision::new("BranchUpdated", allowed, "")
+
                Decision::new("TagUpdated", allowed, "")
            }
            Self::TagDeleted => {
                let allowed = matches!(event, CiEvent::V1(CiEventV1::TagDeleted { .. }));
-
                Decision::new("BranchDeleted", allowed, "")
+
                Decision::new("TagDeleted", allowed, "")
            }
            Self::Patch(wanted) => {
                let actual = event.patch_id();