From 6e33e46174f88dd5881f8fa2e420efc9d79529de Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Thu, 15 Jun 2023 11:18:36 -0700 Subject: [PATCH] Remove non-functional parts of repo sync (#37902) --- .github/workflows/repo-sync.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index bf90e040c8..a37907e750 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -126,30 +126,6 @@ jobs: } console.log('No detected merge conflicts') - // Temporary, what does this prevent? - // console.log('Checking mergeable') - // if (pull.mergeable) { - // console.log('Pull request is mergeable') - // } else { - // console.log('Pull request is not mergeable, closing') - // await closePullRequest(pull_number) - // return - // } - - console.log('Approving pull request') - try { - await github.rest.pulls.createReview({ - owner, - repo, - pull_number, - event: 'APPROVE', - }) - console.log('Approved pull request') - } catch (error) { - console.error('Failed to approve the pull request.', error) - // Don't fail the workflow - } - console.log('Merging the pull request') // Admin merge pull request to avoid squash await github.rest.pulls.merge({