Skip to content

build(deps-dev): bump eslint from 8.57.1 to 10.15.0 #75

build(deps-dev): bump eslint from 8.57.1 to 10.15.0

build(deps-dev): bump eslint from 8.57.1 to 10.15.0 #75

name: dependabot auto-merge
on:
pull_request:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
# only for dependabot pull requests
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Fetch dependabot metadata
id: metadata
# pinned to the full commit sha, see sonar rule S7637
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
# enable auto-merge for safe semver updates. major bumps stay
# manual. the pull request is merged automatically as soon as
# all required checks pass.
- name: Enable auto-merge for minor and patch updates
if: >
steps.metadata.outputs.update-type == 'version-update:semver-minor' ||
steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}