diff --git a/.github/workflows/autoapprove.yml b/.github/workflows/autoapprove.yml new file mode 100644 index 00000000..f7eb842c --- /dev/null +++ b/.github/workflows/autoapprove.yml @@ -0,0 +1,17 @@ +name: Auto approve + +on: + pull_request: + branches: [ main ] + +jobs: + autoapprove: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - id: autoapprove + uses: hmarr/auto-approve-action@v3 + if: ${{ github.actor == 'dependabot[bot]' && contains(github.head_ref, 'rubocop') }} + with: + review-message: "Auto approved automated PR" diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 00000000..c38c7cbe --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,33 @@ +name: Auto merge + +on: + pull_request: + branches: [ main ] + 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.5" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + MERGE_LABELS: "" + MERGE_METHOD: "rebase"