Skip to content

Add support for ranking by attribute #186

Add support for ranking by attribute

Add support for ranking by attribute #186

Workflow file for this run

name: PR Target Check
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
check-pr-author:
runs-on: ubuntu-latest
steps:
- name: Check if PR target is allowed
run: |
if [[ "${{ github.event.pull_request.base.ref }}" = main && "${{ 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