diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml index 296566d06..7116b5e3e 100644 --- a/.github/workflows/pr-title-check.yml +++ b/.github/workflows/pr-title-check.yml @@ -2,7 +2,7 @@ name: PR Title Check on: pull_request: - types: [opened] + types: [opened, edited] jobs: pr-title: @@ -14,9 +14,9 @@ jobs: - name: Validate PR Title run: | - if [[ ! "${{ github.event.pull_request.title }}" =~ ^(feat|fix|chore|major|docs|ci))\([a-zA-Z0-9_-]+\):\ .+$ ]]; then + if [[ ! "${{ github.event.pull_request.title }}" =~ ^(feat|fix|chore|major|docs|ci)\(([a-z_-]+)\):(.+|\d+)$ ]]; then echo "The Pull Request title must follow the convention: 'type(context): description'." - "The types must be: feat, fix, chore, major." + echo "The types must be: feat, fix, chore, major, docs, ci." echo "Example of a correct title: feat(component): create link component" exit 1 fi