From 1db039d2defd2a5eb8dc365cd3aabbecf75e8a6c Mon Sep 17 00:00:00 2001 From: Cycle Bai <168964798+CycleBai@users.noreply.github.com> Date: Sat, 3 Aug 2024 21:33:44 +1000 Subject: [PATCH] ci: Add IssueOps system --- .github/workflows/issueops.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/issueops.yml diff --git a/.github/workflows/issueops.yml b/.github/workflows/issueops.yml new file mode 100644 index 0000000..b9dc36c --- /dev/null +++ b/.github/workflows/issueops.yml @@ -0,0 +1,30 @@ +name: "IssueOps" + +# the workflow to execute on is comments that are newly created +on: + issue_comment: + types: [created] + +# permissions needed for reacting to IssueOps commands on issues and PRs +permissions: + pull-requests: write + issues: write + checks: read + +jobs: + ping: + runs-on: ubuntu-latest + steps: + # execute IssueOps command logic, hooray! + # this will be used to "gate" all future steps below + - uses: github/command@main + id: command + with: + command: ".ping" + + # run your custom logic for your project here - example seen below + + # conditionally run some logic here + - name: ping + if: ${{ steps.command.outputs.continue == 'true' }} + run: echo "success" \ No newline at end of file