From 8d8abc1fb2b58753e1a94f15e6b9c65ccfeba563 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Wed, 27 Nov 2024 19:29:49 -0800 Subject: [PATCH] Remove dependabot --- .github/dependabot.yml | 25 ------------- .github/workflows/dependabot-auto-merge.yml | 39 --------------------- 2 files changed, 64 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 9296feaf..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,25 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "docker" - directories: - - "**/*" - schedule: - interval: daily - - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: daily - - - package-ecosystem: "pip" - directories: - - "**/*" - schedule: - interval: "daily" - groups: - grpcio: - patterns: - - "grpcio*" - update-types: - - "minor" - - "patch" diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml deleted file mode 100644 index b0e3f247..00000000 --- a/.github/workflows/dependabot-auto-merge.yml +++ /dev/null @@ -1,39 +0,0 @@ -# References: -# * https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions -# * https://github.com/dependabot/fetch-metadata - -name: Dependabot auto-merge -on: pull_request - -permissions: - contents: write - pull-requests: write - -env: - ACTIONS_RUNNER_DEBUG: true - ACTIONS_STEP_DEBUG: true - -jobs: - dependabot: - 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 - if: ${{contains(steps.metadata.outputs.directory, '/test')}} - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - - name: Enable auto-merge for Dependabot PRs - if: success() - run: gh pr merge --auto --squash "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}