2022-05-18 13:11:03 +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 17:26:53 +03:00
|
|
|
name: Block fixup and squash commits
|
2022-05-18 13:11:03 +03:00
|
|
|
|
2023-06-01 17:26:53 +03:00
|
|
|
on:
|
|
|
|
pull_request:
|
2023-09-25 12:19:22 +03:00
|
|
|
types: [opened, synchronize, reopened]
|
2023-06-01 17:26:53 +03:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: fixup-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
2022-05-18 13:11:03 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
commit-message-check:
|
2023-06-01 17:26:53 +03:00
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
2022-05-18 13:11:03 +03:00
|
|
|
name: Block fixup and squash commits
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Run check
|
2023-06-01 17:26:53 +03:00
|
|
|
uses: skjnldsv/block-fixup-merge-action@42d26e1b536ce61e5cf467d65fb76caf4aa85acf # v1
|
2022-05-18 13:11:03 +03:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|