2022-01-29 02:52:07 +03:00
|
|
|
# This workflow is provided via the organization template repository
|
|
|
|
#
|
|
|
|
# https://github.com/nextcloud/.github
|
|
|
|
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
|
|
|
|
2023-06-01 14:10:05 +03:00
|
|
|
name: Block fixup and squash commits
|
2022-01-29 02:52:07 +03:00
|
|
|
|
2023-06-01 14:10:05 +03:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, ready_for_review, reopened, synchronize]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: fixup-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
2021-05-31 10:50:27 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
commit-message-check:
|
2023-06-01 14:10:05 +03:00
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
2021-05-31 10:50:27 +03:00
|
|
|
name: Block fixup and squash commits
|
2022-01-29 02:52:07 +03:00
|
|
|
|
2024-02-05 19:32:00 +03:00
|
|
|
runs-on: ubuntu-latest-low
|
2022-01-29 02:52:07 +03:00
|
|
|
|
2021-05-31 10:50:27 +03:00
|
|
|
steps:
|
|
|
|
- name: Run check
|
2023-06-01 14:10:05 +03:00
|
|
|
uses: skjnldsv/block-fixup-merge-action@42d26e1b536ce61e5cf467d65fb76caf4aa85acf # v1
|
2021-05-31 10:50:27 +03:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|