The code changes introduce a new github.ts file that contains a CommandRegistry class and several command handler functions. The CommandRegistry class allows registering command handlers based on command prefixes. The processCommand method processes incoming commands and executes the corresponding handler. This addition enables the handling of commands like /label, /restart-action, /reviewers, and /assign. The new functionality improves the ability to interact with GitHub repositories through commands.
The code changes introduce a new
github.ts
file that contains aCommandRegistry
class and several command handler functions. TheCommandRegistry
class allows registering command handlers based on command prefixes. TheprocessCommand
method processes incoming commands and executes the corresponding handler. This addition enables the handling of commands like/label
,/restart-action
,/reviewers
, and/assign
. The new functionality improves the ability to interact with GitHub repositories through commands.