Skip to content

Add conditional job documentation #400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lukasz-mitka opened this issue Apr 7, 2025 · 0 comments
Open

Add conditional job documentation #400

lukasz-mitka opened this issue Apr 7, 2025 · 0 comments

Comments

@lukasz-mitka
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant