Explorar o código

Document macros usage in handlers.rs

kellda %!s(int64=4) %!d(string=hai) anos
pai
achega
e7ffd153a2
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      src/handlers.rs

+ 9 - 0
src/handlers.rs

@@ -100,6 +100,10 @@ macro_rules! issue_handlers {
     }
 }
 
+// Handle events that happend on issues
+//
+// This is for events that happends only on issues (e.g. label changes).
+// Each module in the list must contain the functions `parse_input` and `handle_input`.
 issue_handlers! {
     autolabel,
     major_change,
@@ -161,6 +165,11 @@ macro_rules! command_handlers {
     }
 }
 
+// Handle commands in comments/issues body
+//
+// This is for handlers for commands parsed by the `parser` crate.
+// Each variant of `parser::command::Command` must be in this list,
+// preceded by the module containing the coresponding `handle_command` function
 command_handlers! {
     assign: Assign,
     glacier: Glacier,