Commit Graph
10 Commits
Author SHA1 Message Date
Tshepang Mbambo 1d4442d42f avoid confusing terminology
Got confused here, where I did not know if what was referred was the
normal node or the CI node.

Also, "seed node" is used elsewhere to refer to nodes which need to
remain online.
2025-05-13 08:58:27 +03:00
Tshepang Mbambo b80a97d146 typo 2025-05-02 23:55:09 +02:00
Lars Wirzenius 6ec75d1978 doc(doc/userguide.md): document new tag events and filters
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-04-04 11:51:04 +03:00
Lars Wirzenius 6dc057e27f doc: add a "Getting started" section to the user guide
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-03-31 15:46:41 +03:00
Lars Wirzenius 0d1d3291cc fix: use new Git refs module, fix bugs found
This is a huge change, but it's mostly a few kinds of similar changes
in a lot of places. Unfortunately, they were not easy to tease apart
into small, easily reviewed commits.

Use the Git ref types created by the new refs module. Fix problems
this exposes.

The CiEvent enum variants for branch events now use the BranchName
type for branch names. In other words, they have a plain branch name.
The CiEvent::from_node_event constructor also always sets the branch
name to a plain branch name, instead of a name spaced ref for updated
or deleted branches. The ci_event.rs module's unit tests have been
fixed to use the correct kind of Git ref in each test. (It used to be
a mess.)

The CI event filter "Branch" now contains a BranchName, previously a
RefString. This should not break anything, as a RefString will always
work as a BranchName.

The DefaultBranch filter now works, because it compares plain branch
names, where it previously would compare a plain and a name spaced
branch name, and those are never equal.

"cibtool trigger" and "cibtool event add" now add branch events with a plain
branch instead of a name spaced ref.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-03-20 18:33:39 +02:00
Lars Wirzenius b0adc805ec doc(doc/userguide.md): add a chapter on configuration
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-03-13 18:03:06 +02:00
Lars Wirzenius a01aa8ce49 doc(doc/userguide.md): add DefaultBranch, HasFile, NoneOf, AnyOf, AllOf
Also sort table alphabetically, for easier skimming.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-02-18 15:55:31 +02:00
Lars Wirzenius 25a8d24d30 docs(doc/userguide.md): document "triggers" feature
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-01-23 18:20:22 +02:00
Lars Wirzenius d537fd39d1 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>
2024-10-21 14:07:11 +03:00
Lars Wirzenius 69f10e3eb2 docs: start user guide; document CI events and filters 2024-09-30 14:01:03 +03:00