From 9c62ab4e1833e8efbe873f5c8c40df2f3ed2b77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Ruiz?= Date: Tue, 28 May 2024 22:08:18 +0200 Subject: [PATCH] Remove maintainer-approval.yml (#241) --- .github/workflows/maintainer-approval.yml | 32 ----------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/maintainer-approval.yml diff --git a/.github/workflows/maintainer-approval.yml b/.github/workflows/maintainer-approval.yml deleted file mode 100644 index 34e8f57cc1878..0000000000000 --- a/.github/workflows/maintainer-approval.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Maintainers approval - -on: - pull_request_review: - -jobs: - maintainer-approved-check: - name: Minimum approval count - runs-on: ubuntu-latest - steps: - - id: find-maintainers - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - result-encoding: string - script: | - // Get the collaborators - filtered to maintainer permissions - const maintainersResponse = await github.request('GET /repos/{owner}/{repo}/collaborators', { - owner: context.repo.owner, - repo: context.repo.repo, - permission: 'maintain', - affiliation: 'all', - per_page: 100 - }); - - return maintainersResponse.data.map(item => item.login).join(', '); - - - uses: peternied/required-approval@v1.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - min-required: 1 - required-approvers-list: ${{ steps.find-maintainers.outputs.result }}