block-unconventional-commits.yml 869 B

12345678910111213141516171819202122232425262728293031
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. name: Block unconventional commits
  6. on:
  7. pull_request:
  8. types: [opened, ready_for_review, reopened, synchronize]
  9. permissions:
  10. contents: read
  11. concurrency:
  12. group: block-unconventional-commits-${{ github.head_ref || github.run_id }}
  13. cancel-in-progress: true
  14. jobs:
  15. block-unconventional-commits:
  16. name: Block unconventional commits
  17. runs-on: ubuntu-latest-low
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  21. - uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7 # v1.3.0
  22. with:
  23. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}