Skip to content

Add conditional job documentation #400

Description

@lukasz-mitka

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions