diff --git a/.github/workflows/sherlock-check-reviews.yaml b/.github/workflows/sherlock-check-reviews.yaml index cc7a320f9..7d9f7ebbc 100644 --- a/.github/workflows/sherlock-check-reviews.yaml +++ b/.github/workflows/sherlock-check-reviews.yaml @@ -1,5 +1,8 @@ name: Review Check on: + pull_request: + branches: + - main pull_request_review: types: - edited @@ -8,7 +11,7 @@ on: branches: - main jobs: - two-reviews: + check-reviews: runs-on: ubuntu-latest permissions: pull-requests: read diff --git a/.github/workflows/sherlock-dependabot-automerge.yaml b/.github/workflows/sherlock-dependabot-automerge.yaml index 0f29e7c9c..06c380b03 100644 --- a/.github/workflows/sherlock-dependabot-automerge.yaml +++ b/.github/workflows/sherlock-dependabot-automerge.yaml @@ -15,16 +15,6 @@ jobs: runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Approve a PR - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Enable auto-merge for Dependabot PRs env: PR_URL: ${{ github.event.pull_request.html_url }}