Skip to content

release: 1.11.0

release: 1.11.0 #146

Workflow file for this run

name: PR Target Check
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
jobs:
check-pr-author:
runs-on: ubuntu-latest
steps:
- name: Check if PR target is allowed
run: |
if [ "${{ github.event.pull_request.user.login }}" != "stainless-app[bot]" ]; then
echo "❌ PR author ${{ github.event.pull_request.user.login }} is not allowed to create PRs against main"
echo "Only stainless-app[bot] is allowed to create PRs against main"
echo "Did you mean to create a PR against the next branch?"
exit 1
else
echo "✅ PR author ${{ github.event.pull_request.user.login }} is allowed"
fi