name: 'Pull requests commit messages'
on:
  pull_request:
    types:
      - opened
      - edited
      - reopened
      - synchronize
jobs:
  check-commit-message:
    name: Check Commit Message
    runs-on: ubuntu-latest
    steps:
      - name: Check commit subject complies with https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes
        uses: gsactions/commit-message-checker@v1
        with:
          pattern: '^[a-z0-9A-Z\-_\s\,\.\/]+\:[ ]{0,1}[a-zA-Z]+[a-zA-Z0-9 \-\.\:_\#\(\)=\/\'\"\,><\+\[\]\!\*\\]+$'
          error: 'Invalid commit subject. Please refer to: https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes'
          checkAllCommitMessages: 'false'
          excludeDescription: 'true'
          accessToken: ${{ secrets.GITHUB_TOKEN }}
name: 'Pull requests commit messages'
on:
  pull_request:
    types:
      - opened
      - edited
      - reopened
      - synchronize
jobs:
  check-commit-message:
    name: Check Commit Message
    runs-on: ubuntu-latest
    steps:
      - name: Check commit subject complies with https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes
        uses: gsactions/commit-message-checker@v1
        with:
          pattern: '^[a-z0-9A-Z\-_\s\,\.\/]+\:[ ]{0,1}[a-zA-Z]+[a-zA-Z0-9 \-\.\:_\#\(\)=\/\"\,><\+\[\]\!\*\\]+$'
          error: 'Invalid commit subject. Please refer to: https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes'
          checkAllCommitMessages: 'false'
          excludeDescription: 'true'
          accessToken: ${{ secrets.GITHUB_TOKEN }}
Revert "workflow: add missing single quotation to commit message pattern"
Revert "workflow: add missing single quotation to commit message pattern"

This reverts commit 98e6939c88954ef1fb5e539fbde1b7b5e2a2a5e8.
