Skip to content

Commit

Permalink
Add slash command access to make unit
Browse files Browse the repository at this point in the history
This should allow PR comments of the form:
`/retest unit` to trigger `make unit`

Signed-off-by: btofel <btofel@redhat.com>
  • Loading branch information
bentito committed Mar 13, 2024
1 parent 1d12f8f commit 3bbf6a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ on:
pull_request:
workflow_dispatch:
merge_group:
issue_comment:
types: [created] # Triggers the workflow when a comment is created. see `if` section
jobs:
unit:
if: >-
github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 3bbf6a0

Please sign in to comment.