Actions runs/run/jobs/logs + fj agent skill #1
Loading…
Reference in a new issue
No description provided.
Delete branch "donach-main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upstream base
7f44ff1plus: actions runs|run|jobs|logs (--attempt) against the Forgejo v16 API, human durations, v16-hint errors, en-US locale keys, skills/fj/SKILL.md for native agent use. Verified: cargo build/test, clippy, nix build, live runs/run against git.bitp.cz.jobs/logs wrapped every error in "requires Forgejo v16 or newer", so a mistyped job id on a v16 server read as a server problem. Ask the server for its version on failure and add the hint only below v16; otherwise surface the server's own message ("run job with id N: resource does not exist"). Version marker 0.6.0-donach.2. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>fj status list|setfor commit statuses ea7b8d3554branch(list/create/delete, protection rules) andfilestatus listeedc3ef4d9- token_delete: bind the success message variable as 'id' to match the .ftl pattern 'deleted token {$id}' (was positionally bound as 'target', panicking with 'Unknown variable: $id' on every successful delete, exit 101). - token delete: reject --id AND --name together in step 1b (XOR) BEFORE the password file is read or any client is built. - reserve_out_file parent check: accept parents owned by us OR sticky (e.g. root-owned 1777 /tmp) OR not group-/world-writable; still refuse a group-/world-writable non-sticky dir owned by others. The old blanket st_uid == geteuid() check blocked /tmp, /var/tmp, shared CI trees and container mounts with a misleading 'does not exist' error. - FD hygiene: parent dir fd is an OwnedFd (closed on every error and success path, no more close() on selected paths only); O_CLOEXEC on the parent open and the openat of the reserved file. - commit_out_file: fsync the parent directory after the rename so the commit survives a power loss. - New tests: every msg-user-token-* message formats without panicking using the same arguments the command code passes (would have caught the delete-success variable mismatch); parent-rule decision table and end-to-end reserve in sticky/world-writable/own/read-only parents. cargo test: 46 passed, 0 failed.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.