diff --git a/.github/workflows/dependabot.autoapprove.yml b/.github/workflows/dependabot.autoapprove.yml new file mode 100644 index 0000000000..bab1e76cd1 --- /dev/null +++ b/.github/workflows/dependabot.autoapprove.yml @@ -0,0 +1,14 @@ +# Copyright 2023-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + +name: Auto approve +on: pull_request_target + +jobs: + build: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: github.actor == 'dependabot[bot]' + steps: + - uses: hmarr/auto-approve-action@v3 diff --git a/.github/workflows/dependabot.automerge.yml b/.github/workflows/dependabot.automerge.yml new file mode 100644 index 0000000000..6e50af405a --- /dev/null +++ b/.github/workflows/dependabot.automerge.yml @@ -0,0 +1,35 @@ +# Copyright 2023-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + +name: automerge +on: + pull_request: + types: + - labeled + - unlabeled + - synchronize + - opened + - edited + - ready_for_review + - reopened + - unlocked + pull_request_review: + types: + - submitted + check_suite: + types: + - completed + status: {} +jobs: + automerge: + runs-on: ubuntu-latest + steps: + - id: automerge + name: automerge + uses: "pascalgn/automerge-action@v0.15.6" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + MERGE_METHOD: "rebase" + MERGE_LABELS: "dependencies" + UPDATE_METHOD: "rebase" + UPDATE_LABELS: "dependencies"