json
crate to serde_json
.
email
option in match
blocks has been
replaced by the more generic errorcmd
. To obtain the previous
behaviour:
email = "someone@example.com";should be changed to something like:
errorcmd = "cat %s | mailx -s \"snare error: github.com/%o/%r\" someone@example.com";This assumes that the
mailx
command is installed on your
machine. As this example may suggest, errorcmd
is much more
flexible than email
. The syntax of errorcmd
is
the same as cmd/
with the addition that %s
is
expanded to the path of the failed job's combined stderr / stdout.
snare
informs users whose config contains email
how to update to errorcmd
to obtain the previous behaviour.
\"
.
snare
does not have to be woken up as often.
snare
now only searches for a configuration file at
/etc/snare/snare.conf
; as before, you can specify an
alternative location for snare.conf
via the -c
option.
snare
always changes its CWD to '/' (previously the CWD was
only altered if a user
was specified).
github
-block level reposdir
option has
been removed. The more flexible match
-block level cmd
has been
introduced. In essence:
github { reposdir = "/path/to/prps"; ... }should be changed to:
github { match ".*" { cmd = "/path/to/reposdir/%o/%r %e %j"; } }
repodir
how to update it.
[a-zA-Z0-9._-]+
and not to be
the strings ‘.
’ or ‘..
’.
"\""
) are now properly processed (previously they were
ignored).