Commit graph

77 commits

Author SHA1 Message Date
sid
c2251d9932 chore: migrate module path to public org
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
CI / test (push) Has been cancelled
CI / functional (push) Has been cancelled
Move from forgejo.zerova.net/sid/fgj-sid to
forgejo.zerova.net/public/fgj-sid to reflect the new public org.
2026-04-11 10:34:34 -06:00
sid
2e6575c660 docs: document match_dirs for directory-based host selection
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
CI / test (push) Has been cancelled
CI / functional (push) Has been cancelled
The match_dirs config option was undocumented. Add a dedicated section
explaining directory-based host selection with examples, and update the
hostname resolution priority list to include match_dirs at step 4.
2026-03-23 13:11:43 -06:00
sid
4669d21dea chore: bump version to 0.3.0e
Some checks are pending
CI / lint (push) Waiting to run
CI / build (push) Waiting to run
CI / test (push) Waiting to run
CI / functional (push) Blocked by required conditions
2026-03-23 12:57:38 -06:00
sid
830eba1c0e feat: deterministic match_dirs tie-breaking by config file order
Some checks are pending
CI / lint (push) Waiting to run
CI / build (push) Waiting to run
CI / test (push) Waiting to run
CI / functional (push) Blocked by required conditions
2026-03-23 12:55:49 -06:00
sid
ac780231a8 feat: support ~ (tilde) expansion in match_dirs paths
Some checks are pending
CI / lint (push) Waiting to run
CI / build (push) Waiting to run
CI / test (push) Waiting to run
CI / functional (push) Blocked by required conditions
2026-03-23 12:50:49 -06:00
sid
c293e233d2 feat: add directory-scoped host defaults (match_dirs) and repo list --limit
Some checks are pending
CI / lint (push) Waiting to run
CI / build (push) Waiting to run
CI / test (push) Waiting to run
CI / functional (push) Blocked by required conditions
Add match_dirs field to host config entries for directory-based host
resolution. When no --hostname flag, FGJ_HOST env var, or git remote is
detected, the longest matching directory prefix determines the host.
Symlinks are resolved on both sides for macOS compatibility (/tmp →
/private/tmp). Also adds --limit/-L flag to repo list.
2026-03-23 12:42:24 -06:00
sid
113505de95 feat: v0.3.0d — add PR checks, iostreams, aliases, and broad enhancements
Add PR checks command, iostreams/text packages for colored table output,
top-level run/workflow aliases matching gh CLI structure. Enhance actions,
issues, PRs, releases, repos, labels, milestones, and wiki commands with
improved flags, JSON output, and error handling.
2026-03-23 12:42:24 -06:00
sid
7c0dcc8696 test: rewrite functional tests for full CLI coverage
Consolidate all tests into functional_test.go — remove duplicate
new_commands_test.go. Replace SDK-only tests with actual CLI binary
invocations. Add missing coverage for: issue list, issue view,
issue comment, issue create, issue edit title, repo view, repo list,
release view, --json flag on issue list/view and pr list.
All tests now use -R flag consistently.

35 pass, 0 fail, 3 expected skips (pr view/diff need PRs, clone needs auth).
2026-03-23 12:42:24 -06:00
sid
95da06c003 feat: v0.3.0c — add labels, milestones, wiki, issue dependencies
New commands:
- fgj label list/create/edit/delete
- fgj milestone list/view/create/edit/delete
- fgj wiki list/view/create/edit/delete

Enhanced:
- fgj issue edit --add-dependency/--remove-dependency
2026-03-21 21:50:24 -06:00
sid
7ee5a61910 feat: v0.3.0b — add repo edit command, fix repo create --public flag
- Add `fgj repo edit` for changing visibility, description, homepage,
  and default branch on existing repositories
- Fix `repo create --public` flag which was defined but never read
2026-03-21 21:50:24 -06:00
sid
43e43e7024 feat: v0.3.0a — add api command, pr diff/comment/review, structured errors
New commands:
- fgj api: raw REST API passthrough with field inference and path interpolation
- fgj pr diff: view PR diffs with color, --name-only, --stat
- fgj pr comment: add comments to pull requests
- fgj pr review: approve, request changes, or comment on PRs

Agentic enhancements:
- --json-errors flag for structured JSON error output on stderr
- APIError type wrapping HTTP status codes for machine consumption
- Error codes: auth_required, not_found, api_error, invalid_input, etc.

