Skip to content

Commit

Permalink
CI: Auto merge RuboCop bumps
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Jan 20, 2023
1 parent 04e4f35 commit 961635f
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/autoapprove.yml
Original file line number Diff line number Diff line change
@@ -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"
33 changes: 33 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: ""
MERGE_METHOD: "rebase"

0 comments on commit 961635f

Please sign in to comment.