Skip to content

ci: preserve inbox during label migration #30

ci: preserve inbox during label migration

ci: preserve inbox during label migration #30

Workflow file for this run

name: PR Title
on:
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]
permissions:
contents: read
jobs:
conventional-title:
name: Conventional PR title
runs-on: ubuntu-latest
steps:
- name: Check title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
pattern='^(feat|fix|docs|test|refactor|chore|ci|build)(\([a-z0-9._/-]+\))?: .+'
if [[ ! "$PR_TITLE" =~ $pattern ]]; then
echo "::error::Titolo PR non conventional: $PR_TITLE"
echo "Usa un titolo come: docs: update Sentinel roadmap"
exit 1
fi