feat: add comment moderation CLI #89
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
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.