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/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software: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

server/candidates.go +10−2

@@ -173,8 +173,16 @@ func (s *Server) ensureRequestCandidate(m *repo.Meta, acl *access.ACL, req *meta
173 173 return 0, nil // the page names the paths; a server does not resolve them
174 174 }
175 175 // Queueing again is idempotent and repairs a queue whose rows were deleted
176 // without losing the ref.
177 n := s.queue(m, m.Name, cand.Ref, req.Base, "", cand.SHA, false, false)
176 // without losing the ref. The changed paths are those of the landing itself, so
177 // a path-filtered workflow is selected by what the merge actually touches.
178 changed, err := changedPaths(m.Git(), baseTip, cand.SHA)
179 if err != nil {
180 s.Log.Warn("ci: cannot read a combined result's paths", "repo", m.Name, "request", req.ID, "err", err)
181 }
182 n := s.queue(m, m.Name, queueSpec{
183 ref: cand.Ref, branch: req.Base, commit: cand.SHA, changed: changed,
184 deployPages: false, push: true, trigger: "push", action: "combined",
185 })
178 186 // A combined result derived from a contributor head reuses that head's allow
179 187 // decision. Recording it against the derived ref says both things the checklist
180 188 // needs: which head was allowed, and which commit was built from it.