Skip to content

Room, Reservation, Review 관련 서비스, API 기능 배포 #21

Room, Reservation, Review 관련 서비스, API 기능 배포

Room, Reservation, Review 관련 서비스, API 기능 배포 #21

name: Restrict Main Branch Merge
on:
pull_request:
branches:
- main
jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check if PR is from dev branch
run: |
if [[ "${{ github.event.pull_request.head.ref }}" != "dev" ]]; then
echo "❌ Error: Only pull requests from 'dev' branch can be merged into 'main'."
exit 1
fi