Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-forge/src/verbs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas c9c59c2a1d hive-forge: ci-rerun dispatches a fresh run via workflow-dispatch API
The previous implementation POSTed Forgejo's run-page rerun web route,
which is CSRF-gated and answers a bare token POST with 404 — so the verb
never actually re-ran anything against the agent token.

Rework it to dispatch a fresh run of the workflow via the
GitHub-compatible workflow-dispatch API
(POST /repos/<o>/<r>/actions/workflows/<workflow>/dispatches {"ref":<branch>}),
which accepts a plain agent token (verified end-to-end on Forgejo 15.0.3).
A dispatched run is equivalent to the old empty-commit retrigger, minus
the commit.

The branch is resolved from exactly one of --pr (the PR head branch),
--run (branch + workflow looked up from that run in the Actions runs
list), or --branch (directly); --workflow picks the workflow file for
--pr/--branch (default ci.yml). Dispatch re-runs the whole workflow, so
the old --job single-job variant is dropped.

Also add workflow_dispatch to .forgejo/workflows/ci.yml for explicitness
(Forgejo 15.0.3 dispatches the pull_request workflow without it, but the
trigger makes the API path intent-clear and cross-version robust), remove
the now-unused Client::post_web_no_content, and update docs/tools/forge.md.
2026-06-23 14:53:11 +02:00
..
artifact_get.rs feat(hive-forge): add artifact-get verb to download CI run artifacts 2026-06-15 17:59:38 +02:00
assign.rs feat(#1877): restructure hive-forge into pr/issue sub-verbs 2026-06-22 16:01:13 +02:00
attach.rs hive-forge: add # Errors docs on every verb's pub fn run (closes #816) 2026-05-31 16:22:05 +02:00
attachment_get.rs style: treefmt main — fix CI formatting check 2026-06-05 13:09:56 +02:00
branches.rs hive-forge: drop boilerplate # Errors from pure-GET verbs (mara on #827, option A) 2026-05-31 16:22:05 +02:00
ci_log.rs ci-log: graceful message when a run's logs are gc'd (404/500) instead of raw http error 2026-06-17 10:05:21 +02:00
ci_rerun.rs hive-forge: ci-rerun dispatches a fresh run via workflow-dispatch API 2026-06-23 14:53:11 +02:00
clone.rs address argus: drop issue tags from clone/pr-create module docs, fix stale knowledge wording 2026-06-05 20:51:50 +02:00
close.rs feat(#1877): restructure hive-forge into pr/issue sub-verbs 2026-06-22 16:01:13 +02:00
comment.rs feat(#1888): read-before-comment guard via forge notification read-state 2026-06-22 18:54:40 +02:00
comment_edit.rs hive-forge: add # Errors docs on every verb's pub fn run (closes #816) 2026-05-31 16:22:05 +02:00
comment_show.rs hive-forge: drop boilerplate # Errors from pure-GET verbs (mara on #827, option A) 2026-05-31 16:22:05 +02:00
comments.rs feat(#1888): read-before-comment guard via forge notification read-state 2026-06-22 18:54:40 +02:00
diff.rs ci(#1555): prose-ify legacy tracker tags; add lint:allow escape hatch 2026-06-10 13:14:42 +02:00
issue.rs hive-forge: drop boilerplate # Errors from pure-GET verbs (mara on #827, option A) 2026-05-31 16:22:05 +02:00
issue_cmd.rs feat(#1877): restructure hive-forge into pr/issue sub-verbs 2026-06-22 16:01:13 +02:00
issue_create.rs hive-forge: add # Errors docs on every verb's pub fn run (closes #816) 2026-05-31 16:22:05 +02:00
issue_edit.rs hive-forge: add # Errors docs on every verb's pub fn run (closes #816) 2026-05-31 16:22:05 +02:00
labels.rs feat(#1877): restructure hive-forge into pr/issue sub-verbs 2026-06-22 16:01:13 +02:00
lint.rs ci(#1555): prose-ify legacy tracker tags; add lint:allow escape hatch 2026-06-10 13:14:42 +02:00
list.rs list: reject --page 0 and --limit 0 (1-based; clap range parser, per review) 2026-06-17 13:49:45 +02:00
milestone.rs feat(gateway): hivectl gateway user management + fix htpasswdFile assertion 2026-06-01 23:25:28 +02:00
mod.rs feat(#1778): add hive-forge ci-rerun to re-run CI without an empty commit 2026-06-23 14:53:11 +02:00
pr.rs hive-forge: drop boilerplate # Errors from pure-GET verbs (mara on #827, option A) 2026-05-31 16:22:05 +02:00
pr_cmd.rs feat(#1877): restructure hive-forge into pr/issue sub-verbs 2026-06-22 16:01:13 +02:00
pr_commits.rs hive-forge: add pr-commits verb (PR commit list, survives rebase-rewritten shas) 2026-06-17 19:25:01 +02:00
pr_create.rs ci(#1555): prose-ify legacy tracker tags; add lint:allow escape hatch 2026-06-10 13:14:42 +02:00
pr_merge.rs refactor(hive-forge): share latest-per-reviewer logic between pr-status and pr-merge 2026-06-15 11:44:19 +02:00
pr_reviews.rs fix(clippy): fix all clippy warnings in hive-ag3nt, hive-forge, hive-matrix-mcp, hive-sh4re 2026-06-05 14:35:12 +02:00
pr_status.rs refactor(hive-forge): share latest-per-reviewer logic between pr-status and pr-merge 2026-06-15 11:44:19 +02:00
repo_add_collaborator.rs feat(hive-forge): add repo-create + repo-add-collaborator verbs 2026-06-14 22:09:31 +02:00
repo_create.rs feat(hive-forge): add repo-create + repo-add-collaborator verbs 2026-06-14 22:09:31 +02:00
repo_labels.rs hive-forge: add repo-labels verb to list a repo's full label set 2026-06-19 01:45:08 +02:00
subscription.rs fix(#1233): subscription --watch uses PUT, GET handles 404 as not-watching 2026-06-03 23:23:51 +02:00
timeline.rs feat(#1877): restructure hive-forge into pr/issue sub-verbs 2026-06-22 16:01:13 +02:00
tree_sha.rs hive-forge: drop boilerplate # Errors from pure-GET verbs (mara on #827, option A) 2026-05-31 16:22:05 +02:00
view.rs feat(#1888): read-before-comment guard via forge notification read-state 2026-06-22 18:54:40 +02:00