parseSlashCommandTrigger parses slash command triggers like "/test"
(input string)
| 136 | |
| 137 | // parseSlashCommandTrigger parses slash command triggers like "/test" |
| 138 | func parseSlashCommandTrigger(input string) (*TriggerIR, error) { |
| 139 | commandName, isSlashCommand, err := parseSlashCommandShorthand(input) |
| 140 | if err != nil { |
| 141 | return nil, err |
| 142 | } |
| 143 | if !isSlashCommand { |
| 144 | return nil, nil |
| 145 | } |
| 146 | |
| 147 | triggerParserLog.Printf("Parsed slash command trigger: %s", commandName) |
| 148 | |
| 149 | // Note: slash_command is handled specially in the compiler, not as a standard GitHub event |
| 150 | // We return nil here to let the existing slash command processing handle it |
| 151 | return nil, nil |
| 152 | } |
| 153 | |
| 154 | // parseLabelTrigger parses label triggers like "issue labeled bug" or "pull_request labeled needs-review" |
| 155 | func parseLabelTrigger(input string) (*TriggerIR, error) { |
no test coverage detected