feat: add comment moderation CLI #89
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!89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-593beb41-comment-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 comment listing and moderation commands for the Slugkit CLI using the approved singular
commentcommand structure.Task
#task-593beb41
Changes
slug comment list [--post <slug>] [--status pending|approved|hidden|all] [--json]slug comment approve <id> [--json]andslug comment hide <id> [--json]/posts/{slug}/commentsand pending/all listing to/comments501, and invalid usageTesting
Checklist
./scripts/pre-pr.shpassesPR Review
Summary
Reviewed PR #89 against task
task-593beb41, with the approved command-structure override to use singularslug comment ...commands instead of the original spec examples. The PR adds comment listing, pending queue listing, approve/hide moderation commands, JSON output, target display for human moderation mutations, and mocked CLI tests for success and common failures.Acceptance criteria
slug comment list --post <slug>routes to/posts/{slug}/comments; tests assert path, status filter, auth header, and output.slug comment list --status pendingroutes to/comments?status=pending; tests assert valid JSON output.slug comment approve <id>posts to/comments/{id}/approve; tests assert path and output.slug comment hide <id>posts to/comments/{id}/hide; tests assert path and JSON output.501 Not Implementedresponses are displayed clearly. — tests assert clear propagated message.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.