slash-command-dispatch icon indicating copy to clipboard operation
slash-command-dispatch copied to clipboard

Add conditional job documentation

Open lukasz-mitka opened this issue 7 months ago • 0 comments
trafficstars

Please add documentation and examples for avoiding running jobs when comment is not in fact a 'slash command'.

if: startswith(github.event.comment.body, '/') appears to be a good way to do so. As in

jobs:
  slashCommandDispatch:
    if: startswith(github.event.comment.body, '/')

By avoiding running jobs it's possible to lower te bill on 'comment heavy' repos.

lukasz-mitka avatar Apr 07 '25 12:04 lukasz-mitka