mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
bb09bc67fc
not convinced it is needed to run the checks after a merge to master branch in addition to running them before merging a PR Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
33 lines
826 B
YAML
33 lines
826 B
YAML
# 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: Block fixup and squash commits
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
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
|
|
|
|
steps:
|
|
- name: Run check
|
|
uses: skjnldsv/block-fixup-merge-action@42d26e1b536ce61e5cf467d65fb76caf4aa85acf # v1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|