MCPcopy Create free account
hub / github.com/github/gh-aw / parseSlashCommandTrigger

Function parseSlashCommandTrigger

pkg/workflow/trigger_parser.go:138–152  ·  view source on GitHub ↗

parseSlashCommandTrigger parses slash command triggers like "/test"

(input string)

Source from the content-addressed store, hash-verified

136
137// parseSlashCommandTrigger parses slash command triggers like "/test"
138func 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"
155func parseLabelTrigger(input string) (*TriggerIR, error) {

Callers 1

ParseTriggerShorthandFunction · 0.85

Calls 2

PrintfMethod · 0.45

Tested by

no test coverage detected