Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
chore: prepare release 0.13.0
Merged liw opened 1 year ago

Signed-off-by: Lars Wirzenius liw@liw.fi

4 files changed +61 -2 2778011d 3fffb2fc
modified Cargo.lock
@@ -1939,7 +1939,7 @@ dependencies = [

[[package]]
name = "radicle-ci-broker"
-
version = "0.12.0"
+
version = "0.13.0"
dependencies = [
 "anyhow",
 "clap",
modified Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "radicle-ci-broker"
-
version = "0.12.0"
+
version = "0.13.0"
edition = "2021"
rust-version = "1.80"
authors = ["Lars Wirzenius <liw@liw.fi", "cloudhead <cloudhead@radicle.xyz>"]
modified NEWS.md
@@ -4,6 +4,59 @@ This file summarizes the user-visible changes to `radicle-ci-broker`
between releases.


+
## Version 0.13.0, released 2025-02-18
+

+
Bug fixes:
+
  
+
* CI event filter (de)serialization had problems that are now fixed.
+
  A `Not` expression could not always be parsed correctly. See below
+
  for a related breaking change.
+

+
Breaking changes:
+

+
* The CI event filter operator `Not` now takes a list of event
+
  filters, and allows an event, if none of the events in the list
+
  allow. This is a breaking change, because previously the operand of
+
  `Not` was a filter. The new way:
+
  
+
~~~yaml
+
- !Not
+
  - !Allow
+
~~~
+

+
  Previously this would have been: `!Not Allow`. That syntax no longer
+
  works.
+

+
* The CI broker configuration file must now only have known fields. A
+
  file with unknown fields is now rejected, which means the CI broker
+
  won't start. The purpose of this change is to ensure mis-spellings
+
  in configuration file fields are caught. Previously, if the field
+
  `report_dir` as spelled as `reportdidr`, it would have been silently
+
  ignored. Now it is a loud error.
+

+
New features:
+

+
* New CI event filter `!DefaultBranch` that checks if the event refers
+
  to the default branch of a Radicle repository.
+

+
* New CI event filter `!HasFile` that checks if the repository
+
  contains a specific file, in the commit that the event refers to.
+

+
* New aliases `!AllOf`, `!AnyOf`, and `!NoneOf` for CI filters `!And`,
+
  `!Or`, and `!Not`. For each filter, both aliases work in the
+
  identical way. The purpose of the aliases is to be easier to
+
  understand.
+

+
* The CI broker crate `radicle-ci-broker` has new helper functions in
+
  the `msg::helper` module: `get_source` to check out sources from the
+
  local node, and `runcmd` to run a command and capture its output.
+

+
* The `env` field for an adapter specification is now optional.
+

+
* The `cibtool trigger` command now defaults the ref to `main` and the
+
  commit to `HEAD`, which simplifies use for a common case.
+

+

## Version 0.12.0, released 2025-01-29

Breaking changes:
modified debian/changelog
@@ -1,3 +1,9 @@
+
radicle-ci-broker (0.13.0) unstable; urgency=medium
+

+
  * New release.
+

+
 -- Lars Wirzenius <liw@liw.fi>  Tue, 18 Feb 2025 10:15:50 +0200
+

radicle-ci-broker (0.12.0) unstable; urgency=medium

  * New release.