Skip to content

feat(search-tools): LLM-driven search and execute and new API #97

feat(search-tools): LLM-driven search and execute and new API

feat(search-tools): LLM-driven search and execute and new API #97

name: Dependabot auto-merge
on:
pull_request:
types:
- opened
- synchronize
- reopened
permissions:
contents: write
pull-requests: write
jobs:
dependabot-auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Wait for CI to pass
uses: lewagon/wait-on-check-action@74049309dfeff245fe8009a0137eacf28136cb3c # v1.5.0
with:
ref: ${{ github.event.pull_request.head.sha }}
running-workflow-name: Dependabot auto-merge
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
# Enable auto-merge for minor/patch updates
# GitHub will wait for required checks and 3-day delay before merging
- name: Enable auto-merge for minor/patch updates
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add comment about merge delay
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: |
gh pr comment "$PR_URL" --body "🤖 Auto-merge enabled. This PR will be merged automatically after CI passes and the 3-day waiting period (configured in branch protection rules)."
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}