name: Conventional Commit
run-name: Enforce that PR name follow Conventional Commits

on:
  pull_request:
    types: [opened, synchronize, reopened, edited]

jobs:
  Validate:
    runs-on: ubuntu-latest
    steps:
      - name: PR Conventional Commit Validation
        uses:  ytanikin/pr-conventional-commits@1.4.1
        with:
          task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
          add_label: 'false'