Skip to content

Document SQLite-to-MySQL migration path in STUDIO.md and publishing to supported hostings #5264

Document SQLite-to-MySQL migration path in STUDIO.md and publishing to supported hostings

Document SQLite-to-MySQL migration path in STUDIO.md and publishing to supported hostings #5264

name: Dependabot Auto-Merge
on: pull_request_target
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto-approve and enable auto-merge for patch updates (all deps)
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-approve and enable auto-merge for minor updates (dev deps only)
if: |
steps.metadata.outputs.dependency-type == 'direct:development' &&
steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on production minor/major updates requiring manual review
if: |
steps.metadata.outputs.dependency-type == 'direct:production' &&
(steps.metadata.outputs.update-type == 'version-update:semver-minor' ||
steps.metadata.outputs.update-type == 'version-update:semver-major')
run: |
gh pr comment "$PR_URL" --body "⚠️ This PR updates production dependencies and requires manual review before merging."
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on dev major updates requiring manual review
if: |
steps.metadata.outputs.dependency-type == 'direct:development' &&
steps.metadata.outputs.update-type == 'version-update:semver-major'
run: |
gh pr comment "$PR_URL" --body "ℹ️ This PR updates development dependencies with major version changes. Please review for potential breaking changes in the build/test pipeline."
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}