Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Add event, schedule and manual workflow triggers

eb07ff5696e0d83201215966e3ea1e6a24467581 · Keenan Nemetz · 8d ago · parent 1cde8b9e

Add event, schedule and manual workflow triggers

Workflows can now react to change requests, issues, comments, cron
schedules and manual runs, and a push trigger can filter by the paths it
changed. Branch and tag patterns gain ! exclusion.

Event runs are pinned with a JSON payload and the runner exposes it as
VOLE_EVENT, VOLE_EVENT_ACTION and VOLE_EVENT_PATH. Change-request runs
check out the base tip and carry the head and changed files, so an event
never executes an unapproved contributor commit.

Workflow dispatch resolves typed inputs and is available from the
workflows page and `vole workflow dispatch`. Deduplication now includes
an occurrence so the same commit can run for a later event or schedule
slot while a push remains idempotent.

Part of: #138

docs/cli.md +7

@@ -238,6 +238,8 @@ vole workflow run [--dir <path>] [<workflow>...] [--job <id>]...
238 238 [--container-network none|bridge] [--container-pull missing|always|never]
239 239 [--container-user <uid:gid>] [--container-userns <mode>]
240 240 [--cache-size <size>] [--no-cache]
241 vole workflow dispatch --remote <name|url> --workflow <path> [--ref <branch>]
242 [--input name=value]...
241 243 ```
242 244
243 245 `workflow run` executes steps in the working tree, in the job's image, with no
@@ -245,6 +247,11 @@ server or runner. It needs a container runtime; there is no host mode. Both it a
245 247 `vole runner` reuse a job cache (see [Runners § Caching](runner.md#caching)). See
246 248 [Workflows § Check and run a workflow locally](workflows.md#check-and-run-a-workflow-locally).
247 249
250 `workflow dispatch` queues a manual run on the instance instead. The workflow must
251 declare `on.workflow-dispatch`; `--ref` defaults to the default branch, and each
252 `--input` is checked against the input's declared type, options, and default. Only
253 a maintainer or instance admin may dispatch.
254
248 255 ## Internal
249 256
250 257 `vole hook pre-receive|post-receive` is installed in repositories by Vole. It is