feat: add following CLI commands #93
No reviewers
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-35671335-following-cli"
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?
Summary
Implement Slugkit following management commands and simplify pending cancellation through unfollow.
Task
#task-35671335
Changes
slug following list [--json]slug following follow <target> [--json]slug following unfollow <id> [--json]/following/{id}/unfollownow handles accepted records and pending follow requests/following/{id}/cancelroute and OpenAPI entry501, and invalid usageTesting
Checklist
./scripts/pre-pr.shpassesPR Review
Summary
Reviewed PR #93 against task
task-35671335,docs/cli-specs/09-following-commands.md, and the user-approved scope update to remove separate cancel semantics. The PR adds the following CLI commands, unifies pending cancellation and accepted unfollow throughunfollow, removes the/following/{id}/cancelroute/OpenAPI entry, updates docs, and adds CLI/API tests.Acceptance criteria
slug following follow <target>sends the target exactly as{ target }; API resolves handles/URLs into profile details, and CLI human output displays returned handle/profile.POST /api/v1/followingwith{ target: "@alice@remote.example" }and successful output.GET /api/v1/followingand human list output./following/{id}/unfollow./following/{id}/unfollow; API tests cover pending records through unfollow, and/cancelis removed.501 Not Implementedresponses are displayed clearly. — CLI/API tests cover standardized501behavior.501, and invalid usage../scripts/pre-pr.shpassed locally and Forgejo CI succeeded.Blocking issues
None.
Warnings
None.
Verification
./scripts/pre-pr.shpassed locally.CI / build-lint-test (pull_request)issuccess.Verdict
Approved. Ready for human merge approval.