Skip to content

Return nil on mirror command to prevent posting to slack

Steve Abrams requested to merge fix-mirror-message into master

The chatops mirror status command is posting an additional comment when the command is run (see example here). This is because the #perform method of the Command module will post any returned string to slack. Since we return an object, it is implicitly converted to a string and sent to slack. To fix this, we return nil in the perform method instead of returning the return of the run_trigger call.

Merge request reports

Loading