Merge pull request #7023 from nextcloud/backport/7016/stable21

[stable21] Add workflow for fixup commits
This commit is contained in:
kesselb 2021-07-30 14:39:04 +02:00 committed by GitHub
commit 6df697aac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/fixup.yml vendored Normal file
View File

@ -0,0 +1,20 @@
# 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
name: Pull request checks
on: pull_request
jobs:
commit-message-check:
name: Block fixup and squash commits
runs-on: ubuntu-latest
steps:
- name: Run check
uses: xt0rted/block-autosquash-commits-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}