Skip to content

Bump pre-commit from 3.5.0 to 3.6.0 #16

Bump pre-commit from 3.5.0 to 3.6.0

Bump pre-commit from 3.5.0 to 3.6.0 #16

name: pre-commit-ci-auto-merge
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'pre-commit-ci[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Auto merge PR
uses: actions/github-script@v7
with:
script: |
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
event: 'APPROVE'
})
github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
merge_method: 'squash' # You can change this to 'merge' or 'rebase'
})
github-token: ${{ secrets.AUTO_MERGE_JSON2GRAPH_PRE_COMMIT_CI }}