From 3bbf6a035876591a2a6b05f40bcd3b783dc4d1a6 Mon Sep 17 00:00:00 2001 From: Brett Tofel Date: Tue, 5 Mar 2024 15:23:11 -0500 Subject: [PATCH] Add slash command access to make unit This should allow PR comments of the form: `/retest unit` to trigger `make unit` Signed-off-by: btofel --- .github/workflows/unit.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 342aa87cd3..b455174e67 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -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