Skip to content

Commit a5035a0

Browse files
authored
Add slash command access to make unit (#3186)
This should allow PR comments of the form: `/retest unit` to trigger `make unit` Signed-off-by: btofel <[email protected]>
1 parent 1d12f8f commit a5035a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/unit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ on:
88
pull_request:
99
workflow_dispatch:
1010
merge_group:
11+
issue_comment:
12+
types: [created] # Triggers the workflow when a comment is created. see `if` section
1113
jobs:
1214
unit:
15+
if: >-
16+
github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit')
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)