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

core/git/git.go +17

@@ -898,6 +898,23 @@ func (r *Repo) Log(rev string, n int) ([]Commit, error) {
898 898 return parseCommits(out), nil
899 899 }
900 900
901 // LogRange returns the commits reachable from to but not from, oldest first. It is
902 // what a reconciler reads to apply every step of a branch advance it missed, rather
903 // than only the net difference between two tips.
904 func (r *Repo) LogRange(from, to string) ([]Commit, error) {
905 args := []string{"log", "--reverse", "--format=" + commitFormat}
906 if from == "" || from == ZeroSHA {
907 args = append(args, to, "--")
908 } else {
909 args = append(args, from+".."+to, "--")
910 }
911 out, errs, err := r.run(nil, args...)
912 if err != nil {
913 return nil, fmt.Errorf("log %s..%s: %w: %s", from, to, err, errs)
914 }
915 return parseCommits(out), nil
916 }
917
901 918 // RevParseFull resolves a revision to a full commit id. It refuses ambiguous
902 919 // short ids rather than picking one.
903 920 func (r *Repo) RevParseFull(rev string) (string, error) {