Skip to content

Commit 178304c

Browse files
authored
Merge pull request #1335 from nextcloud/ci/fixup/stable26
[stable26] Create fixup.yml
2 parents e76cac1 + aa574d7 commit 178304c

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.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: Block fixup and squash commits
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: skjnldsv/block-fixup-merge-action@42d26e1b536ce61e5cf467d65fb76caf4aa85acf # v1
32+
with:
33+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)