fixup.yml 844 B

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