feat: Category Feature - Commands (#87) #92

Merged
shoko merged 1 commits from feature/category-commands into main 2026-04-09 13:06:36 +02:00
Owner

Summary

Add category command handlers and update existing commands (Issue #87).

New Commands

/category

  • /category - List all categories
  • /category add <slug> <name> - Create a category (admin only)
  • /category delete <slug> - Soft delete a category (admin only)

Updated Commands

/add

Supports -cat <slug>[,<slug>] flag to add categories when creating a bounty.

/add Fix bug github.com/repo -cat bug,urgent

/update

Supports category management flags:

  • -cat <slug>[,<slug>] - Set/replace categories
  • -cat - - Clear all categories
  • -remove-cat <slug> - Remove specific category
/update 1 -cat feature,docs
/update 1 -cat - (clear categories)
/update 1 -remove-cat bug

/bounty

Supports -c <slug>[,<slug>] flag to filter by category.

/bounty -c bug
/bounty -c bug,feature

/show

Displays categories for the bounty.

[#1] Fix login bug
📂 Categories: bug | feature

/help

Updated to include category commands for admin users.

Testing

All 96 existing tests pass.

## Summary Add category command handlers and update existing commands (Issue #87). ## New Commands ### /category - `/category` - List all categories - `/category add <slug> <name>` - Create a category (admin only) - `/category delete <slug>` - Soft delete a category (admin only) ## Updated Commands ### /add Supports `-cat <slug>[,<slug>]` flag to add categories when creating a bounty. ``` /add Fix bug github.com/repo -cat bug,urgent ``` ### /update Supports category management flags: - `-cat <slug>[,<slug>]` - Set/replace categories - `-cat -` - Clear all categories - `-remove-cat <slug>` - Remove specific category ``` /update 1 -cat feature,docs /update 1 -cat - (clear categories) /update 1 -remove-cat bug ``` ### /bounty Supports `-c <slug>[,<slug>]` flag to filter by category. ``` /bounty -c bug /bounty -c bug,feature ``` ### /show Displays categories for the bounty. ``` [#1] Fix login bug 📂 Categories: bug | feature ``` ### /help Updated to include category commands for admin users. ## Testing All 96 existing tests pass.
shoko added 1 commit 2026-04-09 12:51:15 +02:00
Commands layer for category feature (Issue #87):

New Commands:
- /category - list all categories
- /category add <slug> <name> - create category (admin)
- /category delete <slug> - soft delete category (admin)

Updated Commands:
- /add - supports -cat <slug>[,<slug>] flag
- /update - supports -cat, -cat -, and -remove-cat flags
- /bounty - supports -c <slug>[,<slug>] filter
- /show - displays categories for bounty
- /help - includes category commands

Syntax Examples:
- /add Fix bug github.com/repo -cat bug,urgent
- /update 1 -cat feature,docs
- /update 1 -cat - (clear categories)
- /update 1 -remove-cat bug
- /bounty -c bug
- /bounty -c bug,feature
han approved these changes 2026-04-09 13:06:15 +02:00
han left a comment
Collaborator

lgtm

lgtm
shoko merged commit e9d7ba0c8e into main 2026-04-09 13:06:36 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/jigaido#92