fix: DefaultBranch event filter didn't work with namespaced refs
The CI event contains a namespaced ref. The default branch we get also. The CI broker filter configuration does not. Fix src/filter.rs::is_default_branch to compare only the un-namespaced branch names.
Signed-off-by: Lars Wirzenius liw@liw.fi
6 files changed
+33
-25
cfac437f
→
2778011d
modified .radicle/ambient.yaml
@@ -32,13 +32,13 @@ plan:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
deleted .radicle/native.yaml
@@ -1,13 +0,0 @@
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
modified ci-broker.md
@@ -1220,6 +1220,7 @@ then stdout contains "main"
|
|
|
|
|
|
| + | |
|
|
|
|
|
added src/bin/default_branch.rs
@@ -0,0 +1,13 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified src/ci_event.rs
@@ -14,6 +14,8 @@ use radicle::{
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -506,12 +508,15 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -532,7 +537,7 @@ fn patch_id(refname: &str) -> Result<PatchId, ParseError> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/filter.rs
@@ -12,7 +12,7 @@ use radicle::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -203,15 +203,17 @@ impl EventFilter {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|