From ad39dbd89bd13d543799dfff1a6bbcf791c1678b Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 8 Dec 2024 21:22:34 -0500 Subject: [PATCH] Create commands.yml Use default GITHUB_TOKEN --- .github/workflows/commands.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/commands.yml diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml new file mode 100644 index 0000000..d6d9099 --- /dev/null +++ b/.github/workflows/commands.yml @@ -0,0 +1,22 @@ +name: Repo Commands + +on: + issue_comment: # Handle comment commands + types: [created] + pull_request: # Handle renamed PRs + types: [edited] + +jobs: + comment-trigger: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Run command handlers + uses: extremeheat/prismarine-repo-actions@master + with: + # NOTE: You must specify a Personal Access Token (PAT) with repo access here. While you can use the default GITHUB_TOKEN, actions taken with it will not trigger other actions, so if you have a CI workflow, commits created by this action will not trigger it. + token: ${{ secrets.GITHUB_TOKEN }} + # See `Options` section below for more info on these options + install-command: npm install + /fixlint.fix-command: npm run fix