Skip to content

Commit

Permalink
Update and rename auto-approve.yml to auto-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 authored Sep 15, 2023
1 parent 85f9726 commit e11d07b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/auto-approve.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pre-commit updates auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'pre-commit-ci[bot]' && github.event_name == 'pull_request'}}
steps:
- name: Auto-merge PR
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit e11d07b

Please sign in to comment.