Skip to content

Commit 9b1e9f3

Browse files
authored
Create .github/workflows/fixup.yml
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent e89bc25 commit 9b1e9f3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/fixup.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow is provided via the organization template repository
2+
#
3+
# https://github.com/nextcloud/.github
4+
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
6+
name: Pull request checks
7+
8+
on:
9+
pull_request:
10+
types: [opened, ready_for_review, reopened, synchronize]
11+
12+
permissions:
13+
contents: read
14+
15+
concurrency:
16+
group: fixup-${{ github.head_ref || github.run_id }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
commit-message-check:
21+
if: github.event.pull_request.draft == false
22+
23+
permissions:
24+
pull-requests: write
25+
name: Block fixup and squash commits
26+
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Run check
31+
uses: xt0rted/block-autosquash-commits-action@79880c36b4811fe549cfffe20233df88876024e7 # v2
32+
with:
33+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)