Skip to content

Fix AiMesh 2nd Login Attempt #1908

Fix AiMesh 2nd Login Attempt

Fix AiMesh 2nd Login Attempt #1908

name: Check pull request source branch

Check warning on line 1 in .github/workflows/Check-PRsource.yml

View workflow run for this annotation

GitHub Actions / Check pull request source branch

Workflow execution policy warning (evaluate mode)

On November 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
- reopened
- synchronize
- edited
permissions: {}
jobs:
check-branches:
runs-on: ubuntu-latest
steps:
- name: Reject non-dev pull requests to main
if: github.base_ref == 'main' && github.head_ref != 'dev'
run: |
echo "Merge requests to main branch are only allowed from dev branch."
exit 1