WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

chore(ai): README tweaks #1276

chore(ai): README tweaks

chore(ai): README tweaks #1276

name: Auto-merge Release PRs
on:
pull_request:
types: [opened, reopened]
permissions:
contents: read
pull-requests: write
jobs:
enable-auto-merge:
name: Enable Auto-merge for Release PRs
runs-on: ubuntu-latest
timeout-minutes: 5
# Only run if PR is created by vercel-ai-sdk[bot] and branch starts with changeset-release/
if: |
github.event.pull_request.user.login == 'vercel-ai-sdk[bot]' &&
startsWith(github.event.pull_request.head.ref, 'changeset-release/')
steps:
- name: merge pull request
run: |
gh pr merge ${{ github.event.pull_request.number }} --auto --squash
gh pr review ${{ github.event.pull_request.number }} --approve
env:
# this should really be an app token. But for that we would need to register a secondary app,
# since the vercel=ai-sdk app already creates the pull request and it cannot approve its own pull requests.
GH_TOKEN: ${{ secrets.GR2M_PR_REVIEW_TOKEN }}
GH_REPO: ${{ github.repository }}