Some checks are pending
ci / check (push) Waiting to run
release / build (darwin-aarch64, macos, aarch64-apple-darwin) (push) Waiting to run
release / build (darwin-x86_64, macos, x86_64-apple-darwin) (push) Waiting to run
release / build (rust:1.95-bookworm, linux-x86_64, docker, x86_64-unknown-linux-gnu) (push) Waiting to run
release / publish (push) Blocked by required conditions
Release infrastructure:
* .forgejo/workflows/release.yml: on v* tags, builds darwin-aarch64,
darwin-x86_64, linux-x86_64 tarballs, computes SHA256SUMS, uploads to
the Forgejo release, and writes a ready-to-commit fj.rb formula.
* dist/homebrew/fj.rb.tmpl + scripts/render-homebrew-formula.sh for
local rendering. Publishes into rasterandstate/homebrew-tap.
Issue + PR templates:
* .forgejo/issue_template/{bug,feature,api-gap}.md so triage isn't
guessing at the user's environment.
* .forgejo/pull_request_template.md with a fmt/clippy/test checklist
and a "what to update" surface-changes section.
README demo scaffolding:
* scripts/record-demo.sh drives asciinema through a representative
~30s session covering --version, repo view (auto-detect), issue/pr
list, api, --json-fields, browse.
* README has a commented-out asciicast embed waiting for the v0.1.0
recording.
Compatibility:
* docs/compatibility.md: tested Forgejo versions, caveats for older
Gitea (≤1.19), Forgejo-only endpoints we expose.
* `fj auth login` now probes /api/v1/version once and warns to stderr
when the server reports a pre-7.x version. Parser is pure-fn tested
(modern, old, unparseable cases).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
39 lines
992 B
Bash
Executable file
39 lines
992 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Drives an asciinema recording. Don't invoke directly; run record-demo.sh.
|
|
|
|
set -u
|
|
PS1='\$ '
|
|
export PS1
|
|
|
|
PAUSE_BETWEEN=0.6
|
|
PAUSE_AFTER=1.2
|
|
|
|
say() { printf '\033[1;34m# %s\033[0m\n' "$*"; sleep "$PAUSE_BETWEEN"; }
|
|
do_() { printf '\033[1m$ %s\033[0m\n' "$*"; sleep "$PAUSE_BETWEEN"; eval "$@"; sleep "$PAUSE_AFTER"; }
|
|
|
|
clear
|
|
say "fj: a CLI for Forgejo. Multi-host, tokens in the keychain."
|
|
do_ "fj --version"
|
|
|
|
say "Inside a clone, no flags needed: fj infers the repo from your git remote."
|
|
do_ "fj repo view | head -8"
|
|
|
|
say "Issues, PRs, releases all work the same way."
|
|
do_ "fj issue list --state all -L 5"
|
|
do_ "fj pr list --state all -L 5"
|
|
|
|
say "The api escape hatch with a jq-ish projector."
|
|
do_ "fj api /version"
|
|
do_ "fj api /user -q .login"
|
|
|
|
say "Selective JSON for scripting."
|
|
do_ "fj repo list -L 3 --json --json-fields full_name,private"
|
|
|
|
say "Or just browse on the web."
|
|
say " fj browse src/main.rs"
|
|
sleep 1.5
|
|
|
|
clear
|
|
say "60+ subcommands. Try fj --help."
|
|
sleep 2
|