Skip to content

Add conditional job documentation #400

@lukasz-mitka

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.

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