Skip to content

fix: bump flake8-bugbear from 24.8.19 to 24.10.31 #182

fix: bump flake8-bugbear from 24.8.19 to 24.10.31

fix: bump flake8-bugbear from 24.8.19 to 24.10.31 #182

name: "Semantic PR Check"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
restrict-merge:
name: Restrict PR to main to dev and hotfix/*
runs-on: ubuntu-latest
steps:
- name: Check source branch
if: github.event.pull_request.base.ref == 'main'
run: |
if [[ "${{ github.event.pull_request.head.ref }}" =~ ^(dev|hotfix/.*|release/.*)$ ]]; then
echo "Branch name is valid."
else
echo "Invalid branch name. Only 'dev' or 'hotfix/*' branches can be merged into 'main'."
exit 1
fi