Docs updated for forgejo.zerova.net/sid/fgj-sid fork.
2026-03-21 21:50:24 -06:00
sid
50191cc542 feat: add PR diff, PR review, and structured error handling commands 2026-03-21 21:50:24 -06:00
Romain Bertrand
3db03ed5e2 Merge pull request 'docs: adjust for v0.3.0 release' (#36) from release/prepare_for_v0.3.0 into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/36
2026-03-13 18:24:34 +01:00
Romain Bertrand
47f696d7dd docs: adjust for v0.3.0 release 2026-03-13 18:20:21 +01:00
Romain Bertrand
fbdb2320cc Merge pull request 'feat: implement repo create command' (#35) from feat/repo-create into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/35
2026-03-13 18:10:06 +01:00
Romain Bertrand
a43a79d78f feat: implement repo create command 2026-03-13 17:44:44 +01:00
Romain Bertrand
73d54fde9c Merge pull request 'fix: respect $XDG_CONFIG_HOME' (#34) from fix/issue-33/respect_xdg_base_dir into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/34
2026-03-13 12:37:19 +01:00
Romain Bertrand
bfd082e66e docs: simplify README.md a bit 2026-03-13 11:52:12 +01:00
Romain Bertrand
2ea1bff59d fix: respect $XDG_CONFIG_HOME 2026-03-12 15:44:24 +01:00
Romain Bertrand
f1d1386d51 chore: ignore .worktrees directory 2026-03-10 15:38:35 +01:00
Romain Bertrand
527f6bf15f Merge pull request 'feat: allow tags passing when creating/editing an issue' (#31) from feat/issue-27/labels_for_issue_creation_and_edition into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/31
2026-02-20 17:53:36 +01:00
Romain Bertrand
2a20a4e0b8 tests: add functional tests for issues labels 2026-02-20 17:48:56 +01:00
Romain Bertrand
0b8f67e438 feat: allow tags passing when creating/editing an issue
resolves #27
2026-02-20 17:41:45 +01:00
Romain Bertrand
65c686997f Merge pull request 'feat/various' (#28) from feat/various into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/28
2026-01-28 15:50:13 +01:00
Romain Bertrand
1420b89fed fix: correctly build the jobs logs url
unfortunately, this is available in gitea, not yet backported to forgejo
2026-01-28 15:16:25 +01:00
Romain Bertrand
a7e5dc5798 lint: find a bunch of issues 2026-01-28 15:16:25 +01:00
Romain Bertrand
4c6de3ad2e feat: add actions workflow enable and disable 2026-01-18 13:11:41 +01:00
Romain Bertrand
c2ee338f1c feat: add actions run watch rerun and cancel 2026-01-18 13:11:41 +01:00
Romain Bertrand
3ccef4e1c6 feat: add json output for list and view commands 2026-01-18 13:11:41 +01:00
Romain Bertrand
fe23f2fce3 feat: add auth logout and token helpers 2026-01-18 13:11:40 +01:00
Romain Bertrand
7bb540bd11 feat: add completion and manpage commands 2026-01-18 13:11:40 +01:00
Romain Bertrand
937aa09a2c Merge pull request 'feat: implement workflow list/view/run' (#26) from feat/workflows into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/26
2026-01-16 11:31:37 +01:00
Romain Bertrand
d4e76e193f docs: less verbose todo list in README.md 2026-01-16 10:56:05 +01:00
Romain Bertrand
79df4eb780 feat: implement workflow list/view/run 2026-01-16 10:52:15 +01:00
Romain Bertrand
d445e55737 Merge pull request 'feat: allow passing a comment when closing an issue' (#24) from feat/closing_issue_with_comment into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/24
2026-01-16 10:24:54 +01:00
Romain Bertrand
900bd4ea97 feat: allow passing a comment when closing an issue 2026-01-16 10:03:49 +01:00
Romain Bertrand
fc699e9718 release: prepare for v0.2.0 2026-01-09 13:49:41 +01:00
Romain Bertrand
52177d9f9e docs: enhance the repology "widget" 2026-01-09 13:44:13 +01:00
Romain Bertrand
a8cd5c9916 docs: try repology 2026-01-09 13:41:41 +01:00
Romain Bertrand
8f91536e93 Merge pull request 'feat: auto detect hostname' (#19) from feat/issue-15/auto_detect_hostname into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/19
2026-01-06 12:58:45 +01:00
Romain Bertrand
c0baf4fa3b feat: auto detect hostname 2026-01-06 12:24:07 +01:00
Romain Bertrand
2c27823e18 Merge pull request 'feat/releases' (#20) from feat/releases into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/20
2026-01-05 18:45:13 +01:00
Romain Bertrand
be3121ffd3 tests: add some functional tests for releases 2026-01-05 13:01:50 +01:00
Romain Bertrand
462d3c0c2c make: add an install target 2026-01-05 12:58:11 +01:00
Romain Bertrand
21a506388a tools: add a basic .editorconfig 2026-01-05 12:57:57 +01:00
Romain Bertrand
36a473a711 feat: releases 2026-01-05 12:57:37 +01:00
Romain Bertrand
a23a4803ce Merge pull request 'feat: issue edit' (#17) from feat/issue-edit into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/17
2026-01-05 12:45:18 +01:00
Romain Bertrand
5bdd76d5dc test(func): add tests for "issue edit" 2026-01-03 11:54:12 +01:00
Romain Bertrand
9251487e56 feat: issue edit 2026-01-03 11:49:34 +01:00
Romain Bertrand
daa51159ec Merge pull request 'feat: add --assignee flag to pr create command' (#14) from feat/pr_assignees into main
Reviewed-on: https://codeberg.org/romaintb/fgj/pulls/14
2025-12-24 10:23:55 +01:00