Skip to content

fix: bump pylint from 3.3.2 to 3.3.3 #192

fix: bump pylint from 3.3.2 to 3.3.3

fix: bump pylint from 3.3.2 to 3.3.3 #192

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