From 3a9691576a4d8288e328f36af8f8dbbc40c3821c Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Fri, 5 Sep 2025 13:45:29 -0500 Subject: [PATCH] Add ok to test workflow --- .github/workflows/ok-to-test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ok-to-test.yml diff --git a/.github/workflows/ok-to-test.yml b/.github/workflows/ok-to-test.yml new file mode 100644 index 0000000..b4c22a0 --- /dev/null +++ b/.github/workflows/ok-to-test.yml @@ -0,0 +1,22 @@ +# Write comments "/ok-to-test " on a pull request. This will emit a repository_dispatch event. +name: Ok To Test + +on: + issue_comment: + types: [created] + +jobs: + ok-to-test: + runs-on: ubuntu-latest + # Only run for PRs, not issue comments + if: ${{ github.event.issue.pull_request }} + steps: + - name: Slash Command Dispatch + uses: peter-evans/slash-command-dispatch@v4 + with: + token: ${{ secrets.PAT }} + reaction-token: ${{ secrets.PAT }} + issue-type: pull-request + commands: ok-to-test + # The repository permission level required by the user to dispatch commands. Only allows 1Password collaborators to run this. + permission: write