feat! "cibtool run add" run state option change
Make the “cibtool run add” options to set the state of a CI run be more logical. There are now four:
- –triggered
- –running
- –success
- –failure
That is, drop the –running option. This allows the clap configuration to specify that one of those four is required. I could not find a way to specify that if –running was present, one of –success and –failure was required, but that’s OK: the –running option didn’t actually help to make things easier for the user.
Signed-off-by: Lars Wirzenius liw@liw.fi
2 files changed
+70
-20
a80ab49d
→
2cc1dc4b
modified ci-broker.md
@@ -433,7 +433,7 @@ given file setup-node.sh
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -766,11 +766,10 @@ done
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -854,10 +853,9 @@ then stdout contains "main"
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -868,7 +866,64 @@ given an installed cibtool
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/bin/cibtool.rs
@@ -585,25 +585,20 @@ struct AddRun {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
|
|
| - | |
| + | |
| + | |
|
|
|
|
|