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