Skip to content

chore(deps): update @codemirror/legacy-modes requirement from ^6.3.3 to ^6.4.2 in /frontend #43

chore(deps): update @codemirror/legacy-modes requirement from ^6.3.3 to ^6.4.2 in /frontend

chore(deps): update @codemirror/legacy-modes requirement from ^6.3.3 to ^6.4.2 in /frontend #43

name: Auto-merge Dependabot PRs
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
# Frontend build
- name: Install and build frontend
working-directory: ./frontend
run: |
npm install
npm run build
# Backend check
- name: Install backend dependencies
working-directory: ./backend
run: |
npm install
- name: Enable auto-merge
if: success()
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
event: 'APPROVE'
});
await github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
merge_method: 'merge'
});
- name: Notify on success
if: success()
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✅ PR approved and merged. Docker images will be built and pushed automatically.'
})