Skip to content

Revert "[TECH] Add a workflow to build version" #37

Revert "[TECH] Add a workflow to build version"

Revert "[TECH] Add a workflow to build version" #37

name: PR Title Check
on:
pull_request:
types: [opened] # Correction ici
branches:
- main
jobs:
check-title:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Validate PR title
run: |
if [[ ! "$(echo '${{ github.event.pull_request.title }}' | grep -E '^\[(BUGFIX|FEATURE|TECH|deps-dev|DOC|BUMP)\]')" ]]; then
echo "Error: Pull request title must start with [BUGFIX], [TECH], [DOC], [BUMP] or [FEATURE]."
exit 1
fi