2022-01-28 23:52:07 +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-08-22 21:45:06 +01:00
|
|
|
#
|
2024-03-21 16:49:34 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2023-06-01 12:10:05 +01:00
|
|
|
name: Block fixup and squash commits
|
2022-01-28 23:52:07 +00:00
|
|
|
|
2023-06-01 12:10:05 +01: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 08:50:27 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
commit-message-check:
|
2023-06-01 12:10:05 +01:00
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
2021-05-31 08:50:27 +01:00
|
|
|
name: Block fixup and squash commits
|
2022-01-28 23:52:07 +00:00
|
|
|
|
2024-02-05 16:32:00 +00:00
|
|
|
runs-on: ubuntu-latest-low
|
2022-01-28 23:52:07 +00:00
|
|
|
|
2021-05-31 08:50:27 +01:00
|
|
|
steps:
|
|
|
|
- name: Run check
|
2024-05-06 07:37:42 +01:00
|
|
|
uses: skjnldsv/block-fixup-merge-action@c138ea99e45e186567b64cf065ce90f7158c236a # v2
|
2021-05-31 08:50:27 +01:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|