From fa3960e664c161a50574e5507e9b12e8c767bdfc Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 23 Sep 2022 08:15:01 -0400 Subject: [PATCH] remove old one --- .github/workflows/block-merge.yml | 42 ------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .github/workflows/block-merge.yml diff --git a/.github/workflows/block-merge.yml b/.github/workflows/block-merge.yml deleted file mode 100644 index 7d2c7609a..000000000 --- a/.github/workflows/block-merge.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Check mergeability - -on: pull_request # run on pull request events - -permissions: - # grant write permission on the pull-requests endpoint - pull-requests: write -jobs: - check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Get changed files in the .changeset folder - id: changed-files - uses: tj-actions/changed-files@v29 - with: - files: | - .changeset/**/*.md - - - name: Check if any changesets contain minor changes - id: find-blockers - run: | - echo "Checking for changesets marked as minor" - echo '::set-output name=found::false' - for file in ${{ steps.changed-files.outputs.all_changed_files }}; do - if grep -q "'astro': minor" "$file"; then - echo '::set-output name=found::true' - echo "$file has a minor release tag" - fi - done - - - name: Send PR review - if: steps.find-blockers.outputs.found == 'true' - run: | # approve the pull request - curl --request POST \ - --url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \ - --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ - --header 'content-type: application/json' \ - -d '{"event":"REQUEST_CHANGES","body":"This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved."}'