fixup.yml 959 B

123456789101112131415161718192021222324252627282930313233343536
  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. #
  6. # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
  7. # SPDX-License-Identifier: MIT
  8. name: Block fixup and squash commits
  9. on:
  10. pull_request:
  11. types: [opened, ready_for_review, reopened, synchronize]
  12. permissions:
  13. contents: read
  14. concurrency:
  15. group: fixup-${{ github.head_ref || github.run_id }}
  16. cancel-in-progress: true
  17. jobs:
  18. commit-message-check:
  19. if: github.event.pull_request.draft == false
  20. permissions:
  21. pull-requests: write
  22. name: Block fixup and squash commits
  23. runs-on: ubuntu-latest-low
  24. steps:
  25. - name: Run check
  26. uses: skjnldsv/block-fixup-merge-action@c138ea99e45e186567b64cf065ce90f7158c236a # v2
  27. with:
  28. repo-token: ${{ secrets.GITHUB_TOKEN }}