From 645dfffc3e5df8ea6dbfa82c445fffba6e24f163 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Tue, 3 Oct 2023 11:43:14 +0200 Subject: [PATCH] added step to allow fellows to trigger the bot ## [Get Fellows Action](https://github.com/paritytech/get-fellows-action) This action gets the fellows from the chain data and it extracts their GitHub handles. This handles are then input into the `auto-merge-bot` action as a list of users who are allowed to trigger the bot. --- .github/workflows/auto-merge.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index bd03ce35fb..3cd5079778 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -11,8 +11,12 @@ jobs: # Important! This forces the job to run only on comments on Pull Requests that starts with '/merge' if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/merge') }} steps: + - name: Get the GitHub handle of the fellows + uses: paritytech/get-fellows-action@v1.0.0 + id: fellows - name: Set auto merge uses: paritytech/auto-merge-bot@v1.0.0 with: GITHUB_TOKEN: '${{ github.token }}' MERGE_METHOD: "SQUASH" + ALLOWLIST: ${{ steps.fellows.outputs.github-handles }}