Skip to content

feat(location): sync every state table without waking a suspended warehouse #740

feat(location): sync every state table without waking a suspended warehouse

feat(location): sync every state table without waking a suspended warehouse #740

name: Request Auto-Merge

Check warning on line 1 in sqlstack-io/.github/.github/workflows/auto-merge.yml

View workflow run for this annotation

GitHub Actions / Request Auto-Merge

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: read
jobs:
request-auto-merge:
if: >-
!github.event.pull_request.draft &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Create delivery token
id: delivery-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.CHIO_DELIVERY_APP_ID }}
private-key: ${{ secrets.CHIO_DELIVERY_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: ${{ github.event.repository.name }}
- name: Request squash auto-merge
env:
GH_TOKEN: ${{ steps.delivery-token.outputs.token }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: >-
gh pr merge "$PR_URL"
--repo "$GITHUB_REPOSITORY"
--auto
--squash
--delete-branch
--match-head-commit "$PR_HEAD_SHA"