Reject merge commits in feature branches

This commit is contained in:
Alexander Hess 2026-11-28 01:24:44 +01:00
commit d158577984
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -43,6 +43,12 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all branches with their history for the next step
- name: Ensure feature branches contain no merge commits
if: forgejo.ref_name != 'develop' && forgejo.ref_name != 'main'
run: "! git rev-list --merges origin/develop..HEAD | grep ."
- name: Install R via system packages
run: |