2024-04-25 08:03:54 +00: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
|
2024-07-13 08:15:40 +00:00
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
2024-04-25 08:03:54 +00:00
|
|
|
|
|
|
|
name: Block fixup and squash commits
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
commit-message-check:
|
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
name: Block fixup and squash commits
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest-low
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Run check
|
2024-07-13 08:15:40 +00:00
|
|
|
uses: skjnldsv/block-fixup-merge-action@c138ea99e45e186567b64cf065ce90f7158c236a # v2
|
2024-04-25 08:03:54 +00:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|